Skip to content
Accessibility
Theme
Text size
High contrast
Limit animations
Readable fontAtkinson Hyperlegible
Increased text spacing
Underline links
Always show focus

Runs in your browser — nothing you paste is uploaded.

UUID Generator

Random version-4 UUIDs, generated in your browser with the Web Crypto API. One or a whole batch.

Up to 1000 at once.


    

What is a v4 UUID?

A universally unique identifier (also called a GUID) is a 128-bit value written as 32 hexadecimal digits grouped in the pattern 8-4-4-4-12, for example f47ac10b-58cc-4372-a567-0e02b2c3d479. Version 4 fills it almost entirely with random bits: 122 are random and 6 are fixed markers — the 4 that starts the third group identifies the version, and the first digit of the fourth group is always 8, 9, a or b to mark the variant. With that much entropy, collisions are astronomically unlikely, which is why v4 is the go-to for database primary keys, idempotency keys, correlation IDs in logs, and unique filenames.

Random quality

Generation uses crypto.randomUUID(), falling back to crypto.getRandomValues() on older browsers — the platform's cryptographically secure random source, never Math.random(). That distinction matters: a predictable generator can let an attacker guess the next identifier, so for anything that is also a capability (a password-reset token, a share link) a CSPRNG like this is the right starting point.

Bulk and formatting

Generate up to 1000 at once — paste a batch straight into a seed file or test fixture — and toggle Uppercase if your style guide or an existing column expects A-F rather than a-f. The two are the same value; comparisons should be case-insensitive either way.

Things to watch

Because v4 is fully random it has no embedded timestamp, so rows ordered by UUID are not in creation order, and random keys can fragment B-tree indexes compared with sequential ones. If you need time-sortable identifiers, reach for a different scheme (such as UUIDv7 or ULID) rather than v4.

Related

Need secret values instead of identifiers? See the Password Generator and Salt Generator, or fingerprint data with the Hash Generator.

Privacy

Generated locally; nothing is uploaded.

Frequently asked questions

Are these safe as unique identifiers?

Yes. Version-4 UUIDs use 122 random bits from the browser's cryptographic RNG, so collisions are astronomically unlikely across any realistic number of IDs.

Can I use them as security tokens?

They're unpredictable, but for authentication prefer a purpose-built secret. UUIDs are ideal for IDs, keys and filenames.

Related tools