Color Palette Extractor
Pull the dominant colors from any image — right in your browser.
Your image never leaves your deviceGet a color palette from an image
or drag & drop it here, or paste it from your clipboard (Ctrl+V)
JPG · PNG · GIF · WebP · SVG
How it works
The file never leaves your device — nothing is uploaded to any server.
About this color palette extractor
Drop, pick, or paste any image and get its colors in seconds. The tool reads every pixel at full size — nothing is shrunk, so no blended colors are invented and no one-pixel accent is lost. If the image uses up to 1,024 colors, as pixel art, logos and icons do, you get every single one, exact, with how much of the image each covers; sort them by hue to see your shading ramps. Photos have thousands of colors, so for them median-cut quantization (the classic algorithm behind GIF encoders) groups similar shades into the 3 to 64 that define the picture. Click any swatch to copy its hex code, or copy the whole list at once.
It’s built for designers matching a palette to a brand photo, developers theming a UI around artwork, and anyone who wants CSS-ready hex values from a screenshot. Unlike most palette generators, your image is never uploaded: decoding, sampling, and quantization all happen on a canvas inside your browser, so mockups under NDA, client photos, and unreleased artwork stay on your device.
FAQ
Which image formats are supported?
Anything your browser can decode: PNG, JPG, WebP, GIF (first frame), SVG, and AVIF in most modern browsers. HEIC photos from iPhones are the notable exception — browsers can’t decode HEIC, so convert those to JPG first.
How are the colors calculated?
First every pixel is read at full size and every distinct color is counted (fully transparent pixels are ignored). If there are 1,024 or fewer, all of them are listed exactly as they are, ordered by how many pixels use each. Above that the image is a photo or a gradient: a 200-pixel sample is clustered with median-cut quantization — the color space is split repeatedly along its widest axis and each cluster is averaged — and the status line tells you how many distinct colors the image really has.
Can it show every color in pixel art?
Yes. Pixel art almost never uses more than a few hundred colors, so you get all of them, exact, including a single-pixel highlight. Sort by hue to see each shading ramp from dark to light. Use the original PNG or GIF: a JPG adds compression colors you never drew, and the tool tells you when that happens.
Is my image uploaded anywhere?
No. The file is read with the browser’s own image decoder and processed on a local canvas. Nothing leaves your device — the tool even works offline once the page has loaded.