Skip to content

How Secret Generator works

Generate cryptographically random secret keys (hex or base64) or human-typable passwords. Presets cover common cases like a 32-byte AUTH_SECRET or a webhook signing key.

All randomness comes from crypto.getRandomValues. Encoding is done locally; no value is ever transmitted. Entropy estimates are shown for each result.

Questions

How random are the values?
They are drawn from the Web Crypto API's crypto.getRandomValues, the same cryptographically secure source used for production secrets.
What encodings are supported?
Secret keys can be output as base64url, standard base64, or hex. base64url is safe to drop directly into environment variables.
What are the presets for?
Quick-start buttons generate a value sized for common uses, like a 32-byte AUTH_SECRET or a hex webhook secret.
Is anything sent to a server?
No. Generation and encoding happen entirely in your browser. Nothing is logged or transmitted.

More Generate tools

All the tools · How to check that nothing is sent

Secret Key & Password Generator | Only in the Tab