UUID Generator
About this tool
About UUID Generator
Create universally unique identifiers for database keys, test fixtures, request IDs and file names. Pick version 4 for fully random IDs, or version 7 for IDs that begin with the current Unix time in milliseconds and therefore sort in creation order, which keeps database indexes compact. Generate up to 500 at once; a v7 batch stays in strict order even when many IDs share the same millisecond, using the counter method from RFC 9562. Format them the way your code expects: UPPERCASE, without hyphens, wrapped in braces like a Microsoft GUID, or with a urn:uuid: prefix. Copy one, copy all, or download a text file. The decoder below takes any UUID or GUID you paste, checks that it is valid, and reports its version and variant, plus the creation time hidden in v1, v6 and v7 IDs. Randomness comes from your browser's cryptographic generator, and nothing is sent anywhere.
Built and maintained by Abhi JainUpdated
How to Generate UUIDs
- 1
Choose the version
Select v4 random or v7 time-ordered under Version, and set How many.
- 2
Pick a format
Tick UPPERCASE, Hyphens, {Braces} or urn:uuid: prefix to match your code.
- 3
Copy or download
Copy one UUID, Copy all, or Download the list. Click Generate new for a fresh batch.
- 4
Decode a UUID
Paste any UUID into Validate or decode a UUID to see its version, variant and timestamp.
UUID Generator: questions and answers
What is the difference between UUID v4 and v7?
v4 is 122 random bits with no meaning. v7 (RFC 9562, 2024) starts with a 48-bit Unix millisecond timestamp followed by random bits, so v7 IDs sort by creation time. That makes them better primary keys, because new rows land at the end of the index.
Can two UUIDs ever be the same?
In theory yes, in practice no. With 122 random bits, you would need to generate about 2.7 quintillion v4 UUIDs for a 50% chance of a single duplicate. A bad random number generator is a far bigger risk than the maths.
Is a GUID the same as a UUID?
Yes. GUID is Microsoft's name for the same 128-bit format. Windows tools often show GUIDs in uppercase and inside braces, which you can match with the format options.
Does a v7 UUID reveal when it was created?
Yes, to the millisecond. Paste one into the decoder to see. If creation time is sensitive, for example in public URLs, use v4 instead.
Should I use UUIDs or Nano IDs?
Use UUIDs when a database, API or standard expects them. Use a Nano ID when you want shorter, URL-friendly strings with a similar collision risk.
Ready-made UUID Generator presets
Related Tools
- Nano ID GeneratorGenerate short, URL-safe Nano IDs with any length and alphabet, and see the collision risk.
- Password GeneratorStrong random passwords with a live strength and entropy estimate.
- Hash GeneratorMD5, SHA-1, SHA-256, SHA-384 and SHA-512 of any text, with HMAC and expected-hash check.
- Timestamp ConverterConvert Unix timestamps to dates and back in any time zone, with a live epoch clock.
- Mock Data GeneratorGenerate realistic fake data from a schema as JSON, CSV, SQL or TypeScript, with a seed.