UUID Generator
Generate a UUID v4.
About this tool
Generate a single UUID with one click. Choose version 4 (fully random) or version 7 (starts with a millisecond timestamp so IDs sort by creation time). The result is the standard 36-character form with hyphens.
How to use
How it works
A UUID is a 128-bit identifier written as 8-4-4-4-12 hex digits. Version 4 uses 122 random bits, so collisions are practically impossible. Version 7 puts a Unix millisecond timestamp in the first 48 bits and random bits after it, which keeps new rows near each other in database indexes. IDs come from the uuid library using the browser's secure random source.
Worked example
A version 4 UUID
- Input
- Version 4, one UUID
- Output
- 57cdce1e-4159-490c-a54c-f77b081b0eb0
- Walkthrough
- The 4 at the start of the third group marks the version, and the first digit of the fourth group (a here) is 8, 9, a or b. Every click gives a different value.
Limitations
- Only versions 4 and 7 are offered. There is no v1, v3 or v5 (name-based) option.
- A UUID is an identifier, not a secret. Do not use it as a password or API key.
Questions
How do I generate a UUID?
What is the difference between UUID v4 and v7?
Is a UUID the same as a GUID?
Can two generated UUIDs collide?
Features
- v4 and v7
- Secure random source
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Learn JSON - Full Crash Course for Beginners
freeCodeCamp.org
Encoded blobs often wrap JSON payloads in transit.
Watch on YouTubeLearn Regular Expressions - Crash Course
freeCodeCamp.org
Regex primer for tester and explainer pages.
Watch on YouTube
- Base64
MDN
Glossary definition and when Base64 is appropriate versus binary transfer.
- Introduction to JSON Web Tokens
jwt.io
JWT structure for decoder and debugger pages.