Random Bytes Generator
Generate the requested number of Web Crypto random bytes and display them as two hex characters per byte.
How to use
- Enter the number of random bytes and generate.
Capabilities and scope
The input is a byte count rather than output-character count.
How it works
crypto.getRandomValues fills a Uint8Array and the bytes are serialized as hex.
Example
Requesting 16 bytes produces 32 hexadecimal characters.
Useful for
- Prepare raw random bytes for salts, IVs, or test vectors
Before you use it
- Match the exact byte length and encoding required by your protocol, and handle resulting secrets safely outside the browser.
Frequently asked questions
How many characters does input 16 produce?
Sixteen bytes are displayed as 32 hex characters.