How to use Random Key Generator
- Choose the length and format.
- Set how many keys you need and an optional prefix.
- Copy the keys.
About Random Key Generator
API keys, signing secrets and session tokens must be unpredictable. This tool uses the secure random generator built into your browser, the same one used for cryptography, so the results are suitable for real secrets.
The length is the number of random bytes for Hex, Base64 and Base64URL, and the number of characters for the letters and digits format. A 32 byte key gives 256 bits of randomness. Add a prefix if you want keys that are easy to recognise, like sk_live_.