Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

UUID generator, every version and a checker.

Make UUIDs for a database, an API or a test. Version 4 is random, version 7 starts with the time so IDs sort in the order they were made, versions 1 and 6 hold a time and a random node, and versions 3 and 5 turn a name into the same UUID every time. Make one or a thousand, with or without dashes, in capitals, in braces, quoted, or as a JSON array or SQL values. Paste any UUID into the checker to see if it is valid, which version it is and, for v1, v6 and v7, when it was made.

Need a custom tool, app or website? Contact us 

Version 7 puts the time first, so new rows land at the end of a database index instead of all over it.

UUIDs are made in your browser with its secure random generator. They are never stored or sent; only your format settings are kept in this browser.

Which version

Random or in time order.

01 / v4

122 random bits

The usual choice: no information inside, just randomness from crypto.getRandomValues. Two the same is not a real worry.

02 / v7

Time first, then random

The first 48 bits are the Unix time in milliseconds (RFC 9562), so v7 IDs sort by age. IDs made in the same millisecond still come out in order.

03 / Checker

Read what is inside

Paste any UUID to see its version and variant, and the time it was made for v1, v6 and v7.

Guide

How to generate a UUID, and pick the right version.

A UUID generator makes universally unique identifiers: 128-bit IDs you can create anywhere, with no central server, and still trust not to clash. This one makes versions 1, 3, 4, 5, 6 and 7, the all-zero nil UUID and the all-ones max UUID, one at a time or up to 1,000 at once. It also reads any UUID you paste and tells you its version, its variant and, for time-based versions, when it was made.

How to use the UUID generator

  1. Pick v1, v3, v4, v5, v6, v7, Nil or Max at the top. A fresh UUID appears in large type straight away. For v3 and v5, type one name per line and pick a namespace instead of a count.
  2. Set How many, from 1 to 1,000. The full set appears in the All UUIDs box.
  3. Choose the format: untick Dashes for 32 plain hex digits, tick Capital letters for upper case, and use Wrap each in for quotes, braces or the urn:uuid: prefix.
  4. Press Make new for another set. Copy takes the big one, Copy all takes the whole list, and Save as .txt downloads it as uuids.txt.
  5. To check an existing ID, paste it into Check a UUID. The result updates as you type.

What is inside a UUID

A UUID is 32 hexadecimal digits, normally written in five groups of 8, 4, 4, 4 and 12. Two of those digits are fixed markers. The first digit of the third group is the version, and the first digit of the fourth group shows the variant: 8, 9, a or b for the standard layout in RFC 9562.

GroupExample (v7)What it holds in v7
1 and 201a14932-5dc0Unix time in milliseconds, 48 bits
37a3fVersion digit 7, then a counter
49b2eVariant digit 9, then random bits
54c81d0e5f6a7Random bits

Read the first 12 digits as one hex number and you get the time. 01a149325dc0 is 1,792,229,400,000 milliseconds after 1 January 1970, which is 17 October 2026 at 09:30:00 UTC. Paste 01a14932-5dc0-7a3f-9b2e-4c81d0e5f6a7 into the checker and it shows that time along with "Version 7".

Which version to pick

  • Version 4 is 122 random bits plus the two markers. It reveals nothing about when or where it was made, which makes it the safe default for public IDs, file names, request IDs and test data.
  • Version 7 starts with the time, so IDs sort in the order they were made. That suits database primary keys: new rows go at the end of the index instead of landing at random places in it. If you make many in the same millisecond, a counter after the version digit keeps them in order. The cost is that anyone who sees the ID can read roughly when it was created.
  • Versions 1 and 6 hold the time in 100 nanosecond steps plus a node. Here the node is random, with the multicast bit set as the standard asks for a node that is not a network card, so nothing about your machine is inside. Version 6 is version 1 with the time turned around so the IDs sort by date.
  • Versions 3 and 5 take a namespace UUID and a name and always give the same UUID back. Version 3 uses MD5 and version 5 uses SHA-1. Use them when you need the same ID for the same thing on any machine, for example from a domain name. Choose version 5 for new work.
  • Nil is all zeros. Use it as a placeholder or a "no value" marker in code and tests, never as a real ID.

