Security & Encoding
Secure Random String Generator
Generate cryptographically secure random tokens and passwords from configurable character
sets and lengths. Values are created on your device with
crypto.getRandomValues() and never leave the page.
Result
0 stringsHow it works
Every character is drawn from your browser’s
crypto.getRandomValues() secure random number generator, with rejection
sampling so each character in the pool is equally likely. The entropy figure is
length × log2(pool size) and estimates how hard the
string is to guess. Nothing is uploaded and no request is made; if the secure source is
unavailable the tool falls back to Math.random() and tells you.
Practical uses
Generate random strings and tokens in the browser with a chosen length and alphabet.
Common ways to use it
- Create an API key, nonce or session identifier for a test environment.
- Produce a random string that avoids characters a system treats specially.
Things to keep in mind
- The output depends on the browser's secure random source, so it should not be treated as a stored secret on its own.