EIT easy-image-tools / Extract a color from an image

Extract a color from an image

Keeps only pixels close to the chosen color and makes everything else transparent — the inverse of Remove Color.

Nothing found — try another word.

01

Extract a color from an image

Nothing found — try another word.

Color tolerance

Nothing found — try another word.

Preview
Source
Drop a PNG here or click / paste (Ctrl+V) — processed locally
Result
no result yet

Extract a color keeps only the pixels close to one chosen color and clears everything else — the inverse of removing a color. The result is one flat shape on a transparent background, which is how you pull a single logo color or badge out of a picture and drop it on a page. A tolerance setting decides how far a pixel may sit from the chosen color and still count as it, so a slightly soft edge can be kept or trimmed away. Everything runs in your browser, so the image is never uploaded.

  • Runs entirely in your browser: no upload, no server, no signup.
  • Keeps the chosen color and makes everything else transparent.
  • The eyedropper on the color field samples a pixel straight from the image.
  • Tolerance pulls in shades near the color: gradients and anti-aliased edges.
  • Free with no daily limit, no watermark and no account, also for commercial use.

How to use it

  1. Drop the image into the source area, or pick a file from your device.
  2. Pick the color you want to keep; the eyedropper on the color field samples a pixel of the image.
  3. Set the tolerance: lower values keep only exact matches, higher values include shades nearby.
  4. Download the result as a transparent PNG, or pick another output format in the Download button.

Questions

What does the result look like?

The pixels close to the chosen color, unchanged, on a fully transparent background. Anything outside the tolerance is cleared, including its own alpha, so the shape has no leftover halo.

How do I choose a tolerance?

Start low and raise it while the result looks cut off at the edges. Gradients, shadows and anti-aliased edges all sit slightly off the pure color, so a little tolerance usually gives a cleaner shape than none.

Is this the same as remove color?

It is the opposite operation. Remove Color makes the chosen color transparent and keeps everything else; this tool keeps the chosen color and removes everything else.

Is my image uploaded?

No. The pixels are read and the mask is computed in your browser tab, so the file never travels to a server and is not stored.

Related tools