Image recolor

Image Color Palette Swap

Recolor a logo, illustration or photo without an editor. The tool finds the main colors, you choose replacements, and shading is kept so the result still looks natural.

Drop an image here or click to chooseJPG, PNG, WebP or GIF - processed on your device

Runs entirely in your browser. Nothing is uploaded to any server.

Why swap colors in an image

Recolor in seconds

Try new brand colors on a logo or icon without opening a design app.

Shading stays intact

Shift mode moves every shade of a color together, so gradients and texture survive.

Private by design

Images are processed in your browser and never uploaded.

How to swap colors

  1. Upload an imageDrop a picture in. Its main colors are extracted automatically.
  2. Choose new colorsClick the color box next to any swatch, or click the image to add a specific color.
  3. Fine-tune and saveAdjust tolerance and mode until it looks right, then download PNG or JPG.

How the palette swap works

The palette is found with k-means clustering: thousands of sampled pixels are grouped into the number of colors you choose, and each group's average becomes a swatch. Every pixel is then matched to its nearest swatch. If that swatch has a new color and the pixel is within the tolerance distance, the pixel is changed.

In shift mode, the difference between the old and new swatch colors is added to each matching pixel, so darker and lighter shades move together and detail is preserved. In flat mode, matching pixels are pulled to the exact new color, which suits flat graphics and logos. Pixels near the edge of the tolerance are changed slightly less to avoid harsh borders.

Tolerance

Higher values catch more shades of a color; lower values are more precise.

Sampling

Click the image to add a color that the automatic palette missed.

Transparency

Transparent pixels are kept transparent in PNG downloads.

Color swap tool FAQ

Why did other areas change color too?

Pixels close in color to the swatch are included. Lower the tolerance, or increase the number of extracted colors so similar areas get separate swatches.

Which mode should I use for photos?

Shift mode. It keeps highlights and shadows, so skin, fabric and sky still look natural.

Can I recolor a transparent PNG?

Yes. Transparent areas are ignored when extracting the palette and stay transparent in PNG downloads.

Is the image resized?

Very large images are scaled to a maximum of 1600 pixels on the longest side for fast processing.

Are my images uploaded?

No. All processing happens on your device.

Try other image tools

More free tools from My Panda Toolbox.