How unlikely is a clash with version 4? There are 2 to the power of 122 possible values, about 5.3 followed by 36 zeros. You would need to make roughly 2.7 billion billion of them before the chance of any two matching reached one in two.

Which format to choose

SettingLooks likeGood for
Dashes, small letters3f2b9c1e-8d4a-4f6b-9a2c-1e5d7b3a9f04The standard form, most databases and APIs
No dashes3f2b9c1e8d4a4f6b9a2c1e5d7b3a9f04URLs, file names, fixed-width columns
Capital letters, braces{3F2B9C1E-8D4A-4F6B-9A2C-1E5D7B3A9F04}Windows registry and other GUID fields
Quotes, with commas"3f2b9c1e-...",Pasting a list into JSON, JavaScript or an SQL IN (...) list
urn:uuid:urn:uuid:3f2b9c1e-...XML and standards that want a URN

Upper and lower case mean the same value. The standard writes UUIDs in lower case, and many systems compare them as text, so stick with one case across a project.

Using the checker

The checker accepts the plain form, no dashes, braces, quotes or the urn:uuid: prefix. It tells you if the text is not a UUID, for example when a digit is missing or a group has the wrong length. For a valid one it names the version (1 time and node, 3 name with MD5, 4 random, 5 name with SHA-1, 6 reordered time, 7 Unix time, 8 custom) and the variant. For versions 1, 6 and 7 it also prints the creation time in UTC and in your own time zone. It recognises the nil UUID and the max UUID, which is all f digits.

On a Mac

macOS comes with a uuidgen command. Open Terminal, type uuidgen and press Return to get a random version 4 UUID in capital letters. Use this page when you need version 7, a batch, a different format, or a quick check of an ID you found in a log.

Working with the JSON that holds your IDs? The JSON formatter tidies and checks it. To turn a version 7 timestamp, or any Unix time, into a date, try the Unix timestamp converter.

Questions

Good to know.

How do I make the same UUID from a name?

Pick v5 (or v3), choose a namespace such as DNS or URL, and type the name. The same namespace and name always give the same UUID, on any machine. The list takes one name per line.

What is a UUID?

A 128-bit ID written as 32 hex digits in five groups, like 3f2b9c1e-8d4a-4f6b-9a2c-1e5d7b3a9f04. Anyone can make one without asking a central list, and they will not clash.

Should I use v4 or v7?

v4 when the ID should give nothing away. v7 for database keys: it sorts by time, which keeps indexes tidy, but it shows roughly when the ID was made.

What is a GUID?

Microsoft's name for the same thing. A GUID in braces, like {3f2b9c1e-...}, is a UUID; pick Braces to get that format.

Can two UUIDs be the same?

For v4 the odds are so small that it is not a practical concern. They come from your browser's secure random generator, not Math.random.

Are they saved anywhere?

No. They are made in this page and not stored or sent.

Is a UUID the same as a GUID?

Yes, it is the same 128-bit format under another name. GUIDs are often shown in capital letters inside braces, which you can get by ticking Capital letters and picking Braces.

Is a version 4 UUID safe to use as a secret token?

These are made with the browser's secure random generator, so they are hard to guess. Still, a UUID is built to be unique rather than secret, and it is often logged or shown in URLs, so use a purpose-made token for passwords or keys.

How do I tell which version a UUID is?

Look at the first digit of the third group: in 3f2b9c1e-8d4a-4f6b-... it is 4, so that is version 4. Or paste it into the checker on this page.

Do version 7 UUIDs stay in order if I make many at once?

Yes. When several are made in the same millisecond, a counter after the version digit goes up by one each time, so a batch of 1,000 sorts in the order it was made.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch