Random Bytes

Choose how many bytes.

Use this tool

Result

The result appears in this panel after you run the tool.

About this tool

The preview shows the first bytes. The download is the full sequence.

The size is capped at 65536 bytes.

How to use it

  1. Open this page and provide the input it asks for.
  2. Set the options that are visible, then use Generate bytes.
  3. Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.

Limitations

A buffer of 1 to 65536 bytes

What is filled

Sizes are integers from a single byte up to 65536. The control starts at 32. A Uint8Array of that length is filled with crypto.getRandomValues. The panel prints the size and the first 32 bytes as space-separated lowercase hex. If the size is smaller than 32, the hex is only those bytes. If the size is larger, the text stops at 32 bytes and the rest exist only in the download. The download is a binary blob of the full buffer, type application/octet-stream. The hex line is a preview, not a re-encoding of the whole allocation when the allocation is long.

The bytes are uniform from the crypto generator. There is no modulo alphabet and no character set. Password and random-string pages differ because they map bytes onto glyphs and, for some alphabet lengths, tilt the distribution. Here the byte is the result.

What the buffer is for

Use it when a test needs a key-shaped or noise-shaped blob: a fixture file, a sample IV you will not reuse in production, a random body for a parser. The preview lets you see that the draw happened. The file lets you keep every byte. The site does not upload the buffer and does not send it to analytics. It lives in the page until you download it or replace it with another click.

Leave these jobs elsewhere

The preview hex is not the whole secret once the size passes 32. Copying the line and discarding the download drops the tail. A downloaded blob is a bad one-time pad if you reuse it. Reusing a pad destroys the pad. This is also a bad password generator. The output is raw bytes, not the unambiguous alphabet on the password page, and every byte value can appear. A UUID is a different layout. A UUID has version and variant bits this buffer does not set. If you needed an identifier in the canonical UUID text, use that generator. If you needed a decimal or an integer on screen, this preview is hex of bytes, which is a different spelling.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.