Turn a PNG swatch grid
into a palette
Export an ordered .gpl palette from a PNG. Every cell keeps its place, including repeated colors.
Match the image’s grid
Enter the number of colors across and down. A 16 by 16 image with one pixel per swatch is a 16-column, 16-row palette. Use the grid area controls to trim a border or select a subset of rows.
Open the palette in your editor
Import the .gpl as a palette in GIMP, or load it from Aseprite’s palette menu. If your editor uses indexed mode, check its color limit first. Aseprite indexed images use up to 256 slots.
Keep color ramps in order when exporting a palette
A swatch sheet already shows the order of your colors. Sample the center of each regular cell and write each RGB triplet on its own line in a GPL palette.
Keep cell centers solid. The converter reads one center pixel per cell. Use regular swatches and keep text or dividing lines away from the centers. GPL stores RGB, so selected centers must be opaque.
Read the worked example