Image Color Palette Extractor

Get every color used in a sprite, or the N most important colors of a picture. Download the palette in formats that pixel art editors and code can read.

Drop an image here, click to choose one, or paste with Ctrl+V.
Sprites, screenshots, photos or palette swatches. Nothing is uploaded.

How to get a color palette from an image

  1. Drop a sprite, tileset, screenshot or photo above.
  2. For pixel art, keep All exact colors. For photos or concept art, choose Reduce to N main colors.
  3. Sort the colors by usage, brightness or hue. Click any swatch to copy its hex code.
  4. Download the palette in the format your editor or engine uses.

Ways game developers use extracted palettes

About the formats

GPL is the GIMP palette text format. It is widely supported, and this tool writes the hex code as each color's name.

JASC-PAL comes from Paint Shop Pro and is still read by Aseprite and many sprite tools.

HEX is a plain list of codes, one per line, which is the download format on Lospec.

JSON and CSS variables are convenient for web games and UI theming.

FAQ

How do I import the palette into Aseprite?

Download the .gpl or .pal file, then in Aseprite open the palette menu (the small icon above the color palette) and choose Load Palette. You can also copy the file into Aseprite's palettes folder to keep it in the list.

Which format should I pick?

.gpl works in GIMP, Aseprite, Krita and Inkscape. .hex is the plain list Lospec uses. .pal is the JASC format many pixel editors support. The PNG strip is handy for engines and shaders that sample colors from an image.

What is the difference between exact and reduced?

Exact lists every distinct color, which is what you want for pixel art. Reduce groups similar colors with weighted median cut and returns the N most representative ones, which suits photos and screenshots.

What do the percentages mean?

The share of (opaque) pixels using that color. In reduced mode it is the share of pixels closest to that color.

Is my image uploaded?

No. Colors are counted in your browser; the image never leaves your device.