# Image to Palette Extractor

> Extract a color palette from any image.

- Open in browser: https://pockettoolbox.org/en/palette-extractor
- Runs entirely in your browser; files and input are never uploaded.

## How it works

A tool to extract the most dominant colors from an image and create a compact color palette.

Upload an image. The tool analyzes the image pixels locally in your browser via a canvas element, using a median-cut quantization algorithm to find the top 8 to 64 colors. Click a color to copy its HEX value, or export the palette as a text file.

Extracts pixel data from a canvas and applies median-cut color quantization. Recursively partitions the 3D RGB color space to derive dominant palette colors.

## Popular tasks

- [Color Palette from an Image](https://pockettoolbox.org/en/color-palette-from-image)

---
PocketToolbox (https://pockettoolbox.org/en)
