Pixelate an Image
Choose a photo, set its grid width, and download a pixelated PNG.
Harbor light sample · 317 × 197 px
Files stay in your browser. Up to 20 MiB, 4,096 px per side and 12 million pixels.
The same lighthouse at 12 and 28 columns
Both PNGs use the decoded dimensions of the 317 × 197 px source illustration. Grid width changes the number of blocks, not the size of the PNG.

26–27 × 28–29 px per cell · 504 × 512 px sheet

11–12 × 11–12 px per cell · 929 × 832 px sheet
At 12 columns, the last column is 27 px wide and the last row is 29 px high. At 28 columns, both are 12 px. Fully transparent cells are excluded from the color count: 4 in the first grid and 42 in the second. The second grid also has 51 cells with partial opacity. Verified against PNGs downloaded from the tool.
Read the numbered grid sheet
Choose Download grid sheet for a separate PNG with one numbered square for each cell in the preview. Match a square’s code to the hex color and cell count in the key. A dash means fully transparent. A second number gives opacity on a 1–254 scale, where 255 would be fully opaque. The sheet shows partial opacity over white.
The codes identify digital colors in this tool. They are not material or brand color numbers. The sheet uses square cells for counting; the artwork PNG follows the original image dimensions.
How the tool picks each block
The row count is the image height divided by its width, multiplied by the column count and rounded to the nearest whole row. The tool uses at least one row. For very tall images, it caps the row count at 128 and limits the available columns.
The tool divides the full image into cells without trimming the edges. At each axis, boundary i is the whole-pixel floor of i × length ÷ cell count. Each cell takes its center pixel. Each red, green and blue channel maps to the nearest of 0, 85, 170 and 255, for up to 64 colors. Codes 01–64 follow that order, with blue changing first, then green, then red. The cell keeps its center pixel’s opacity; browser encoding can round translucent RGB values.
Every pixel in a block receives the same color and opacity. The tool draws whole blocks directly, with no smoothed resize in the export. See the WHATWG Canvas rules for image smoothing for how canvas handles interpolation when scaling.
Pixelation changes the whole image for a visual effect. Do not use it to hide private details.