Tokens, salts, and nonces
Generate random byte material and choose its representation.
Select a purpose
Open Token and choose Token, Salt, Nonce, or Random bytes. These labels describe intended uses of the same secure random-byte generator; they do not implement a protocol or guarantee uniqueness.
Use the byte length and uniqueness requirements of your consuming protocol. Salts need not be secret. Nonce reuse can be dangerous, and some protocols require counters rather than random values.
Length and encoding
The tool accepts 1–4,096 bytes. Entropy is bytes × 8; encoding does not change the underlying byte count.
- Hex: two lowercase characters per byte.
- Base64: standard alphabet with padding.
- Base64URL: URL-safe alphabet without padding.
A 32-byte value becomes 64 hex characters. Changing encoding changes its representation, not its randomness.
Keep secrets out of reports
Copy output only when you need it. Do not commit generated application secrets or paste them into public issues. Dedicated developer-secret presets now provide documented recipes; purpose selection is not a claim that a value satisfies every JWT, session, or webhook implementation.