DevToolsForYou
Private by defaultRuns in your browser

UUID generator

Pick v1 or v4, choose how many you need, and copy your UUIDs instantly. All generation happens in your browser.

max 100
Quick samplesClick to generate
UUID Generator

About this tool

Generate UUID v1 (time-based), v4 (random), or v7 — one at a time or in bulk up to 100. One-click copy, runs in your browser, no signup.

Pick v1 or v4, choose how many you need, and copy your UUIDs instantly. All generation happens in your browser.

No signup requiredRuns in your browserInstant results
How to use
  1. 1

    Select the UUID version: v4 (random, most common), v1 (timestamp-based), or v7 (sortable timestamp).

  2. 2

    Click Generate — or use the bulk option to generate multiple UUIDs at once.

  3. 3

    Click Copy to copy the UUID to your clipboard.

Why use this tool?
  • Generate UUIDs for database primary keys, API resources, or idempotency tokens.

  • Create a batch of UUIDs for seeding test data or fixtures.

  • Get a v1 UUID when you need a time-ordered, sortable identifier.

ExamplesInput → output

UUID v4 (random)

InputVersion: v4
Output550e8400-e29b-41d4-a716-446655440000

UUID v1 (timestamp)

InputVersion: v1
Output6ba7b810-9dad-11d1-80b4-00c04fd430c8
Frequently asked questionsCommon questions answered

These answers explain common uuid generator tasks, expected input formats, and edge cases so both visitors and search engines can understand what this tool does.

What is the difference between UUID v1 and v4?

UUID v1 is time-based — it encodes the current timestamp and a node identifier, making it sortable by creation time. UUID v4 is randomly generated and has no meaningful structure, making it better for privacy.

Is a UUID truly unique?

UUID v4 has 122 random bits, giving 2¹²² possible values. The probability of a collision is astronomically small — effectively unique for all practical purposes.

What is a GUID?

GUID (Globally Unique Identifier) is Microsoft's term for UUID. They use the same format and are interchangeable.

Can I generate multiple UUIDs at once?

Yes. Set the count field to any number from 1 to 100 and click Generate. All UUIDs are shown in the output area and can be copied together with the Copy all button.

Is UUID v4 safe to use as a database primary key?

Yes, but with a trade-off. UUID v4 is random, so it does not sort chronologically. This can cause index fragmentation in databases that prefer sequential keys. If insert-time ordering matters, consider UUID v1 (time-based) or a ULID instead.

Code examplesUse this tool in your code

Node.js 14.17+ and all modern browsers include crypto.randomUUID(). For older environments use the uuid package.

JavaScript / Node.jsNode.js 14.17+ / Modern Browsers
// Built-in — no dependencies needed
const id = crypto.randomUUID();
console.log(id); // e.g. "110e8400-e29b-41d4-a716-446655440000"

// Multiple UUIDs
const ids = Array.from({ length: 5 }, () => crypto.randomUUID());
See full JavaScript / Node.js examples →