Ready now
Random Secret Generator
Preparing controls…
About this tool
What Random Secret Generator does
Generate a configurable random secret from browser cryptographic randomness for tokens, keys, or test credentials.
Generate a new secret using browser cryptographic randomness and the selected Base64URL, hexadecimal or alphanumeric alphabet. The length setting is a number of output characters, not bytes.
Check a hexadecimal output contract
Input or settings
Alphabet: hexadecimal Length: 16
Expected result
16 characters drawn from 0123456789abcdef.
A fresh value is random. The test checks length and alphabet without publishing a reusable secret.
How to use it
- Choose the alphabet accepted by the destination and a length from 8 to 1,024 characters.
- Choose Generate secret and protect the screen while the value is visible.
- Copy it to an appropriate secret store, then reset or close the workspace.
Common uses
- Create a bounded test token in a required alphabet.
- Generate a fresh application secret when the destination specifies its format and length.
Important limitations
- Character count alone does not establish suitability; hexadecimal has fewer possible values per character than Base64URL.
- The value is displayed in plain text and can be exposed through screen, clipboard, extensions or a compromised device.
Frequently asked questions
Does length mean bytes of entropy?
No. It means characters. For uniformly chosen hexadecimal characters, 16 characters represent 64 bits of choices, not 128.
Can I use the same secret for multiple services?
Prefer a fresh value for each purpose and follow the destination’s rotation and storage policy.