Image Palette Extractor

Extract the dominant colours from any image using k-means clustering. Click any swatch to copy the hex.

100% in your browser — files never uploaded.
Postcrest — full AI image suite

Need more than a converter? AI background removal, upscale, edit and generate — one workspace.

How to use the Image Palette Extractor

  1. 1
    Drop your image
    PNG, JPG, WebP — anything.
  2. 2
    Choose palette size
    From 2 to 16 colours.
  3. 3
    Click to copy
    Tap any swatch to copy the hex code.

About this tool

All processing happens in your browser via the Canvas API. No server roundtrip, no upload.

Uses k-means clustering on a downsampled grid of pixels — fast and good enough for design work.

Frequently asked questions

Is it free?
Yes — no signup, no watermarks.
Are files uploaded?
No — every step runs in your browser.
How accurate?
Very — 8 k-means iterations on ~12k sampled pixels.
Commercial use?
Yes — palette is yours.
Mobile-friendly?
Yes.