Random ID and Secret Generator

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

Generated in your browser
Every value uses crypto.getRandomValues on your device. Nothing is sent to a server.
about 122 bits

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.

UUID v4 is fully random. UUID v7 and ULID start with a timestamp, so a database sorts them in the order of creation, which keeps an index small. NanoID is shorter than a UUID and is safe in a URL.

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.