UUID Generator
UUID generator
About UUID Generator
Generate one or multiple RFC 4122 version 4 UUIDs instantly — useful for database primary keys, API resource IDs, idempotency tokens, and test data.
Last reviewed
October 20, 2026
Key Features
- Generates cryptographically random UUID v4 values
- Supports generating up to 50 UUIDs at once
- Standard UUID format (8-4-4-4-12 hexadecimal)
- Instant generation, nothing to install
- Copy-ready output for immediate use in code
How to Use UUID Generator
- 1Choose how many UUIDs you need (up to 50).
- 2Click generate to produce the UUID list.
- 3Copy the UUIDs you need for your use case.
- 4Paste them into your database seed, test data, or API request.
Database seed example
When seeding a database with test records, generate the required number of UUIDs upfront and assign them as primary keys. This lets you reference IDs predictably in related records before inserting any rows.
How to read a UUID v4
A UUID is 128 bits written as 32 hexadecimal characters in five groups separated by hyphens (8-4-4-4-12). In a version 4 UUID, 122 of those bits are random and 6 are fixed: the first character of the third group is always 4 (the version), and the first character of the fourth group is always 8, 9, a or b (the variant).
This generator uses Node.js crypto.randomUUID(), which draws from the operating system's cryptographically secure random number generator. The values come out in lowercase. Under the UUID standard (RFC 9562, which replaced RFC 4122), comparisons are case-insensitive.
a3b5d835-041f-4db3-a953-3d02e5847022
^ ^
| variant: 8, 9, a or b
version: always 4UUID v4, UUID v7 or an auto-increment ID?
Auto-increment integers are small and fast, but they reveal how many records exist and can only be created by the database. UUID v4 values can be created anywhere (in the browser, on another server, offline) without coordination, and they reveal nothing.
The trade-off is index performance at scale: random v4 values are inserted all over a B-tree index instead of at its end. For very write-heavy tables, UUID v7, which starts with a timestamp, keeps inserts in order. This tool generates v4, which is the right default for most application IDs.
Common Problems and Fixes
- The database rejects or stores the value strangely
- PostgreSQL has a native uuid type. In MySQL, store the value in CHAR(36), or in BINARY(16) with UUID_TO_BIN() to save space. Do not store it in an integer column.
- Two systems disagree about the same ID
- One side is probably comparing case-sensitively. These UUIDs are lowercase; normalise both values to lowercase before comparing or using them as keys.
- Can I use a UUID as a secret token?
- It is random enough to be unguessable, but UUIDs are designed as identifiers and tend to end up in logs and URLs. For password-reset links or API keys, use a purpose-built random token instead.
How It Works
UUID v4 values are generated on the DevTool House server with Node.js crypto.randomUUID(), a cryptographically secure random number generator. Each value has 122 bits of random data and follows the 8-4-4-4-12 format specified by RFC 4122.
Privacy Notes
UUIDs are generated on DevTool House servers and returned to your browser. The generated values are not stored.
Limitations
This tool generates UUID v4 (random). It does not generate UUID v1 (time-based), v3 (name-based MD5), or v5 (name-based SHA-1). For specialised UUID formats, use a language-specific UUID library.