Random Key Generator
Cryptographically-secure random keys.
Runs entirely in your browser — nothing you enter is uploaded, logged, or tracked.
Generate strong random keys and tokens from the browser’s cryptographic RNG (crypto.getRandomValues) — choose the byte length and the format (hex, Base64, Base64URL, or a word passphrase). Perfect for API keys, session secrets, JWT signing keys and encryption keys — all generated locally and never logged.
Frequently asked questions
Is the randomness secure?
Yes — it uses crypto.getRandomValues, the browser’s cryptographically-secure RNG, suitable for keys and secrets. Math.random is never used.
What length should I use?
32 bytes (256 bits) is a strong default for most secrets and keys. Use 64 bytes for HMAC-SHA-512 secrets; 16 bytes (128 bits) is a reasonable minimum.
Are the keys stored or sent?
No — they are generated in your browser and never transmitted or logged. Reload the page and they are gone.