Skip to content
AI Sprite Maker

Palette Extractor

For pixel art you get the exact palette with pixel counts. For busy images it merges near-duplicates and picks the dominant colors perceptually.

  • Free
  • Runs locally
  • No sign-up
Palette

Load an image to start.

Everything runs in your browser. Your files are never uploaded, so it also works offline once the page has loaded.

How to use the Palette Extractor

  1. Drop a sprite, sheet or image.
  2. Sort by frequency, hue, lightness or saturation.
  3. Lower the max colors or raise 'merge similar' for photos and AI art.
  4. Click any swatch to copy its hex, or copy the whole list.
  5. Export as .hex, .gpl, .pal, .ase, .txt, CSS or a PNG swatch.

What you get

  • Color list with hex codes and share of pixels
  • Palette files: .hex, .gpl, JASC .pal, .ase, Paint.NET .txt, CSS
  • PNG swatch strip

Tips from making games with it

  • Sorting by lightness shows your ramps in order. Gaps or near-duplicates stand out quickly.
  • If a sprite reports far more colors than you drew, it probably went through smoothing or JPEG. Clean it with the Pixel Art Sharpener.
  • Use 'merge similar' around 2–4 on AI-generated sprites to collapse noise into the colors you actually see.
  • The proportional bar at the top shows how much of the sprite each color covers when sorted by frequency.

Use cases

  • Getting the palette out of a sprite to reuse in Aseprite
  • Checking how many colors a sprite really uses
  • Building a palette from concept art or a screenshot
  • Making a palette for Palette Transfer

FAQ

Does it find every color?
Yes, when the image has no more colors than the max setting. Above that, colors are grouped with perceptual k-means so rare but distinct colors still get a slot.
What does merge similar do?
It treats colors closer than the threshold in OKLab space as one, adding up their pixel counts. 0 keeps every exact color.
Are transparent pixels counted?
No. Fully transparent pixels are ignored. Semi-transparent pixels are counted by their color.
Which file should I export for Aseprite?
.gpl or .ase keep the order; .hex is the simplest. Aseprite opens all of them from the palette menu.
Is my image uploaded?
No. Colors are counted in your browser.
All free tools →