Password & Key Generator
Generate strong passwords, passphrases, PINs, UUIDs and API keys, or paste one to find out what type it is
Runs in your browser
Options
Output
Select at least one character type.
What is the Password & Key Generator?
It creates random passwords, passphrases, PINs and developer keys, including UUID v4 and v7 as defined in RFC 9562, ULIDs, hex and Base64 keys, API tokens and Nano IDs, using crypto.getRandomValues, your browser's cryptographically secure random number generator. The Identify tab works the other way: paste an existing password, hash, token or key and it names the format, for example a bcrypt hash, a JWT or a GitHub token, and estimates its strength in bits. Nothing leaves your device.
Use cases
- Create a strong, unique password or a memorable passphrase for a new account
- Generate secrets for apps: API tokens, session keys, 256-bit hex or Base64 keys
- Create IDs for databases and tests: UUID v4 or v7, ULID, Nano ID
- Find out what an unknown string is, such as a hash in a database or a key in a config file, and check how strong an old password is
Tips
Use a different password for every account and keep them in a password manager. NIST SP 800-63B favours length over forced symbols and regular changes; aim for at least 80 bits of entropy for important accounts, for example 16 random characters or 7 words. Choose a passphrase for anything you must type from memory, such as your device login or your password manager's main password.
Examples
Identify a password hash
Input
$2b$12$R9h/cIPz0gi.URNNX3kh2OPST9/PgBkqquzi.Ss7KIUgO2t0jWMUW
Output
- Detected as
- Password hash
- Algorithm
- bcrypt ($2b$)
- Cost
- 2^12
Identify a UUID and read its creation time
Input
0192b6a4-7c1e-7d3a-9f4b-2c8e5a1d6f30
Output
- Detected as
- UUID
- Version
- v7
- Variant
- RFC 9562
- Created
- 2024-10-22T23:51:25.982Z
- Entropy
- 74 bits (Strong)
Check an old password
Input
Password123!
Output
- Detected as
- Password
- Entropy
- 10 bits (Very weak)
Questions and answers
Are the generated passwords sent or saved anywhere?
No. Values are created in your browser with crypto.getRandomValues and are never sent to a server or stored. The same goes for anything you paste into the Identify tab.
Can it make a new password based on my old one?
Yes. Paste the old one in the Identify tab and you get a new random value of the same kind: the same character types and at least the same length for a password, the same separator for a passphrase, the same prefix for a token. Weak passwords are made longer until they are strong. Nothing from the old value is reused.
Is a passphrase as safe as a random password?
It can be. Each random word adds about 9 to 13 bits, so 6 or 7 words are as strong as a 14 to 16 character random password, and much easier to type and remember.
Can the tool recover a password from a hash?
No. It only recognizes the format, for example bcrypt, Argon2 or SHA-512 crypt, and reads settings such as the cost. A hash cannot be reversed.
How sure is the type detection?
Formats with a fixed structure, such as bcrypt hashes, JWTs, UUIDs and keys with a known prefix, are recognized with certainty. Plain random strings can fit several formats, so the tool shows the most likely one and lists the others.
Sources and standards
Related tools
All ToolsHash Generator
MD5, SHA-1, SHA-256 and SHA-512 checksums of text or files
SecurityBase64 Encoder/Decoder
Encode or decode Base64 strings
EncodingQR Code Generator
Generate QR codes from text or URLs
GeneratorR2 Cleanup Tool
Validate Cloudflare R2 credentials, preview a folder-like prefix, and delete objects in safe batches without storing what users enter.
Storage