Image Inverter (Negative)
Invert the colours of an image to make a negative, with an optional preserve-alpha mode and a before/after view. Nothing is uploaded — the pixels are processed on your device.
Original
Inverted
Image Inverter
An inverted image, or negative, is made by replacing each colour channel value with 255 - v: black becomes white, white becomes black, and colours shift to their complements. This tool reads the picture into a canvas with getImageData, applies the inversion to the pixel data, and writes it back with putImageData, so the processing stays in your browser.
How it works
- Each pixel is stored as red, green, blue and alpha, one byte each.
- Inverting sets each of red, green and blue to
255 - value. - With preserve alpha on, the alpha channel is left alone, so transparency is kept; turning it off inverts alpha too.
- PNG output is lossless; JPG re-compresses and may change pixels slightly.
Frequently asked questions
What does this tool do?
It inverts the colours of an image, producing a negative where each red, green and blue channel becomes 255 minus its value.
Is my image uploaded?
No. The image is read and processed locally on a canvas in your browser; nothing is sent to a server.
Which formats are supported?
You can load PNG, JPG and WEBP images, and download the result as PNG or JPG.
What happens to transparency?
With “preserve alpha” on, transparent pixels stay transparent and only the colour channels invert; turn it off to invert the alpha channel too.
Is inverting the same as greyscale?
No. Inverting keeps the colours and reverses each channel; greyscale removes colour entirely.
Why does a JPEG result look slightly different?
JPEG uses lossy compression, so saving as JPG can introduce small changes; PNG is lossless.
Related: the image compressor, image resizer, image cropper, colour picker, or browse every browser-only tool on the all tools page.