Generate random byte sequences in the browser, inspect the output in multiple formats, and use secure browser randomness when it is available.
Generate between 1 and 256 random bytes per run.
Generated with crypto.getRandomValues() for browser-grade randomness.
The tool allocates a `Uint8Array`, fills it with random values from 0 through 255, and then formats the resulting bytes for display.
When the browser exposes `crypto.getRandomValues()`, that API is used instead of `Math.random()` so the byte stream is suitable for stronger randomness needs.
A byte is eight bits and can represent an integer value from 0 to 255.
Different workflows want different views of the same bytes, such as hex for debugging, Base64 for transport, or decimals for inspection.
It is secure when `crypto.getRandomValues()` is available. The tool clearly shows when it had to fall back to `Math.random()` instead.
They are useful for demos, fixtures, protocol testing, nonces, and other situations where raw unpredictable data is helpful.
One byte equals two hexadecimal characters.
Random bytes are the raw building blocks behind many tokens, binary blobs, and encoded identifiers.
Longer byte sequences increase the space of possible outputs very quickly.
Related Tools
Convert pixels to inches.
Convert RGB color values into HEX codes.
Convert roman numerals values.
Convert between kilobytes and megabytes.
Convert letters to numbers.
Convert between megabytes and gigabytes.