Inverting an image swaps every colour for its opposite, turning it into a photographic negative. Upload an image, choose how strongly to apply the effect, and download the result.
The maths
For each pixel, every colour channel is flipped:
newValue = oldValue + (255 - 2 × oldValue) × strength
At 100% strength this reduces to 255 - oldValue — a full inversion where
black becomes white and each colour becomes its complementary hue. At lower
strengths the image blends toward mid-grey, which can create a faded, washed-out
look.
Notes
- Only the colour channels are inverted; the alpha channel is left alone, so transparency is preserved.
- The export is a lossless PNG.
- Everything runs locally in your browser — the image is never uploaded.
Inversion is handy for previewing a dark-mode version of a diagram, creating negative-film effects, or checking how an image reads with its tones reversed.