Get the colour value of each pixel, row by row
This tool reads an image and lists the colour of every pixel (or of each cell in a smaller grid), row by row from the top-left corner. It is useful for pixel art, LED matrices and microcontroller projects, cross-stitch and knitting charts, teaching how digital images work, and data analysis.
- Open an image.
- Choose how many values you want per row. Use Use every pixel for the full resolution of small images, or a smaller number to get a simplified grid (for example 16 × 16 for an LED matrix).
- Pick a value format (HEX, RGB, RGBA or decimal) and download the result as CSV or JSON, or copy it.
Output formats
- CSV, one line per row: line 1 is the top row of the picture; each value is one pixel from left to right. Opens directly in Excel, Google Sheets or Numbers.
- CSV list: one pixel per line with its row, column, red, green, blue, alpha (0–255) and HEX value, ideal for analysis.
- JSON:
{"width", "height", "rows": [[...], ...]}for use in code.
How digital images store colour
A digital image is a grid of pixels. Each pixel usually stores three numbers from 0 to 255 for red, green and blue light, plus an optional alpha value for transparency. (0, 0, 0) is black, (255, 255, 255) is white and (255, 0, 0) is pure red. The HEX code #FF0000 is the same red written in base 16. Read more in How to find the colour code of anything in an image.
Frequently asked questions
Is there a limit on image size?
Up to 250,000 values (for example 500 × 500 pixels) can be listed at once to keep the page responsive. Larger images are automatically reduced to a grid within that limit.
Which corner is row 0, column 0?
The top-left pixel. Rows go down and columns go to the right, the same order used by HTML canvas and most image libraries.
Why do averaged values differ from the original pixels?
When the grid is smaller than the image, each value covers several pixels. “Average” blends them; “one pixel per cell” keeps exact original colours but may skip details.
Are JPG colours exact?
They are the exact decoded values, but JPG compression slightly alters colours compared with the original artwork. Use PNG for pixel-perfect data.