UUID Generator
Generate UUIDs, ULIDs and NanoIDs one at a time or in bulk. Created in your browser with a secure random source.
Runs in your browser. Nothing you enter is uploaded or stored.
How to use the UUID Generator
- A fresh ID is ready as soon as the page loads. Click it to copy it.
- To change the kind of ID, pick UUID v4, UUID v7, ULID or NanoID. A short note under the choice says what that kind is good for.
- Inside the ID, the amber part is the time it was made and the violet digit is the UUID version. The rest is random.
- For several at once, set how many you need, from 1 to 1,000. Click any one to copy it, or use Copy all or Download for the whole list.
- For UUIDs, tick Uppercase if your system expects capital letters. For NanoID, set the length.
- Press Generate for a new set. Your choices are remembered in this browser for next time.
Questions and answers
- Are the IDs generated on a server?
- No. Every ID is created in your browser, and nothing is sent, stored or logged. Nobody else sees the IDs you generate, and reloading the page gives you new ones.
- How random are they?
- The random bits come from the browser’s cryptographic random generator (crypto.getRandomValues), the same source used for encryption keys. The ordinary Math.random function is never used.
- Should I use UUID v4 or UUID v7?
- UUID v4 is entirely random and is the safe default when order does not matter. UUID v7 starts with the current time in milliseconds, so IDs created later sort after earlier ones. That makes v7 a better database primary key, because new rows land together in the index. Note that a v7 ID reveals when it was created.
- What are ULID and NanoID?
- A ULID holds the same kind of data as a UUID v7, a timestamp followed by random bits, but is written as 26 characters with no hyphens, in an alphabet that avoids look-alike letters. A NanoID is a random string of URL-safe characters whose length you choose; at the default 21 characters it is about as collision-resistant as a UUID v4 while being shorter.
- Can two generated IDs ever be the same?
- In theory yes, in practice no. A UUID v4 has 122 random bits, so you would need to generate about a billion every second for decades before a single repeat became likely. A short NanoID is different: under about 10 characters, repeats become realistic at scale.
- Is a GUID the same as a UUID?
- Yes. GUID is the name Microsoft uses for a UUID. The format is identical; Windows tools often show GUIDs in uppercase, which the Uppercase option gives you.
Related tools
Password GeneratorCreate strong random passwords with the length and character sets you choose. Generated in your browser, never sent.Random String GeneratorGenerate random strings and numbers with a custom length, character set and count. Free and runs in your browser.Lorem Ipsum GeneratorGenerate lorem ipsum placeholder text by paragraphs, sentences or words, ready to copy into your designs and mockups.JSON FormatterFormat, validate and minify JSON in your browser. Clear error messages, free, and nothing you paste is uploaded.XML FormatterFormat and validate XML in your browser. Indent messy markup, spot syntax errors, and keep your data on your device.