Palette from Image

Extract the dominant colors from an image. Pick k-means or median-cut, choose 2–16 swatches, then copy as CSS variables or JSON. Your image never leaves your browser.

Drop an image (PNG · JPG · WebP) or use the button below.

Algorithm

How it works

  1. Drop your file or paste your content into the tool above.
  2. Adjust the options — every change updates the preview instantly.
  3. Download the result. Your file never leaves your browser.

Your files never leave this page

Every conversion runs entirely in your browser using WebAssembly. There is no upload, no server-side processing, no analytics, and no cookies. Open DevTools → Network during the operation and you will see zero outbound traffic.

Related tools

Topics covered