HomeToolsImage Processing › Invert Image Colors

Invert Image Colors — Free Online Tool

Create a photo negative effect instantly. Supports JPG, PNG, WEBP, AVIF, BMP, TIFF, HEIC. No signup.

Drop an image here

or click to browse · max 20 MB · JPG, PNG, WEBP, AVIF, BMP, TIFF, HEIC

Invert Colors flips every pixel in a photo or graphic to its exact color opposite. A pure white pixel (RGB 255,255,255) becomes pure black (0,0,0). A warm mid-orange (RGB 220,140,80) becomes its mathematical inverse (35,115,175). The result is a photo negative identical to what darkroom photographers produced when developing analog film. Processing runs server-side on ImageMagick; your file is never stored beyond the immediate session.

The tool has two modes. Full inversion flips every channel in every pixel regardless of color content. Grayscale-only constrains the inversion to pixels where all three channels are equal — pure blacks, whites, and neutral grays — while leaving chromatic pixels untouched. This is the right switch when you want to flip a black-and-white line drawing or a monochrome icon without touching any color elements in the same file. A black logo on a white background becomes a white logo on a black background; any colored elements in the file remain unchanged.

Transparency in PNG and WEBP files is preserved through both modes. An icon on a transparent background comes out with the same alpha channel, just inverted. Output format is independent of input: upload a HEIC photo and download a PNG, or upload a BMP and save as WEBP. Supported input formats are JPG, PNG, WEBP, AVIF, BMP, TIFF, and HEIC up to 20 MB.

How the math works

The inversion formula is R′ = 255 − R, G′ = 255 − G, B′ = 255 − B, applied independently to each pixel. For standard 8-bit images this is a lossless deterministic transform — each output channel maps exactly from one input value with no interpolation or rounding error. The grayscale-only mode adds a per-pixel condition check before applying the formula: inversion runs only when R = G = B. Pixels that fail the equality check pass through unchanged.

ImageMagick's -negate operator drives full inversion; -channel Gray -negate drives grayscale-only mode. Both run server-side, avoiding any quality degradation from browser canvas re-encoding. For PNG, WEBP, BMP, and TIFF output, the transform is fully lossless. For JPEG output, standard JPEG quantization runs on re-encoding — the inversion itself is exact, but saving as JPEG always introduces minor compression quantization, exactly as any JPEG save does.

Common use cases

Frequently asked questions

Does inverting reduce image quality?

For PNG, WEBP, BMP, and TIFF output, no. The inversion is a lossless pixel-level transform with no resampling or approximation. For JPEG output, standard JPEG quantization runs on re-encoding — exactly the same quality behavior as any JPEG save. The inversion itself adds nothing beyond that.

What does grayscale-only inversion actually do?

It applies the inversion formula only to pixels where the red, green, and blue channel values are equal — meaning neutral colors: black, white, and all shades of gray. Pixels with unequal RGB values (any chromatic color) pass through unchanged. A black-and-white logo on a transparent background, for example, becomes white-and-black with no change to any colored elements in the same file.

Does transparency survive the inversion?

Yes. Alpha channels in PNG and WEBP files pass through untouched — only the RGB channels are inverted. Choose PNG or WEBP as the output format to retain the transparency. Downloading as JPEG composites transparent pixels against white because JPEG has no alpha channel.

Which input formats are supported?

JPG, PNG, WEBP, AVIF, BMP, TIFF, and HEIC up to 20 MB. Output format is independent of input — upload a HEIC and download as PNG in the same operation, for example.

Can I invert an image and change its format at the same time?

Yes. The output format selector is independent of the input. Inversion and format conversion run in the same server operation.

Is this free?

Yes. No account required, no watermark on the output, no usage cap beyond the 20 MB per-file limit.

Frequently asked questions

What does inverting image colors do?

Inverting replaces each pixel's color with its mathematical opposite on the color spectrum — bright areas become dark, dark becomes bright, and each hue shifts to its complement. The result is a photo negative effect, similar to analogue film negatives. Designers use it for mask creation, dark-mode mockups, and creative effects.

What is the difference between full inversion and grayscale inversion?

Full color inversion (the default) flips every channel — red, green, and blue — producing a classic photo negative. Grayscale inversion only inverts pixels where red, green, and blue are equal (true grayscale pixels), leaving colored areas unchanged. Use grayscale inversion to flip a black-and-white image without altering any surrounding color tones.

What image formats can I invert?

The tool accepts JPG, PNG, WEBP, AVIF, BMP, TIFF, and HEIC files up to 20 MB. Transparency in PNG and WEBP is preserved — the alpha channel is not inverted. Output is delivered in the same format as the original.

Does inverting colors affect image transparency?

No. For PNG and WEBP files with an alpha channel, only the RGB values are inverted — the alpha channel is left unchanged. Transparent areas stay transparent and semi-transparent edges remain intact.

Can I use color inversion for dark-mode UI prototyping?

Full color inversion is a quick way to generate a dark-mode proof of concept from a light-mode screenshot — bright backgrounds flip to dark and light text becomes dark. For production assets, use per-element dark-mode CSS; for fast visual mockups, inversion works well.

Keep going

More image tools

Live Image

Rotate Image Online

Rotate any image by any angle — auto-crop or fit-to-canvas modes. Free, instant.

Open tool
Live Image

Image Flipper

Flip any image horizontally or vertically. Free, no account needed.

Open tool
Live Image

Enlarge Image Online

Scale up to 4× with Lanczos quality filtering. No AI required, no account.

Open tool