Why generate UUIDs in your browser?
Universally Unique Identifiers are the most common way to give a database row, a session, or an event a guaranteed-unique identifier without coordinating with a central authority. They are widely supported, easy to copy and paste, and short enough to fit comfortably in a URL or log line. Most developers reach for an online generator dozens of times a year: while seeding a test database, while writing API documentation, while building a quick demo.
Versions on offer
- UUID v4 — cryptographically random. The most common variant. Use whenever you do not need temporal ordering.
- UUID v7 — RFC 9562 draft. The first 48 bits encode the Unix millisecond timestamp; the remainder is random. Sorts naturally by creation time, which makes it ideal as a database primary key.
- Nano ID — a smaller alternative (21 characters by default) using a URL-safe alphabet. Great for short URLs and resource IDs that need to fit in tight UIs.
How randomness is guaranteed
All identifiers are generated using the browser native crypto.getRandomValues and crypto.randomUUID APIs. These functions read from the same cryptographically secure random source used for TLS, password hashing, and key generation — so the probability of collision is effectively zero. There is no upload, no logging, and no server. Generate one, generate a thousand, refresh and generate a thousand more.