UUID Generator
Generate up to 100 random UUID v4 identifiers at once, choose the format, and validate existing UUIDs.
A UUID (Universally Unique Identifier) is a 128-bit identifier defined by RFC 4122. Anyone can create one without asking a central authority, and the result is unique for practical purposes.
UUID v4 builds the identifier from cryptographically secure random numbers. With 122 random bits, there are about 5.3 x 10^36 possible values, so a collision is very unlikely.
Database IDs
Use UUIDs as primary keys for database records
API keys
Generate identifiers for API tokens and keys
Session tokens
Give each user session its own ID
Distributed systems
Create IDs on separate nodes without coordinating between them
What is a UUID?
A UUID (Universally Unique Identifier) is a 128-bit identifier defined by RFC 4122. Version 4 UUIDs are random, so two of them colliding is extremely unlikely, though not impossible. They are common as database primary keys, API tokens, and session identifiers.
What is UUID v4?
UUID v4 is a randomly generated UUID. It has 122 random bits, and the other 6 bits record the version and variant. The odds of a duplicate are low enough for most uses.
Are UUIDs the same as GUIDs?
Yes. GUID (Globally Unique Identifier) is Microsoft's name for its implementation of the UUID standard. Both use the same format: 8-4-4-4-12 hexadecimal characters separated by hyphens.
How random are UUID v4 identifiers?
This tool uses the browser's cryptographic random source (crypto.randomUUID, or crypto.getRandomValues where that is missing). With 122 random bits, there are about 5.3 x 10^36 possible UUIDs. You would need to generate 1 billion UUIDs per second for about 85 years to reach a 50% chance of a collision.
Can I use UUIDs as database primary keys?
Yes, and it is common. Any server can create a UUID without asking a central counter. The cost is size: a UUID takes 16 bytes against 4 to 8 for an auto-increment integer, and random keys can slow down indexes in some databases.
Private by default
Generation and validation run in your browser. Nothing is sent to a server.
Related tools
JSON Formatter
Format JSON online in your browser. Paste or upload JSON to tidy it with 2 or 4 space indents, find syntax errors, minify it or browse it as a collapsible tree.
JavaScript to JSON
Convert JavaScript object literals to valid JSON
JSON Merge
Merge two JSON objects online with a deep or shallow strategy and choose how arrays combine. Useful for config files and API responses. Free, no signup.