EIT easy-image-tools / List image pixels as RGBA byte values

List image pixels as RGBA byte values

Lists every pixel as four decimal bytes (R G B A), one image row per line.

01

List image pixels as RGBA byte values

Nothing found — try another word.

This tool has no parameters — the result is ready as is.

Preview
Source
Drop a PNG here or click / paste (Ctrl+V) — processed locally
Result
no result yet

List image pixels as RGBA byte values writes out, for every pixel, four decimal numbers between 0 and 255: red, green, blue, alpha. That is the raw form a canvas script works with — the array handed to a typed array, the buffer written into a shader, the sample a colleague wants as numbers rather than as a picture. The list prints one image row per line, so the shape of the image stays readable in the text, and what you get is always the decoded pixels, so a JPG simply contributes fully opaque alpha values. There is no quality setting involved: the numbers are the picture.

  • Decoded entirely in your browser: no upload, no server, no signup.
  • Four numbers per pixel, one image row per line.
  • A JPG or BMP reports alpha 255 — those formats have no alpha channel.
  • The bytes to PNG tool rebuilds the image from exactly this layout.
  • Free with no daily limit, no watermark and no account, also for commercial use.

How to use it

  1. Drop the image into the source area, or pick a file from your device.
  2. Read the R G B A groups in the result panel - one line per image row.
  3. Press the copy button to put the whole list on the clipboard.
  4. Feed the numbers to a typed array, or switch to the hex listing if the target language prefers that form.

Questions

How many numbers should I see?

Four for every pixel, so a 100 by 100 image prints 40000 numbers. One image row is one line, which is how you count the width.

Are the values the same for every kind of image?

They describe the decoded picture, so a screenshot, a photo and a flat icon all print four numbers per pixel.

Can I paste these numbers back?

Yes. The bytes to PNG tool rebuilds the image from exactly this layout once you give it the width of a row. The pixel values survive unchanged; the re-encoded file is not guaranteed to match byte for byte.

Why do transparent pixels show 0 in the last column?

Zero alpha is fully transparent, and it is a real value rather than a missing one. A JPG or BMP has no alpha channel, so it reports 255.

Related tools