Random string and password generator
GenerateExperimentalLimited support. Verify anything critical.
A random string and password generator selects characters with rejection-sampled values from the browser's cryptographically secure random source, avoiding modulo bias. You can set the length and include lowercase letters, uppercase letters, numbers, or a compact symbol set, or switch to a hyphenated memorable phrase assembled from a bundled local word list. Generated values are never transmitted or saved by the tool, though clipboard history and the surrounding device still matter.
Skip to the toolThis tool processes the values or files you choose on your device. They are not uploaded.
Output
Limits
- Strings are 4 to 256 characters; memorable phrases use 3 to 12 words from a compact built-in list.
Warnings
- Use a password manager for account credentials; do not reuse generated passwords or expose them through clipboard history.
Steps
Set length and character sets
Run locally
Copy once into a password manager
How to use Random string and password generator
Prefer unique credentials
Randomness helps only when every account receives a different value. Store generated credentials in a reputable password manager instead of a document or reused pattern. A length-20 run with all character sets enabled produces a fresh string each time.
Phrase mode
The built-in word list is intentionally small for a lightweight utility. Increase the word count and use a full password-manager word list for high-value credentials.
How it works
- Enter what you haveType or pick your length, character-set choices, phrase mode. Nothing is submitted anywhere.
- It runs in this tabThe calculation happens on your device, using your browser's own data.
- Take the resultRead the random string, memorable phrase, then copy or download.
Worked example
Given: Length 20 with lower, upper, numbers, and symbols enabled
Result: A 20-character string drawn via crypto.getRandomValues with rejection sampling (different each run)
Uses crypto.getRandomValues with rejection sampling and a small original bundled word list.
- Basis
- independent
- Licence
- MIT
- Last reviewed
Frequently asked questions
Is Math.random used?
No. The generator uses the browser cryptographic random source and discards biased samples.
How long can a memorable phrase be?
Phrase mode uses 3 to 12 words from a compact built-in list. Increase the word count for higher-value credentials, or use a full password-manager word list.