Image Compressor
Image Compressor online, free and private. Process images instantly on your device.
Pull the eight most common colours out of any image as hex codes — click a swatch to copy it, or download the palette as text. All in your browser.
Your browser is preparing the tool. It runs 100% locally.
Upload an image and the tool pulls out its eight most common colours as hex codes. It groups the pixels into colour buckets, ranks them by how much of the image each covers, and shows the top eight as swatches — click one to copy its hex, or download the whole palette as text. It runs entirely in your browser.
This extracts a colour palette from a photo or graphic — the handful of colours that dominate it — as hex codes you can use in a design. It shows the eight most common colours as clickable swatches.
It works by frequency: the colours that cover the most of the image rise to the top. That makes it good for capturing the overall feel of an image, from a brand photo or a piece of artwork.
Drop or pick an image. It is sampled at a small size for speed, and its pixels are read.
Similar colours are grouped into buckets; each bucket's pixels are counted and averaged into one representative colour. The eight biggest buckets become the palette.
The swatches show each hex code. Click one to copy it, or download the eight codes as a text file. Nothing is uploaded.
Your image is analysed entirely in your browser and never uploaded — there is no server.
The palette is computed locally; no account and no stored copy.
The image and its colours never leave your device.
| Output | 8 hex colours |
|---|---|
| Method | Frequency buckets, averaged |
| Ranking | By share of the image |
| Copy | Click a swatch to copy its hex |
| Download | palette.txt (hex list) |
| Sampling | Small downscaled version for speed |
| Processing | 100% in-browser |
It picks colours by frequency, so the palette reflects the largest areas of the image. A small but striking accent colour may not make the top eight if it covers little of the picture.
It groups colours into coarse buckets and averages each, which is fast but not a perceptual clustering like k-means or median-cut. Two slightly different shades can merge into one bucket, or a gradient can spread across several.
For speed it scans a downscaled version of the image rather than every pixel. The dominant colours come out the same, but very fine colour detail is not sampled.
The hex codes are exact averages of their buckets. They are a solid starting palette, not a designer's hand-tuned colour scheme.
Pull the key colours from a logo or product shot to reuse in a design.
Extract the feel of an artwork or scene as a set of hex codes.
Base a site or slide colour scheme on an image's dominant colours.
Grab a hex code from any part of an image's main colours.
For a harmonised scheme from one colour, use the colour palette generator; to read one exact pixel, use a colour picker.
Finds the eight most frequent colours by grouping the image's pixels into coarse buckets and averaging each — a fast histogram method, not perceptual clustering, so it favours the largest colour areas. Runs entirely in your browser.
Image Compressor online, free and private. Process images instantly on your device.
Edit and convert Image Resizer right in your browser — no upload, no quality loss.
Edit and convert Image Cropper right in your browser — no upload, no quality loss.
Favicon Generator online, free and private. Process images instantly on your device.
Use Image to PDF to transform images locally — fast, secure and watermark-free.
Edit and convert PNG to WebP Converter right in your browser — no upload, no quality loss.
It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.