Skip to content
CrayonPix

Invert Image Colors Online

Turn any picture into its negative in one click, or invert only the light and dark while the colors keep their hue. Your image is processed on your device and never uploaded.

Loading the tool…

Your images are processed on your device and never uploaded.

How to use Invert Image Colors

  1. 1

    Choose or drop one or more images (JPG, PNG, WebP, AVIF, HEIC, SVG).

  2. 2

    Pick "All colors (negative)" or "Brightness only (keep hues)" and check the live preview.

  3. 3

    Click Download to save the inverted image, or a ZIP if you added several files.

How color inversion works

A digital image stores each pixel as three numbers from 0 to 255: red, green and blue. Inverting means replacing each number with 255 minus itself. A pure white pixel (255, 255, 255) becomes pure black (0, 0, 0), a mid gray stays almost the same, and every color turns into its complement on the color wheel:

Original Inverted
Black White
Red Cyan
Green Magenta
Blue Yellow
Skin tones Blue-green tones

This is the “negative” effect people know from old film strips and from the invert option of photo editors. Because the operation is exact, inverting the downloaded PNG a second time gives you back the original pixels.

Brightness only: invert light and dark, keep the colors

The second mode answers a different need. Instead of flipping each channel, it measures how bright the pixel is (its luminance, weighted the way the eye perceives red, green and blue) and shifts all three channels by the same amount so that the brightness is mirrored. Light backgrounds become dark, dark text becomes light, but a red logo stays red and a green leaf stays green.

That is useful to turn a white screenshot or a diagram into a dark version, to make a scanned page easier to read at night, or to create a moody, high-contrast version of a photo without the alien colors of a full negative. Very saturated colors can hit the 0 or 255 limit and get slightly flattened, so this mode is not perfectly reversible.

Formats and batch processing

You can open JPG, PNG, WebP, AVIF, GIF (first frame), BMP and SVG files, plus iPhone HEIC photos. You can add several images at once: the preview shows the first one, and Download saves them all in a single ZIP file, each with “-invert” added to its name (a file whose format changes, such as HEIC to JPG, just gets the new extension).

You open You download
JPG JPG (quality 92%)
PNG PNG, transparency kept
WebP WebP (PNG in Safari, which can’t save WebP)
HEIC, AVIF JPG
SVG, GIF, BMP PNG
  • Pure black and white negative: convert the photo with Black and White Photo first, then invert it for a clean monochrome negative.
  • Graphic poster look: invert, then reduce the result to a few flat tones with Posterize Image.
  • Change just one color: if you only want to swap a single color rather than all of them, use Change Image Color, and Image Color Picker to read the exact value of a color before and after.

Privacy

There is no upload step. The page reads your file, inverts the pixels on a canvas and saves the result locally; the site’s security policy only lets the page talk to its own server. The output is rebuilt from pixels, so EXIF metadata such as GPS location and camera model is not copied into the new file.

Frequently asked questions

What does inverting the colors of an image do?

Every color is replaced by its opposite. Each red, green and blue value is subtracted from 255, so black becomes white, white becomes black, red becomes cyan, green becomes magenta and blue becomes yellow. The result looks like a film negative.

What is the difference between the two invert modes?

"All colors" is the classic negative and changes the hues too. "Brightness only" makes light areas dark and dark areas light but keeps a red shirt red and a blue sky blue, which is closer to what a dark mode does to a picture.

Can I turn the negative back into the original?

With "All colors", yes. Inverting twice gives back the same pixel values, so running the downloaded PNG through the tool again restores it exactly. "Brightness only" clips very saturated colors, so it is not perfectly reversible.

Can I invert a scanned film negative into a positive photo?

You can get a first look at it. Color film negatives also have an orange base layer, so a plain inversion of a color negative usually comes out with a blue cast that needs color correction afterwards. Black and white negatives invert cleanly.

Is transparency kept?

Yes. Only the color channels are inverted; the alpha channel is left untouched, so a transparent PNG stays transparent where it was transparent.

Are my images uploaded?

No. The pixels are inverted by your browser with the Canvas API, on your own device. Nothing is sent to a server, and the page keeps working offline once it has loaded.