Random String Generator
Generate random strings from letters, digits, hex, base58 or your own alphabet, with the entropy of each.
Settings
62 characters in the alphabet, 95 bits per string. Generated with crypto.getRandomValues.
Generated
—
Saving needs a Dex account. The tool never does.
How it works
- Pick an alphabet and a length. The value regenerates as you change either, and the entropy figure updates with it.
- Base58 drops 0, O, I and l so an identifier can be read aloud or copied from a printout without ambiguity.
- Hex mode uses whole bytes, so an odd length is rounded to the nearest pair rather than producing a partial byte.
- Randomness comes from crypto.getRandomValues with rejection sampling, not Math.random, which is not suitable for identifiers that must be unpredictable.
Examples
A short identifier
Twelve base58 characters is about 70 bits, plenty for a public identifier that should not be guessable.
A hex token
Thirty-two hex characters is 128 bits, the shape most APIs expect for an idempotency key.
Frequently asked questions
Is a random string a password?
It can be, but the password generator is better for credentials: it guarantees a character from each selected class. This tool is for identifiers and tokens.
How secure is the randomness?
It uses the browser cryptographic source, the same one used for session tokens. The strings are unpredictable; they are still not a substitute for a secret kept properly.
Why base58?
It avoids characters that look alike when read aloud or typed from paper. That makes it the usual choice for identifiers people will transcribe.
Is anything uploaded?
No. Generation is local and no history of generated values is kept.