Random Bytes Generator
Generate secure random bytes in hex, Base64 or decimal.
Bytes come from your browser's cryptographically secure random generator and are never sent anywhere. Useful for salts, nonces, keys and IDs.
Browser-side processing
This tool is designed to process your input on your device. Some operations download additional code when first used, so loading the page alone does not guarantee offline availability. Review the tool's disclosures and use your browser's Network tab to distinguish dependency downloads from requests containing input.
About the Random Bytes Generator
Generate cryptographically secure random bytes for salts, nonces, tokens and IDs.
Choose how many bytes and the output format: hex, Base64 or a decimal array.
Bytes come from your browser's secure random generator and are never sent anywhere.
Key features
- 1 to 1024 bytes
- Hex, Base64 or decimal output
- Cryptographically secure randomness
- Copy the result instantly
How to use
- 1Choose the number of bytes and a format.
- 2Click generate to create the bytes.
- 3Copy the result.
Examples
16 bytes, hex32 hex charactersEach byte is two hex characters, so 16 bytes is 32 characters.
8 bytes, decimal8 numbers from 0 to 255Handy when you need byte values as numbers.
Frequently asked questions
- What are random bytes used for?
- They are the building blocks of salts, nonces, initialization vectors, session tokens and unique IDs.
- How random are they?
- They use the Web Crypto secure random generator, which is suitable for cryptographic use.
- Are the bytes uploaded?
- No. They are generated locally and never sent anywhere.
Continue your workflow
Open a related tool to prepare your files or refine the finished result.
- Security & CryptographyEncryption Key Generator
Generate a random AES key in hex and Base64.
Open tool - GeneratorsRandom Token Generator
Generate random tokens, API keys and secrets in bulk.
Open tool - Security & CryptographyPassphrase Generator
Generate memorable, secure passphrases from random words.
Open tool
