Random ID and Secret Generator

Generate UUIDs, ULIDs, NanoIDs, random strings, and passphrases.

🔒 Client · Offline
Generated in your browser
Every value uses crypto.getRandomValues on your device. Nothing is sent to a server.
about 122 bits
Paste a UUID v7 or a ULID to read the time that it holds.

About random values

This tool makes three kinds of random value. An ID names a record. A random string makes a token or an API key. A passphrase makes a password that a person can remember.

Select UUID v7 or ULID for a database key. Both formats start with a millisecond timestamp, so the database writes each new row at the end of the index. The index stays small. Select ULID when the key must be short, because a ULID has 26 characters and it sorts as text.

Select UUID v4 or NanoID for a distributed ID. Each value is fully random, so two hosts cannot make the same value without a shared counter. The creation time also stays private. NanoID is shorter than a UUID and it is safe in a URL.

Select a passphrase for a secret that a person types or says. Words of the same strength are easier to type than random characters. Select a random string for a secret that only a machine reads, such as an API key.

The strength value counts the random bits. Aim for 128 bits or more for a secret. A six-word passphrase gives about 77 bits, which is strong for a login but weak for a key. Every value comes from crypto.getRandomValues, which is a cryptographic generator.