UUID Generator
Generate 1 to 1,000 random v4 UUIDs, or time-based v1, or name-based v5 and v3 from a namespace and a name, and copy them. Repeats of v4 are very unlikely. How it works
Use the UUID Generator
Random: 122 bits from the browser's cryptographic generator. For IDs that sort by time, use the UUID v7 generator.
About the UUID Generator
A version 4 UUID has 122 random bits, written as 32 hex digits in 8-4-4-4-12 groups, such as 550e8400-e29b-41d4-a716-446655440000. This generator makes 1 to 1,000 of them from the browser’s cryptographic random source and copies the list. Repeats are possible but very unlikely, as the example below works out. The Version list also makes time-based version 1 UUIDs and name-based versions 5 and 3: the DNS namespace and the name www.example.com always give the version 5 UUID 2ed6657d-e927-568b-95e1-2665a8aea6a2.
How to use this tool
- Choose the Version: 4 (random, the default), 1 (time-based), or 5 or 3 (name-based).
- For version 4 or 1, type a quantity from 1 to 1,000 and press Generate; the list on screen is replaced. For version 5 or 3, pick the namespace and type the name.
- Press Copy for the whole list, one UUID per line, or the copy button on a row for one UUID.
Frequently asked questions
- Is a UUID v4 guaranteed to be unique?
- No. RFC 9562 says global uniqueness cannot be guaranteed without a shared scheme, and a v4 value is only 122 random bits. A repeat is very unlikely, but a table that must never hold two equal keys should still enforce that with a unique constraint.
- Is a GUID the same as a UUID?
- Yes. RFC 9562 names GUID (Globally Unique IDentifier) as another name for a UUID, and GUID is the term Microsoft uses. A v4 UUID from this page works wherever a GUID is asked for. It is printed in lower case without braces; some tools write the same value in upper case or inside { }.
- Can I use a UUID as a password reset token or API key?
- Not on its own. RFC 9562 says implementations should not assume UUIDs are hard to guess and must not use them as security capabilities, identifiers whose mere possession grants access. Use a token generator built for secrets instead.
- How many UUIDs can I generate at once?
- From 1 to 1,000 whole numbers. Empty, 0, 1001, 2.5, -3 and 1e3 each show a message next to the field, and Generate stays off until the number is valid.
- How do I make a version 5 UUID from a name?
- Choose Version 5, pick the namespace (DNS, URL, OID or X.500 from RFC 9562, or a custom UUID) and type the name. The namespace and the name, in UTF-8, are hashed with SHA-1, so the same pair always gives the same UUID: DNS and www.example.com give 2ed6657d-e927-568b-95e1-2665a8aea6a2, and version 3, which uses MD5, gives 5df41881-3aed-3515-88a7-2f4a814cf09e. Those are the test values in RFC 9562 appendix A. Anyone who guesses the name can compute the UUID, so it is not a secret.
- What is the difference between UUID v4 and UUID v7?
- A v4 value is random, so new values land at scattered positions in a database index (RFC 9562 section 2.1). A v7 value starts with a millisecond timestamp, so its text form sorts in time order. The UUID v7 Generator makes and decodes those.
Related Tools
View all toolsJSON Formatter
Paste JSON to format it with 2 spaces, 4 spaces or tabs, minify it or sort its keys. A syntax error is reported with its line, column and a caret under it.
JSON Path Query Tool
Test a JSONPath expression on your JSON and see the match count, each matching value and its path. Filters such as ?(@.price < 10) work. Up to 100 KB.
Base64 Converter
Encode text to Base64 or decode Base64 to text. UTF-8, standard and URL-safe alphabets, optional padding on decode, up to 250,000 characters.
URL Encoder/Decoder
Percent-encode or decode text as you type: one value with encodeURIComponent or a whole URL with encodeURI, and an option to read + as a space.
ULID Generator
Generate 1 to 500 ULIDs, 26-character IDs that sort by creation time, in upper or lower case, and decode any ULID to the date it was made.
HTML Entity Encoder
Encode text to HTML entities (& < > " ') or decode any of the 2,231 named references in the HTML standard and numeric ones such as é.