Random strings, your way
Choose a length and the characters to use — uppercase, lowercase, digits and symbols — or type your own custom alphabet. Presets cover common needs such as hex, URL-safe (letters, digits, - and _) and letters-only strings. Every character is chosen independently with your browser's cryptographically secure generator, with no bias toward any character.
Generate one string or up to 1,000 at once. The tool shows how many bits of randomness each string has, so you can judge whether it's strong enough for a secret, and an option to avoid look-alike characters like I, l, 1, O and 0 makes codes easier to read aloud or type.
How to generate a random string
- 1
Pick a preset or character sets
Or enter custom characters.
- 2
Set the length and count
Up to 1,024 characters and 1,000 strings.
- 3
Generate
Copy one string or download the list.
Key features
Secure and unbiased
Web Crypto with rejection sampling.
Custom alphabets
Use exactly the characters you need.
Entropy display
See the strength in bits.
Readable option
Leave out confusing look-alike characters.
Common uses
- API keys and secrets: Generate long, unguessable tokens.
- Coupon and invite codes: Create readable codes without look-alikes.
- Test data: Fill databases with realistic random values.
Tips and good to know
- For secrets, aim for at least 128 bits of randomness — for example 22 characters from letters and digits.
- Creating account passwords? The Password Generator adds strength checks and memorable options.
