Format Code Now
/
Web & markupInvert Image Colors Next: Sharpen Image Online ›

Invert Image Colors

WM-101

Turn any picture into its negative: white becomes black and every color becomes its opposite. Open an image, check the result and download it.

Runs in your browser. Nothing is uploaded.

Original

Drop an image here or paste one, or use Open image. PNG, JPG, WebP, GIF and more.

Inverted

The converted image appears here.

How to use it

  1. Open an image, drop one on the left pane, or paste it from the clipboard.
  2. The inverted picture appears on the right straight away.
  3. Choose PNG, JPG or WebP under Save as.
  4. Press Download to save the negative.

How the inversion works

Each pixel stores a red, a green and a blue value between 0 and 255. Inverting replaces every value c with 255 minus c. White (255, 255, 255) becomes black, a pure red becomes cyan, and a mid gray stays almost the same. It is the film negative look, applied to the stored sRGB numbers, not a brightness-only change that keeps hues.

Transparency and repeat inversion

The alpha channel is left untouched, so see-through areas of a PNG or WebP stay see-through. JPG cannot hold transparency and fills those areas with white after the inversion. Inverting a PNG twice returns the original colors for opaque pixels, which makes the operation easy to check. Common uses are reading light text on a dark scan, checking contrast, and making dark-mode versions of simple line art and icons.

Questions people ask

How do I invert the colors of an image?

Open the image in the left pane. The negative shows on the right immediately, with no button to press. Pick a file format and use Download to save it. The original file on your device stays as it was.

Does inverting keep transparent areas transparent?

Yes for PNG and WebP: only red, green and blue change and alpha is untouched. For JPG there is no transparency, so those areas are filled with white after the colors are inverted.

What does inverting do to a photo?

It makes a negative. Skies turn orange or brown, skin turns blue-green and shadows become highlights. Because the math works on each channel separately, the hues flip to their opposites, which is not the same as a dark-mode adaptation.

Can I get the original colors back?

Yes, by inverting the new PNG again. Each opaque pixel goes from c to 255 minus c and back to c exactly. A JPG or WebP copy has been compressed, so a second inversion will be close but not identical.

Does it work on GIFs and animations?

Only the first frame of an animated GIF or WebP is read, so you get one inverted still image. The animation itself is not processed or kept.

About this tool

Each red, green and blue value c becomes 255 minus c, so white turns black, black turns white and a pure red turns cyan. The alpha channel is not touched, so transparent areas stay transparent in PNG and WebP; JPG fills them with white after inversion. Inverting twice returns the original colors for opaque pixels when you save as PNG. This is a plain per-channel negative on the stored sRGB values, not a perceptual or brightness-only inversion, so skin tones and skies take on strong opposite hues. Your original file is not changed; the result is a new file you download. Color profiles and photo metadata such as camera details and location are not copied to it. Animated GIF and WebP files are read from their first frame only. Some browsers cannot save WebP and save PNG instead, which the result line says.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.