Image

Runs in your browser. No file uploads for processing.

Image to Color Palette: Export GIMP GPL, CSS or PNG

Extract representative colors from a PNG or JPEG. Ignore fully transparent pixels and download a GIMP palette, CSS variables, or a PNG swatch sheet.

Loading tool...

How to export an image's colors as a palette

  1. Open an image locally

    Choose a static PNG or baseline/progressive JPEG, then set a maximum of 2 to 16 colors.

  2. Review color weights

    Try the 20 × 10 example: 100 opaque coral pixels, 50 opaque navy pixels and 30 teal pixels at one-third opacity contribute 62.50%, 31.25% and 6.25%. Twenty fully transparent pixels contribute nothing.

  3. Download the format you need

    Use GPL to import RGB swatches into GIMP, CSS to share the values as custom properties, or PNG for a visual table. These are swatches, not converted copies of the original image.

Use cases

  • Build a starting palette from reference artwork.
  • Transfer chosen image colors to a GIMP palette or CSS theme.

Limits and privacy

  • Static PNG and baseline/progressive JPEG only, up to 12 MiB, 4,096 pixels per side and 12 million pixels total. Requires worker-based image decoding support.
  • The palette groups close shades and weights alpha separately; it is not an exact pixel histogram, accessibility check, or simulation of the image on a background.

The tool processes inputs in your browser. Account features and usage analytics are separate.

Frequently asked questions

Can I check the exact color of one pixel instead?

Use Color Picker to inspect one exact pixel. Image Palette Export Studio approximates representative groups across an image instead.

Do transparent pixels count as colors?

Fully transparent pixels do not contribute, even if the file has hidden RGB values. Partly transparent pixels contribute in proportion to their opacity.

Why did I get fewer colors than the requested maximum?

The number is an upper limit. When the source has few distinct color groups there may be fewer swatches.

Can a GIMP GPL palette store transparency?

No. GPL stores RGB values. Opacity is used in choosing the swatches, not included in the export.

Is the image or original filename uploaded?

No. The browser reads and analyzes it on your device. Output contains generated swatches and no file name or original image pixels.

Related tools