Random String Generator
Generates random strings from a character set of your choosing, using the browser's cryptographic random number generator. Nothing is sent to a server, so a value used as an API key or token never leaves your device.
Generates random strings from a character set of your choosing, using the browser's cryptographic random number generator. Nothing is sent to a server, so a value used as an API key or token never leaves your device.
Leave the box empty for one 32 character alphanumeric string, or set options as key=value pairs: charset=hex, length=64, count=5. A bare number is treated as the length.
Available character sets are hex, digits, lowercase, uppercase, letters, alphanumeric, and base58. For anything else use custom=ATCG to draw from exactly those characters.
Use cases
- Creating an API key or session token for a new environment
- Producing identifiers or filler values for test fixtures
FAQ
Is the string sent to a server?
No. It is generated in your browser with crypto.getRandomValues and never leaves your device, so it is safe to use as a real secret.
What is base58 for?
It is the alphanumeric set without 0, O, I, and l, so a string stays unambiguous when read aloud, written down, or copied by hand. Bitcoin addresses use the same alphabet.
How long should a token be?
The reported entropy is the number that matters, not the character count. 128 bits is the usual target for a secret token, which is 32 hex characters or 22 base58 characters.
What if my custom set repeats a character?
Duplicates are removed first. Leaving them in would make those characters more likely than the others and quietly weaken the result.