UUID generator
Generate a random UUID v4 or a time-ordered UUID v7, one at a time or up to 1,000 at once, entirely in your browser.
Generated UUID
Your UUID
-
- Version
- -
- Embedded timestamp
- -
Bulk generate
Uses the version selected above. Up to 1,000 at once.
How it works
A UUID, or universally unique identifier, is a 128-bit value used to identify data without a central authority handing out IDs. This tool generates RFC 4122 version 4 (random) or version 7 (time-ordered) UUIDs using your browser's cryptographically secure random number generator.
- Choose a version
v4 for pure randomness, v7 when you want IDs that sort by creation time.
- Generate and copy
A new UUID appears instantly; copy it or generate another.
- Need many at once?
Use Bulk generate for up to 1,000, in standard, uppercase, no-hyphen or brace format.
UUID v4 versus UUID v7
UUID v4 is fully random except for a few fixed version and variant bits, so it carries no information about when or where it was created. UUID v7 embeds a millisecond-precision Unix timestamp in its first 48 bits, followed by random data, which makes v7 values sort in the order they were generated.
- Use v4 when you want no temporal information encoded in the ID, or when the ID must not reveal roughly when it was created.
- Use v7 for database primary keys where you want near-sequential inserts (avoiding the index fragmentation random v4 keys cause in large B-tree indexes) without a separate created_at column.
Nothing leaves your device
Every UUID is generated locally with the Web Crypto API's getRandomValues. No request is made to a server, so it is safe to generate identifiers for private or unpublished systems.
Frequently asked questions
What is the difference between UUID v4 and UUID v7?
UUID v4 is fully random except for a few version and variant bits, offering no ordering guarantee. UUID v7 embeds a millisecond-precision Unix timestamp in its most significant bits, making generated UUIDs sortable by creation time. v7 suits database primary keys where you want time ordering without a separate created_at column; v4 suits IDs that should carry no temporal information.
How do I generate a UUID in the browser without installing anything?
Open this page, choose v4 or v7, and click Generate new. A UUID appears instantly; click Copy to put it on your clipboard. For many at once, use Bulk generate with a count up to 1,000. All generation runs in the browser with the Web Crypto API's getRandomValues, so no server call is made.
Are UUID v4 values cryptographically random and collision-safe?
Yes. The tool uses the browser's crypto.getRandomValues, which produces cryptographically strong random bytes. The theoretical chance of two identical v4 UUIDs is about 1 in 5.3 x 10^36. In practice, v4 collisions are not a realistic concern for any application.
How do I generate UUIDs without hyphens or in uppercase for a specific database?
Use the Format selector in Bulk generate. Options are Standard (lowercase with hyphens), UPPERCASE, No hyphens and {Braces}. Some systems require a specific format: MySQL often stores UUIDs without hyphens as a CHAR(32) for performance, while Windows COM GUIDs typically appear in brace format.
Can I use a UUID as a primary key in PostgreSQL or MySQL?
Yes, with a performance caveat for v4. Random v4 keys insert at random positions in a B-tree index, fragmenting it on large tables. UUID v7 avoids this by being time-sortable, inserting in near-sequential order instead. PostgreSQL has a native uuid type; MySQL typically stores UUIDs as CHAR(36) or BINARY(16).