Secret/API Key Generator
7 toolsGenerate a random hex or Base64 secret key.
Runs in your browser — your files and text stay on your device
A complete password toolkit — generate strong random passwords, memorable passphrases, PINs, API secrets, and usernames, check the strength of your own password, or generate many at once. Everything runs locally in your browser using a cryptographically secure random source.
Password GeneratorPassphrase GeneratorPassword Strength CheckerPIN GeneratorBulk GeneratorUsername GeneratorSecret/API Key Generator
Length (bytes)32
How to use this tool
- 1Choose the key length in bytes and an encoding.
- 2A random secret generates automatically.
- 3Copy it into an .env file or secrets manager.
Frequently asked questions
What's a good length for an API secret?
32 bytes (256 bits) is a strong default for most session secrets and API keys.
Is this cryptographically secure?
Yes — it uses crypto.getRandomValues, the Web Crypto API's secure random source.
Is my generated secret sent anywhere?
No — everything happens locally in your browser.