UUID Generator
Generate UUID v1, v4, and v7 in any quantity.
About UUID
UUID (Universally Unique Identifier) is a 128-bit unique identifier that allows collision-free ID generation in distributed systems without a central server.
Format: xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx
(M = version, N = variant bits)
Common uses:
• Database primary keys
• Session and token IDs
• Unique identifiers in distributed systems
• File and resource naming
UUID Version Comparison
| Version | Based On | Sortable | Use Case |
|---|---|---|---|
| UUID V1 | Timestamp + MAC | Yes | Distributed systems, log tracing |
| UUID V4 | Random | No | General purpose, session IDs |
| UUID V7 | Unix Timestamp | Yes | Modern DBs, time-ordered inserts |
UUID Examples
FAQ
Should I use UUID v4 or v7?
For general purposes (session IDs, tokens), v4 is the most widely supported. For database primary keys where time-ordering matters, v7 is recommended — its timestamp prefix improves B-tree index performance compared to random v4.
Can UUIDs collide?
UUID v4 has 122 bits of random entropy. Even generating 1 billion per second, the probability of a collision after 100 years is only about 50%. In practice, collisions are essentially impossible.
Is UUID suitable as a database primary key?
v4 is fully random, causing frequent B-tree page splits. Time-sortable IDs like v7 or ULID are better for database performance. Store as BINARY(16) in MySQL to save space versus VARCHAR(36).
Does UUID v1 expose the MAC address?
The original v1 spec includes the real MAC address. However, this tool uses random node values, so no MAC address is exposed. For security-sensitive use cases, prefer v4 or v7.
Related Tools
Hash Generator
Generate SHA-1, SHA-256, SHA-384, SHA-512 hashes.
Password Generator
Generate secure random passwords with customizable length, character types, and quantity.
Random Number Generator
Generate random numbers within a specified range.
QR Code Generator
Generate QR codes from text and URLs. Customize size, colors, and error correction.
Base64 Encoder/Decoder
Encode and decode Base64 strings.