Invert image colours
Turn any photo into its photographic negative by inverting every colour channel. White flips to black, light areas become dark, and each hue is replaced by its opposite — useful for previewing scanned film negatives, accessibility checks, or creative artwork.
How it works
The image is read into a <canvas> with getImageData. For every pixel the tool
replaces each colour channel with 255 − value:
R → 255 − RG → 255 − GB → 255 − B
The alpha (transparency) channel is left untouched, so transparent areas stay transparent. Because the operation is a simple subtraction, applying it twice returns the original image exactly.
Example
| Original (R, G, B) | Colour | Inverted (R, G, B) | Colour |
|---|---|---|---|
| 0, 0, 0 | black | 255, 255, 255 | white |
| 255, 255, 255 | white | 0, 0, 0 | black |
| 30, 144, 255 | blue | 225, 111, 0 | orange |
The transform runs in your browser, so your image is never uploaded.