Random String Generator
Generate unbiased cryptographic random strings with custom character sets, lookalike exclusion, and batch export.
Related security tools
All Security toolsPassword Generator
Generate high-entropy passwords or passphrases using browser Web Crypto randomness.
Passphrase Generator
Generate memorable Diceware-style word passphrases with Web Crypto entropy calculation.
Password Strength Checker
Measure password entropy, spot weak patterns, and estimate brute-force crack times locally.
Token & API Key Inspector
Identify token formats (JWT, Bearer, Basic Auth, UUID, ULID, API key prefixes) and measure Shannon entropy locally.
About Random String Generator
Generate cryptographically unbiased random strings up to 512 characters with customizable alphabets, lookalike filtering, entropy readout, and TXT export.
How to use Random String Generator
- 1
Choose string length, batch count, and active character sets (or type a custom alphabet).
- 2
Optionally exclude ambiguous lookalike characters like 0, O, 1, l, and I.
- 3
Copy individual strings, copy the whole batch, or download as a plain text file.
Frequently asked questions
How does Random String Generator avoid modulo bias?
It uses crypto.getRandomValues() with rejection sampling so every character in your selected alphabet has an equal probability of being chosen.
Can I restrict output to a custom set of characters?
Yes. Type any 2 or more unique characters into the Custom Alphabet box to override the default checkboxes.
Are generated strings logged or transmitted?
No. Random generation happens solely inside your browser’s Web Crypto CSPRNG.
