Image Compressor
Drag the quality slider and watch the JPEG size drop.
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.
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. Your browser does all the work.
This extracts a colour palette from a photo or graphic, meaning 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 browser analyses the image on your device. No server is involved.
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. It is a fast histogram method, not perceptual clustering, so it favours the largest colour areas.
Drag the quality slider and watch the JPEG size drop.
Set exact pixel dimensions with the aspect ratio locked.
Drag a box and keep only that part of the picture.
Make 16, 32 and 180 pixel favicon PNGs from one image.
Put JPGs or PNGs into one PDF, one image per page.
Shrink a PNG to WebP and keep the transparency.
Your image stays on this device. There's no account and no charge.