Local StudioPHOTO TOOLS

Image Palette Extractor

Find dominant colors in a PNG or JPG. Review ranked swatches and copy their CSS variables.

  • Free
  • Works Offline
  • No Uploads
Works with:
  • Microsoft Edge
  • Google Chrome
  • Mozilla Firefox
  • Safari
Image Palette Extractor with five ranked color swatches, their percentages, and Copy CSS and Download CSS actions.
The five-color sample shows the swatches in descending share order.

Extract a Color Palette

  1. Open the HTML, review Security Check, then select Continue.
  2. Choose a local PNG or JPG, or select Open Sample.
  3. Enter the number of colors and select Extract Palette.
  4. Review the ranked swatches and copy a hex value, copy CSS variables or download the CSS.

Review Dominant Image Colors

  • Choose up to 12 colors. The default palette uses five.
  • Read representative hex values and their shares of visible sampled pixels.
  • Copy a single hex value or copy and download all ranked CSS variables.

Formats and Compatibility

InputOne local still PNG or JPG up to 64 MiB, 8 megapixels and 16,384 pixels per edge.
OutputRanked sRGB hex swatches and a separate image-palette.css with the same order and values.
BrowserA modern browser with local file support.
ScopeOne still PNG or JPG up to 64 MiB and 8 megapixels. Groups up to 131,072 sampled positions into 1–12 colors.
Operating Systems
  • Windows
  • macOS
  • Linux
  • ChromeOS

Local Processing Without Uploads

Use the local Extract Color Palette from Image tool with no upload. The browser-based workbench works offline from the ZIP.

Select Open Sample to see the workflow with the included example.

Photo Palette Generator

The tool counts a bounded sample, groups similar colors and ranks them by visible sample share. Fully transparent pixels are excluded and partly transparent pixels count once.

Copy or Download CSS Variables

Copy CSS or use Download CSS to get numbered palette variables. The values and ranking match the displayed swatches.

Frequently Asked Questions

Can I use Extract Color Palette from Image offline?

Yes. Extract the Tool ZIP and open ImagePaletteExtractor.html in a current browser.

Is there a free Extract Color Palette from Image tool?

Yes. Open the workbench and extract or save a palette without an account.

Can I use Extract Color Palette from Image without uploading?

Yes. The image is decoded and sampled on your device.

Where is the Extract Color Palette from Image download?

Download Tool ZIP saves the offline HTML. Download CSS saves the palette inside the tool.

Can I use Extract Color Palette from Image in browser mode?

Yes. Launch the tool and select a local still PNG or JPG.

How are percentages calculated?

Each share uses visible sampled pixels as its denominator. Fully transparent pixels are skipped. Any pixel with nonzero alpha counts once.

Why are there fewer colors than I requested?

An image can have fewer distinct color groups. A fully transparent image returns an empty result and offers no CSS export.

Can a representative swatch differ from a pixel in the image?

Yes. Each shade group uses its weighted average sRGB value. Large images are sampled, and fine details may be missed.

Does this tool work offline on Windows, macOS, Linux, and ChromeOS?

Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.

Which browsers can I use with this offline tool?

Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.