UUID Generator for Random v4 and Time-Ordered v7 Identifiers
Generate UUID v4 or UUID v7 values, choose quantity and formatting, then copy or download the results directly from your browser.
Generate UUIDs
Choose the UUID version, quantity, and output format.
What Is a UUID?
A UUID is a 128-bit identifier used to label records, objects, sessions, API resources, database rows, files, and other items without relying on a central numbering service. UUIDs are also commonly called GUIDs.
A standard textual UUID contains 32 hexadecimal digits separated into five groups by hyphens.
Standard UUID example
550e8400-e29b-41d4-a716-446655440000The UUID generator on this page supports UUID v4 and UUID v7, the two versions most useful for general random IDs and newer time-ordered IDs.
UUID v4 vs UUID v7
| Version | How it is built | Good fit | Ordering |
|---|---|---|---|
| UUID v4 | Random or pseudorandom bits with version and variant bits set | General identifiers, APIs, test data, distributed systems | Not time-ordered |
| UUID v7 | Unix timestamp in milliseconds plus random bits | Database keys, event records, systems that benefit from time ordering | Time-ordered by design |
RFC 9562 defines both versions. UUID v4 is based on random data, while UUID v7 places a Unix timestamp in the most significant 48 bits and uses random data for the remaining variable bits.
When to Use UUID v4
UUID v4 is a strong default when you simply need a random identifier that can be generated independently across different systems.
It is widely used for API resources, application records, object IDs, temporary test data, and distributed systems where central coordination would be inconvenient.
When to Use UUID v7
UUID v7 is useful when the identifier should retain UUID compatibility while also sorting roughly by creation time.
That can be useful in databases, logs, event streams, and systems where newly created records are frequently inserted and later sorted by time.
RFC 9562 recommends UUID v7 over older time-based versions for many new applications that need time ordering.
How UUID v4 Is Generated
UUID v4 starts with random or pseudorandom data. Specific bits are then replaced to mark the UUID version and RFC variant.
UtilityDocks uses the browser Web Crypto interface rather than Math.random(). Web Crypto provides access to a cryptographically strong random source in supported browsers.
UUID v4 example
f3b64f14-4e79-4bf0-9cf7-8ce0da9bc095How UUID v7 Is Structured
UUID v7 begins with the Unix timestamp measured in milliseconds. The timestamp occupies the first 48 bits, while the remaining variable bits provide randomness together with the required version and variant fields.
Because the timestamp is placed at the start, UUID v7 values generated later generally sort after earlier values when compared in their standard binary or canonical order.
UUID v7 example
019944e6-2b2f-7a41-a4c8-c4f308e39d51UUID vs GUID
UUID and GUID are often used interchangeably. RFC 9562 explicitly notes that UUIDs are also known as Globally Unique Identifiers, or GUIDs.
In everyday development, a GUID generator usually refers to the same 128-bit identifier format. Microsoft platforms commonly use the term GUID, while many cross-platform tools and standards use UUID.
Understanding UUID Formatting
The standard canonical representation uses lowercase or uppercase hexadecimal characters with hyphens.
| Format | Example |
|---|---|
| Lowercase with hyphens | 550e8400-e29b-41d4-a716-446655440000 |
| Uppercase with hyphens | 550E8400-E29B-41D4-A716-446655440000 |
| No hyphens | 550e8400e29b41d4a716446655440000 |
| With braces | {550e8400-e29b-41d4-a716-446655440000} |
The case of hexadecimal letters does not change the underlying UUID value. Some systems, however, expect a particular display format, so the tool lets you switch case, hyphens, and braces.
Can Two UUIDs Be the Same?
UUIDs are designed to make collisions extremely unlikely, but they should not be described as mathematically impossible.
UUID v4 has 122 random bits after reserving the required version and variant bits. That creates a very large possible space, which is why v4 is widely used in distributed applications.
Applications that require an absolute guarantee of uniqueness may still enforce a unique database constraint and handle the rare possibility of a duplicate.
Why Generate Multiple UUIDs at Once?
Bulk generation is useful when creating fixtures, seed data, test records, sample API objects, or batches of identifiers for development work.
The tool can generate up to 1,000 UUIDs at once. You can copy the complete list or download it as a text file.
UUIDs in Databases and APIs
UUIDs work well when records need identifiers that can be created before they reach a central database. Separate services can generate IDs without first requesting the next number from one shared sequence.
UUID v4 is simple and widely supported. UUID v7 can be attractive when a database or event system benefits from identifiers that are naturally ordered by creation time.
The best version still depends on the database engine, indexing strategy, application requirements, and how the identifier is exposed.
Are UUIDs Secure?
A UUID can be difficult to guess, especially when generated from strong random data, but UUIDs are not an authentication mechanism.
Do not use the secrecy of a UUID as the only protection for private records. Access control should be handled separately with proper authentication and authorization.
UUID Generator FAQs
What is the difference between UUID v4 and UUID v7?
UUID v4 is primarily random. UUID v7 begins with a Unix timestamp in milliseconds and adds random bits, making it suitable for time-ordered identifiers.
Is a UUID always 36 characters long?
The canonical text form is 36 characters including four hyphens. The underlying UUID is always 128 bits. Removing hyphens produces 32 hexadecimal characters.
Is GUID the same as UUID?
The terms are commonly used for the same 128-bit identifier family. GUID is especially common in Microsoft environments.
Can I generate UUIDs without hyphens?
Yes. Turn off Include hyphens to return the hexadecimal characters without separators.
Can I generate multiple UUIDs?
Yes. Choose a quantity from 1 to 1,000, then copy all results or download them as a text file.
Are the generated UUIDs sent to UtilityDocks?
The generator is designed to create UUIDs locally in the browser using Web Crypto, so the generated values do not need to be sent to UtilityDocks.
Standards and Generation Method
Technical details reviewed September 16, 2026.
The page follows the current UUID specification in RFC 9562. UUID v4 uses browser-generated random bytes with the required version and variant bits. UUID v7 uses the Unix timestamp in milliseconds plus random bits.
- RFC Editor: RFC 9562, Universally Unique IDentifiers (UUIDs)
- MDN Web Docs: Crypto and Crypto.randomUUID()
