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.
