UUID Generator
UUID generator tool. Generate UUIDs by selecting from multiple versions when you need primary keys for databases or unique identifiers. You can generate up to 100 UUIDs in a single operation.
How to use
About this tool
Generates RFC 4122 compliant UUIDs (v1, v3, v4, v5, v6, v7) in the browser. No server round-trip; works offline.
UUID versions
• v1: Timestamp and MAC-based. Sortable by time. Note: MAC address may raise privacy concerns. • v3: MD5 hash. Deterministic from namespace and name. Same input gives same UUID. • v4: Random. Most widely used. Unpredictable; recommended for general use. • v5: SHA-1 hash. Deterministic from namespace and name. Preferred over v3. • v6: Timestamp-based (v1 improved). Sortable; mitigates v1 privacy issues. • v7: Timestamp-based (milliseconds). Sortable. Newer spec.
How to use
Choose a version (v1–v7) and count, then click "Generate". For v3 and v5, enter a namespace UUID and name. Click each UUID to copy.
Options
Version: v1, v3, v4, v5, v6, or v7. For v3/v5, namespace (valid UUID) and name are required. Count: 1–100.
Use cases
• Unique keys for test data and mocks • Database primary keys and foreign keys • Trace IDs for logs and distributed tracing • Avoiding filename collisions on upload • API resource IDs and tokens • Cache keys, session IDs
Code Examples
1use Illuminate\Support\Str;
2
3$uuid = Str::uuid(); // v41import uuid
2
3# v4 (most common)
4uuid.uuid4()
5
6# v1, v3, v5
7uuid.uuid1()
8uuid.uuid3(uuid.NAMESPACE_DNS, "example.com")
9uuid.uuid5(uuid.NAMESPACE_DNS, "example.com")1// Browser / Node built-in (v4)
2crypto.randomUUID();
3
4// uuid package (v1, v3, v4, v5, v6, v7)
5import { v4 } from 'uuid';
6v4();Privacy and data
All generation happens in the browser; no UUIDs or input are sent to any server.
FAQ
- Q: What is a UUID?
- A: A UUID (Universally Unique Identifier) is a 128-bit identifier standardized by RFC 4122. It is designed to be unique across time and space without a central authority, making it ideal for distributed systems, database keys, and resource IDs.
- Q: What is the difference between UUID versions?
- A: v1 uses timestamp and MAC address. v3 and v5 are name-based (deterministic) using MD5 and SHA-1 respectively. v4 is random and the most commonly used. v6 and v7 are newer time-ordered variants that sort lexicographically, making them better for database primary keys.
- Q: Which UUID version should I use?
- A: Use v4 for general purposes. Use v7 if you need time-ordered UUIDs for database primary keys (better index performance). Use v5 if you need deterministic UUIDs from a name and namespace.
- Q: Are the generated UUIDs truly unique?
- A: v4 UUIDs are randomly generated with 122 bits of randomness, making collisions astronomically unlikely. This tool uses the browser's built-in cryptographic random number generator for maximum randomness.
- Q: Is any data sent to a server?
- A: No. All UUID generation happens entirely in your browser. Nothing is sent to any server.
