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.

Runs in your browser v1.0.0

Generator options

Presets

Between 1 and 256 characters. Longer strings carry more entropy.

Character sets

Up to 1000 at a time. Each one is independently random.

Advanced

Add your own characters to the pool. Whitespace is ignored and duplicates are removed. Turn every set above off to use only these characters.

Result

0 strings


                
Entropy —

How 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.