Random Bytes Generator
Generate cryptographically secure random bytes as hex, Base64, or a decimal array.
Result
Generate random bytes using your browser's secure crypto.getRandomValues source, suitable for tokens, keys, salts or test data. Choose how many bytes and the output format — hex, Base64, or a decimal array — and regenerate anytime.
How to use
- Set how many random bytes to generate.
- Choose the output format: hex, Base64, or decimal array.
- Copy the result or click Regenerate for a new value.
Frequently asked questions
- Is this cryptographically secure?
- Yes, bytes come from the Web Crypto API's crypto.getRandomValues, the same secure random source browsers use for cryptographic operations.
- How many bytes can I generate?
- Up to 4096 bytes per click, output instantly in your chosen format.
- Which format should I use for a secret key?
- Hex or Base64 are the most common representations for keys and tokens; use whichever your target system expects.