UUID Generator
Generate UUID v4 and v7 identifiers, one at a time or in bulk.
Loading…
Runs entirely in your browser. Nothing you enter is uploaded or stored on a server.
About this tool
A UUID lets separate systems mint keys without coordinating and without fear of collision. Version 4 is fully random; version 7 starts with a timestamp so identifiers sort by creation time — a difference that matters a great deal to database indexes.
How to use
- 1Choose v4 or v7.
- 2Set how many you need.
- 3Copy the list.
When you need it
- Generating primary keys for database tables.
- Creating request ids to trace through logs.
- Filling test data with unique identifiers.
Frequently asked questions
What is the difference between v4 and v7?
v4 is entirely random, so values scatter. v7 begins with a timestamp so newer ids always sort after older ones, which keeps database indexes in order and makes inserts faster.
Can two UUIDs collide?
In theory only: v4 has a space of 2^122. Reaching a one-in-a-billion chance of a collision takes billions of generated ids.
Is the randomness secure?
Yes — it comes from crypto.getRandomValues, the browser cryptographic random source, not the predictable Math.random.
Related tools
- Base64 Encoder / DecoderConvert text to Base64 and back. Handles Arabic and any Unicode text correctly.
- JSON Formatter & ValidatorFormat, minify and validate JSON. Errors point to the exact position.
- URL Encoder / DecoderPercent-encode and decode URLs, and split a query string into readable lines.
- HTML Entities Encoder / DecoderConvert & to & and back. Optionally escape every non-ASCII character.
- Unicode Escape / UnescapeTurn Arabic and any Unicode text into \u escapes and back. Essential for JSON and source files.
- JWT DecoderDecode a JSON Web Token and read its header, payload and expiry.