Random string generator
Generate secure random strings, keys and tokens from letters, digits, symbols or your own characters.
Missing a feature or found a bug in Random string generator? Tell me on X (@_andrewtran) or by email.
How to use Random string generator
- Set the length and how many strings you want.
- Choose a character set, or type your own.
- Select Generate, then copy or download the strings.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
How random are the strings?
They come from the secure random source built into your browser, the same one used for encryption keys. Every character has an equal chance.
How long should a secret be?
Aim for 128 bits of randomness or more. That is 32 hex characters, or 22 from letters and digits.
Related tools
ROT13
Encode or decode text with ROT13, the letter-rotation cipher that undoes itself.Morse code translator
Translate text to Morse code and Morse code back to text.Cron expression explainer
Read a cron schedule in plain words and see the next five times it will run.XML formatter
Format, minify and validate XML, with the line number of the first problem.