Image to byte list
Print the raw bytes of every pixel. Your image never leaves your device.
- Your text is never uploaded
- Processed on your device
- Works offline
- Free, no sign-up
Empty
Result updates as you type
The result appears here as soon as you type or open a file.
Settings
How it works
Open a picture
Open a JPG, PNG, WebP, GIF, BMP or AVIF file. Its bytes are printed at once.
Choose RGB or RGBA
Three channels print colour only; four channels add the opacity byte.
Copy or download
Copy the bytes into code, or download them as a text file.
Reading raw bytes
Every pixel is printed as decimal numbers from 0 to 255, separated by spaces: red, green, blue, then optionally opacity. These are the exact channel values a program would read from the decoded picture, ready to paste into arrays and buffers.
Large pictures are sampled down to 512 pixels on the longest side so the dump stays manageable; the summary tells you when this happens. For exact full-size dumps, shrink the picture yourself first.
What the bytes are good for
Byte dumps feed programming exercises, firmware fixtures, steganography checks and tests that compare pictures pixel by pixel. Because the format is plain numbers, any language can read it without a parser.
Dumps are long: even a small picture holds tens of thousands of numbers. Copy a corner of the result when you only need a sample, rather than the whole file.
Dumped inside the page
The picture is decoded and every channel is printed as a number by code in this tab. The pixels never leave your computer, so test fixtures built from private artwork stay private.
Nothing is recorded or remembered. Once the tab closes, the dump survives only in files you saved yourself.
Questions
Is my picture sent to a server?
No. Decoding and printing happen inside your browser. Your picture never leaves your device.
What do the numbers mean?
Each number is one colour channel from 0 to 255: red, green, blue, then opacity in RGBA mode. With 3 channels every three numbers are one pixel.
Why does a big picture print fewer bytes?
Pictures are sampled down to 512 pixels on the longest side so the dump stays usable. The summary notes when sampling happened.
Is it free?
Yes. Free to use, with no sign-up, no watermark and no daily limits.
Related tools
More free tools that run on your device. No uploads