How to use the Palette Extractor
- Drop a sprite, sheet or image.
- Sort by frequency, hue, lightness or saturation.
- Lower the max colors or raise 'merge similar' for photos and AI art.
- Click any swatch to copy its hex, or copy the whole list.
- 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.