Color Palette Extractor
Extract the dominant colors from any image - get hex, RGB, and HSL codes for 5, 10, or 16 colors. Copy as CSS variables or download a swatch PNG.
Drag, drop, paste, or browse
JPG, PNG, WEBP, GIF, AVIF, and HEIC up to 50 MB. Paste from clipboard with Ctrl+V.
Upload an image to extract its color palette.
Median-cut quantization runs entirely in your browser. Drag on the preview to pick colors from a specific area.
Color Palette online with ImgShifter
The Color Palette Extractor reads an image, downsamples it to a 160 px thumbnail for speed, and runs median-cut color quantization to find the dominant colors. Median-cut is the same algorithm used by GIF encoders and most palette generators - it recursively splits the RGB color space along its longest axis until the requested number of colors is reached, then averages each box to a single representative shade. The whole pass takes well under a second on typical photos.
Every color is shown in three formats - HEX (#FF7E3D), RGB (rgb(255, 126, 61)), and HSL (hsl(18, 100%, 62%)) - so you can paste straight into whichever tool you're using next. Click any value to copy it. For design systems, use Copy as CSS variables to get a paste-ready :root block with --color-1 through --color-N. For sharing in design docs, use Download swatch PNG to export a strip with hex codes and percentage shares rendered onto each color.
Pick 5 colors for tight brand palettes, 10 for richer themes, or 16 for retro pixel-art-style lookups. Everything runs in your browser - the image is decoded on-device with the Canvas API and quantized in pure JavaScript. No upload, no signup, no watermark. The percentages reflect each color's share of the quantized output, which is approximate but reliable for ranking.
Related tools
Other ImgShifter tools people use alongside Color Palette.
SVG Editor
Edit SVG source live in your browser. Recolor, tweak stroke widths, resize the viewBox, optimize, and export as SVG or PNG.
Image to Favicon
Turn any image into a complete favicon set in your browser. ICO, PNG, Apple touch icon, Android Chrome icons, manifest, and an HTML snippet - bundled as a ZIP.
EXIF Viewer
Inspect EXIF, XMP, IPTC, and GPS metadata embedded in a photo - camera, lens, exposure, location, and more.
Compress
Reduce image file size with a quality slider and instant before/after stats. Powered by jsquash MozJPEG, libwebp, and AVIF encoders.
Frequently asked questions
Short answers for image workflows, privacy, and supported formats.