Short random IDs with custom alphabet, length, prefix and collision odds
UUID Generator
Get fresh UUIDs for records, tests or fixtures in the exact format your code expects, and check what an existing one contains.
Loading tool…
How to use uuid generator
Choose version 4 (random) or version 7 (time-ordered).
Set how many, from 1 to 10,000.
Pick plain, braces or urn:uuid:, uppercase and hyphens.
Copy all, download a .txt file, or press New batch.
What this tool does
- Uses crypto.getRandomValues, the browser's secure random source.
- Version 7 IDs made in the same millisecond still sort in creation order (RFC 9562 monotonic method).
- Inspects any UUID or GUID: version, variant and, for v1, v6 and v7, the time it was made.
- Formats for SQL Server and .NET ({braces}), URNs, uppercase or no hyphens.
How the result is verified
Every batch is checked before display: each ID must match the UUID layout with the right version and variant bits, no ID may repeat, and v7 batches must be in strictly increasing order.
Frequently asked questions
Should I use UUID v4 or v7?
Use v7 for database primary keys: because it starts with the time, new rows go to the end of the index, which keeps inserts fast. Use v4 when the ID must reveal nothing, such as a public token.
Can two generated UUIDs ever collide?
In practice no. A v4 UUID has 122 random bits; you would need to make about 2.7 quintillion of them for a 50% chance of one repeat.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
MD5, SHA-1, SHA-256, SHA-384, SHA-512 and HMAC for text or files
Epoch seconds, ms, µs and ns to dates in any time zone and back
Build and sign HS256, HS384 and HS512 tokens from your own claims