How to Invert the Colours of an Image (Negative, Channels or Dark Mode)

Learn what inverting an image does to each colour, how to make a photo negative, invert one channel, or flip only brightness to create a dark-mode diagram.

Updated September 29, 2026 5 min read

Use the free Invert Image ColorsMake a photo negative, invert single channels or brightness only

Inverting an image turns black into white, white into black, and every colour into its opposite. People reach for it for surprisingly practical reasons: to turn a white-background diagram into one that fits a dark slide deck, to make a scanned whiteboard easier to read, to create a striking "negative" effect for a poster, or to take a quick look at an old film negative.

A plain inversion is not always what you actually want, though. Flipping every colour turns a blue logo orange and skin tones cyan. This guide explains exactly what inversion does, the variations that keep colours looking natural, and how to apply each one in your browser.

What inversion does to a colour

Each pixel in a standard image stores red, green and blue values from 0 to 255. Inverting replaces each value with its distance from the top:

new value = 255 − old value

So black (0, 0, 0) becomes white (255, 255, 255), a bright red (255, 0, 0) becomes cyan (0, 255, 255), and a mid grey (128) stays almost exactly the same. Every colour moves to its complement on the colour wheel, which is why a full inversion looks like a photographic negative.

Inverting single channels

You do not have to invert all three channels. Inverting only the blue channel, for example, swaps yellows and whites and changes the colour balance in unusual ways. This is mostly a creative effect, but it is also handy for checking how a design depends on one colour.

Inverting brightness only

Often what people want is not a negative but a dark version of the same image: dark areas light, light areas dark, and colours roughly unchanged. A brightness-only inversion does that. It calculates each pixel's brightness, flips it, and shifts the colour to the new brightness while keeping its hue. A white diagram with blue boxes becomes a dark diagram with blue boxes, instead of an orange one.

Partial inversion

Blending between the original and the inverted image gives a partial effect. Exactly halfway, every colour meets its opposite in the middle, and the image becomes a flat grey. That is a useful reminder that inversion is a smooth scale, not an on/off switch.

Invert an image in your browser

The Invert Image Colors tool offers all of these variations and runs on your device.

  1. Open Invert Image Colors and drop an image onto the page.
  2. Under Invert, choose Colours (negative) for a classic inversion, or Brightness only to swap light and dark while keeping hues.
  3. In colour mode, use the Red, Green and Blue switches to choose which channels are inverted. All three on gives a full negative.
  4. Move the Amount slider below 100% for a partial effect. At exactly 50% in colour mode the tool reminds you that everything turns flat grey.
  5. Drag across the preview to compare before and after, pick a format under Save as, and click Download image.

Other ways to invert colours

Photo editors

Every serious editor has an invert command: Image → Adjustments → Invert in Photoshop and Colors → Invert in GIMP. GIMP also has Colors → Value Invert, which is similar in spirit to a brightness-only inversion. Use these when you need to invert only part of an image through a selection or mask.

Operating system accessibility settings

Windows, macOS, iOS and Android all include display colour inversion in their accessibility settings. This inverts what you see on screen, including every app, but does not change any file. It is the right choice if bright screens are uncomfortable to read, not if you need an edited image to send to someone.

CSS

On a website, filter: invert(1); inverts an image when it is displayed. Combined with hue-rotate(180deg), it approximates a brightness-only inversion. That is useful for dark-mode themes, though results vary with colourful images, so preparing a dedicated dark version of important diagrams often looks better.

Film negatives

Colour negative film has an orange base layer that a simple inversion does not remove, so an inverted phone photo of a colour negative will look blue and muddy. It is fine for previewing what is on the film. For real scans, use scanning software with a negative mode, or correct the colour balance afterwards. Black-and-white negatives invert much more cleanly.

Tips and troubleshooting

My dark-mode diagram has strange colours

Use Brightness only rather than Colours (negative). A full inversion swaps hues, so your brand blue turns orange and green arrows turn pink.

Screenshots look harsh after inverting

Pure white text on pure black can be tiring to read. Reduce the Amount slightly so the background becomes a very dark grey rather than full black.

Transparent areas stay transparent

Inversion changes only colours, not transparency. A transparent PNG stays transparent, so its background colour will depend on where you place it. Save as PNG or WebP to keep the transparency.

Inverted scans look grey

Paper is rarely pure white, so inverting a scan gives a dark grey rather than black background. Increase contrast afterwards with Image Brightness & Contrast, or convert to black and white first with the Black and White Image Converter.

Need a matching colour code?

Inverting a single brand colour does not need an image at all. Get its value with Image Color Picker, then subtract each channel from 255, or convert it with Color Converter.

Frequently asked questions

What does inverting an image do?

It replaces every colour with its opposite: each red, green and blue value becomes 255 minus its original value. Black becomes white, and colours turn into their complements.

How do I make a dark version of a white diagram without changing its colours?

Use a brightness-only inversion. It swaps light and dark areas while keeping each colour's hue, so blue stays blue.

Why does my image turn grey when I invert it halfway?

At 50%, each colour is blended equally with its opposite, which always lands in the middle of the range. The result is a uniform mid grey.

Can I invert only one colour channel?

Yes. In colour mode, switch off the channels you want to keep and leave the others on. Only the selected channels are inverted.

Does inverting reduce image quality?

No. Inversion is a simple, exact calculation, and inverting twice returns the original colours. Quality is only affected if you save the result as a heavily compressed JPG.

Try it now: Invert Image Colors

Loading tool…