Convert Images to Bytes and Byte Arrays

Turn a local image into original file bytes or decoded RGB / RGBA pixel bytes, then format the result as a byte array, Uint8Array, hex, or Buffer.
Image → byte array Uint8Array Hex bytes Node.js Buffer RGB / RGBA pixels Local only
Input

Select an image

Local file

Choose or drop an image file. The tool reads the original encoded bytes exactly as stored in the file.

Output

Byte output

Waiting for image
Image bytes will appear here

Select an image, then choose original file bytes or decoded RGB / RGBA pixels and format them as a byte array, Uint8Array, hex, or Buffer.

File bytes RGB / RGBA pixels Private processing

How it works

Convert an image file into reusable byte representations

1. Choose an image

Select or drag a local image file. File bytes are available directly without decoding the image.

2. Choose file bytes or pixels

Keep the original encoded bytes, or decode the image locally into RGB or RGBA pixel-channel bytes.

3. Format, copy or download

Switch between byte array, Uint8Array, hex and Buffer representations. Large outputs stay compact in the on-screen preview.

Need to reconstruct the image again? Use the paired Bytes to Image tool from the switch control above.