How is it different from the password generator?
The password generator targets ordinary users and creates passwords for logging in.
The random key generator targets developers and creates random strings used in programs, such as API Secret, JWT Secret, and Webhook Secret.
How to choose the output format?
All three formats are encoded from the same random bytes with identical security; only the representation differs.
- Hex: contains only 0-9 and a-f. Fits most config entries and has the best compatibility
- Base64: more compact characters, a shorter string for the same random byte length
- Base64URL: replaces + / with - _ and drops the = padding, suitable for URLs or file names
What does the length in bit mean?
Length is measured in bit and represents the amount of randomness. More bit means more possible values and a harder guess.
The page also shows the corresponding byte count, for example 256 bit = 32 bytes.
- 128 bit: the minimum workable level, often used where compatibility matters most
- 256 bit: the general recommendation, balancing security and length
- 512 bit: use when a longer random string is needed
Common use cases
Random keys are commonly used wherever an unpredictable string is needed, for example:
- API Secret / Access Token
- JWT signing keys
- Webhook verification secrets
- Key material for symmetric encryption such as AES
- Secrets in environment variables
Security tips
The generated result exists only on the current page and is gone after closing it. Save it to a secure key management system or environment variables.
Do not put it into frontend code, public repositories, or chat history. Use different keys for different purposes.