Image Palette Extractor
Free online image palette extractor. Process data instantly in your browser. No upload, no signup, fully private.
Image is downscaled to ≤200px before sampling. All processing happens locally.
How to Use
- Select or drag and drop your text into the Image Palette Extractor workbench above.
- Adjust the settings or options as needed — all processing runs locally in your browser without uploading to any server.
- Review or copy the extracted result directly from the output panel.
What is Image Palette Extractor?
An Image Palette Extractor analyzes a photo or graphic and extracts its dominant color palette as crisp #rrggbb hex swatches ready to copy into stylesheets or design tokens. Brand designers, front-end developers, and illustrators use it to derive cohesive UI color schemes from inspiration images.
How It Works
To keep extraction fast, extractPixels() downsamples the image on an offscreen <canvas> to at most 200px on its longest edge and skips transparent pixels (alpha < 128). It then runs your chosen algorithm—either Median cut quantization (medianCutQuantize) or quantized bucket Frequency (frequencyQuantize with 4-bit channels)—to return 3–12 representative RGB colors displayed as hex swatches locally.
Common Use Cases
- Building a UI theme from a hero photograph — extract 5–6 dominant hex colors using Median cut quantization
- Inspecting most-common pixel tones in icons or sprites — switch to the Frequency quantization algorithm
- Controlling palette granularity — slide the color count between 3 and 12 swatches dynamically
- Exporting hex palettes into Tailwind or CSS vars — copy the newline-separated #rrggbb list in one click
Technical Details
APIs: HTML5 Canvas 2D (getImageData downscaled to <=200px max dimension, skipping pixels with alpha < 128). Algorithms: medianCutQuantize (_shared/color.ts) and 4-bit frequencyQuantize (_shared/image.ts). Range: 3–12 colors (default 6) locally.
FAQ
Is this Image Palette Extractor free?
Yes, completely free. No signup required.
Does this tool upload my data?
No. All processing happens locally in your browser. Your data never leaves your device.