Skip to content
CleanGlyph home

UUID Generator & Validator — v4 and v7

Generate cryptographically secure UUID v4 and time-ordered UUID v7, up to 500 at a time. Validate any UUID, read its version and variant, and decode UUID v7 timestamps. Free, private and browser-based.

Your text never leaves your browser.

Generate UUIDs

UUID version

Whole number from 1 to 500. Generated in your browser with Web Crypto.

Generated UUIDs

Choose a version and quantity, then press Generate. UUID v4 (Random) values will appear here, one per line.

Accepts hyphenated, 32-digit, {braced} and urn:uuid: forms in any case. Checked as you type.

Summary

Version
UUID v4 (Random)
Generated
None yet
Format
Canonical, lowercase
Validator
Nothing to check

Generated, formatted and validated in your browser. UUIDs are never uploaded, logged or saved.

Output format

Format
Letter case

Format and case only change how UUIDs are shown, copied and downloaded. The generated values stay the same.

What is a UUID?

A UUID (universally unique identifier) is a 128-bit value written as 32 hexadecimal digits in five groups, such as 550e8400-e29b-41d4-a716-446655440000. Systems can create UUIDs independently, without a central counter, and still avoid collisions in practice. That makes them a common choice for database keys, request IDs, file names and event identifiers. The format is defined by RFC 9562, which replaced RFC 4122.

UUID v4 versus UUID v7

UUID v4 is 122 random bits plus fixed version and variant bits, so values carry no timestamp and appear in random order. UUID v7 starts with a 48-bit Unix timestamp in milliseconds followed by random bits, so values with later timestamps sort after earlier ones. This can improve database index locality. This generator uses 74 random bits and does not guarantee strict ordering within the same millisecond or when the clock moves backwards. A v7 timestamp may reveal approximate creation time, but does not cryptographically prove it.

Version and variant bits

The first digit of the third group is the version: 4 in 41d4 means random. The first digit of the fourth group holds the variant: 8, 9, a or b marks the RFC 9562 layout. The validator reads both, and flags values with other variants or undefined versions as nonstandard rather than guessing. The Nil UUID (all zeros) and Max UUID (all f) are special values with no version.

UUID formats: canonical, compact, GUID and URN

The same UUID can be written in several ways. The validator accepts all of these, in any letter case, and normalizes them to the lowercase canonical form.

One UUID in different formats
FormatExample
Canonical550e8400-e29b-41d4-a716-446655440000
Uppercase550E8400-E29B-41D4-A716-446655440000
Compact550e8400e29b41d4a716446655440000
GUID braces{550e8400-e29b-41d4-a716-446655440000}
URNurn:uuid:550e8400-e29b-41d4-a716-446655440000

Reading a UUID v7 timestamp

The first 12 hex digits of a UUID v7 are its timestamp. In the RFC 9562 example 017f22e2-79b0-7cc3-98c4-dc0c0c07398f, 017f22e279b0 is 1645557742000 milliseconds, or 2022-02-22T19:22:22.000Z. Paste any v7 UUID into the validator to decode it, and use the Unix Timestamp Converter to view the milliseconds in your local time.

Randomness, collisions and security

Every UUID here comes from the browser's Web Crypto API. If it is unavailable, the tool shows an error instead of falling back to weaker randomness. Collisions are vanishingly unlikely, but UUIDs are not secrets: they appear in URLs, logs and API responses. Collision probability is not zero. Do not use UUIDs as passwords, tokens, authentication or proof of authorization.

Where UUIDs show up

UUIDs appear as primary keys in PostgreSQL and other databases, in REST API resource paths, in JSON payloads and as jti claims in tokens. Inspect a whole payload with the JSON Formatter & Validator, check token claims with the JWT Decoder & Claims Inspector, and match UUIDs in logs with the Regex Tester. If you need a fingerprint of content rather than a random identifier, use the SHA-256 Hash Generator.

Frequently asked questions

Is a UUID the same as a GUID?

Yes. GUID (globally unique identifier) is the name Microsoft uses for the same 128-bit identifier. GUIDs are often written in uppercase and wrapped in braces, such as {550E8400-E29B-41D4-A716-446655440000}, but the value is identical to the lowercase hyphenated UUID.

Should I use UUID v4 or UUID v7?

Use UUID v4 when you only need an unpredictable identifier. Use UUID v7 for database keys and event IDs: its leading Unix millisecond timestamp makes new values sort roughly by creation time, which keeps B-tree indexes compact and inserts fast. Avoid v7 if revealing the creation time is a problem.

Can two UUIDs ever be the same?

Yes. Collision probability is extremely small, but not zero. A UUID v4 has 122 random bits: about 2.7 quintillion independently generated UUIDs give a 50% chance of at least one collision. This UUID v7 generator combines a millisecond timestamp with 74 random bits, so equal values also require equal timestamps. Use a unique constraint when duplicates must be rejected.

Are these UUIDs secure?

They are generated with the browser Web Crypto API (crypto.randomUUID or crypto.getRandomValues), never Math.random, and the tool refuses to generate anything if secure randomness is unavailable. Still, UUIDs are identifiers, not secrets: do not use them as passwords, API keys or session tokens.

Can I get the creation time from a UUID?

Only for time-based versions. UUID v7 stores a 48-bit Unix millisecond timestamp in its first 12 hex digits, which the validator decodes to UTC. It is whatever time the generator wrote in, not a verified creation time. UUID v4 is random and contains no timestamp.

Is uppercase or lowercase correct?

Both are valid and represent the same value; UUID comparison is case-insensitive. RFC 9562 permits uppercase, lowercase and mixed-case hexadecimal digits. This tool defaults to lowercase, while Windows tools often show GUIDs in uppercase. Pick whichever your system expects.

Are my UUIDs uploaded or stored?

No. Generation, formatting, validation and downloads all happen in your browser. Generated and pasted UUIDs are not sent to a server, saved, logged or placed in the URL.