UUID Generator
Generate v4 UUIDs (random universally unique identifiers). Each click produces a new one.
How to use this tool
- 1
Click the Generate UUID button to produce a fresh random v4 UUID.
- 2
Read the 36-character identifier shown in the canonical 8-4-4-4-12 format below the button.
- 3
Click Copy to put the UUID on your clipboard for pasting into code, a database, or a config file.
- 4
Click Generate UUID again whenever you need another one — every click replaces the value with a brand-new random UUID.
What is a UUID and why does software use them?
A UUID (Universally Unique Identifier, called GUID in Microsoft contexts) is a 128-bit value used to identify things without coordinating between systems. The point is that two programs on two machines, with no knowledge of each other, can each mint UUIDs and assume they will never collide. That unlocks distributed design: any service can generate IDs locally without a central counter, you can merge databases without renumbering rows, and clients can pre-generate IDs before the server sees the request. RFC 4122 defines several canonical versions — v1 (time + MAC address, which leaks creation time and machine identity), v3 (MD5 hash of a namespace + name), v4 (random), and v5 (SHA-1 hash of a namespace + name) — and RFC 9562 added v6 and v7 (timestamp-prefixed, designed to sort chronologically for database keys). This tool generates v4 only. It calls the browser's built-in crypto.randomUUID(), which draws from the operating system's cryptographically-strong RNG — the same source TLS keys use. The result is a standard v4 UUID in the same RFC format produced by Python's uuid.uuid4(), Node's crypto.randomUUID(), and Go's NewRandom(); the values differ every time (they are random) but are interchangeable in format across all those tools.
Common use cases
Database primary keys — drop a v4 UUID in instead of an auto-incrementing integer when you need to merge tables or generate IDs on the client before insert.
Session and CSRF tokens — a random 122-bit value is long enough that guessing a valid one is computationally infeasible.
Idempotency keys for API requests — attach a UUID so a retried POST is deduplicated by the server instead of charging the customer twice.
Uploaded file names — store files under a UUID to avoid path collisions and to keep the user's original filename out of the URL.
Distributed tracing and correlation IDs — tag each request with a UUID and propagate it through services so logs can be stitched together.
Seeding test fixtures — paste a fresh UUID into a unit test when you need a unique-but-throwaway identifier without hand-picking one.
Frequently asked questions
What UUID version does this tool generate?▼
Is my UUID generated privately, or sent to a server?▼
How unique are v4 UUIDs really?▼
Should I use v4 for database primary keys?▼
Is crypto.randomUUID() safe and well-supported?▼
What is the difference between a UUID and a GUID?▼
Can I shorten the UUID for a URL?▼
Related tools
JWT Decoder
Decode JSON Web Tokens (JWT) instantly — inspect the header, payload, and signature claims. Runs entirely in your browser; tokens never leave your device. Safe for production secrets.
JSON Formatter & Validator
Format, validate, and minify JSON instantly. Catches syntax errors with line numbers, pretty-prints with adjustable indent, supports large payloads. Runs in your browser — no upload.
XML Formatter & Beautifier
Format and beautify XML documents — proper indentation, line breaks, namespace handling. Useful for SOAP responses, sitemaps, RSS feeds, and Android resource files.
Base64 Encoder & Decoder
Encode and decode Base64 strings.
URL Encoder & Decoder
Encode/decode URL-safe strings.
HTML Entity Encoder & Decoder
Convert special characters to/from HTML entities.