Read the color of every source pixel

Open Source
Convert AI pixel art into clean, grid-aligned pixel art while preserving the original shapes and details.

AI image models often produce blurry, inconsistent, off-grid pixels. Pixel Snapper finds the underlying grid and rebuilds the image on a consistent pixel grid.
Original image
Read the color of every source pixel

K-means palette
Find representative colors

Quantized colors
Build a limited, consistent palette

X/Y brightness profile
Measure the strength of each brightness change

Estimated step size
Find the median gap between peaks

Median step guide
Set the expected distance between cuts

Walked cuts
Follow the strongest nearby edge peaks

Final cut cells
Use each cell as a color voting area

Output pixels
Keep the winning color from each cell

Input
Blurry, inconsistent, off-grid pixels

Output
Clean, grid-aligned pixel art


Fast Integration with Game Engines