Invert the colours of an image

Turn an image into its negative in a local browser worker, black to white and each colour to its opposite. Transparency is kept and nothing is uploaded.

Drop your image files here or click to choose, or paste image files · processed on this device

Open in the full image editor

Invert image colours in three steps

Inverting an image swaps light for dark and each colour for its opposite, the way a photographic negative does. It is useful for turning a white-background screenshot or diagram into one that suits a dark slide or a dark mode page, for reading a scanned negative, or for making a black logo white.

How it works

Every pixel has a red, a green and a blue value from 0 to 255. Each one is replaced by 255 minus itself. Black, 0, 0, 0, becomes white, and pure red becomes cyan. Mid grey stays almost the same, because it sits halfway. Nothing is judged or guessed, so the result is exact, and inverting the result again gives back the original.

What stays the same

The width and height are unchanged and nothing is moved. Transparency is left alone: a PNG logo on a clear background keeps that background clear, and only the visible parts change colour. Soft edges stay soft.

What changes

A JPG is encoded again when it is saved, so a small amount of quality is lost, as with any JPG edit. Starting from a PNG or WebP avoids that. A browser cannot write AVIF, so an AVIF picture is saved as a WebP instead.

Inverting is not the same as dark mode

An inverted photo looks like a negative, with skin turned blue and skies orange, so it suits diagrams, text and line art far better than photographs. For a picture that should keep its colours but lose them all to grey, use Image to grayscale. To invert the pages of a PDF rather than an image, use Invert PDF colours.

Many images at once

Up to twenty images can be handed over at once and inverted one after another. Each gets its own row and its own download, and a file that cannot be read loses only itself.

Nothing leaves the device

The image is read and rewritten by a worker inside your browser. There is no upload, no account and no server copy.

  1. 1

    Choose a supported image

  2. 2

    Invert its colours

  3. 3

    Preview and download the result

Frequently asked questions

How is each colour inverted?

Each of the red, green and blue values is taken away from 255, the brightest a channel can be. Black becomes white, white becomes black, and a colour becomes its opposite, so red becomes cyan and yellow becomes blue.

Does inverting twice give back the original?

For a PNG or WebP, yes, pixel for pixel, because the same subtraction undoes itself. A JPG is encoded again each time it is saved, so it comes back very close but not exact.

Does it keep transparency?

Yes. Only the colour channels are changed, so a clear background stays clear and is not turned white or black.

Can I invert several images at once?

Yes, up to twenty at a time. They run one after another, and each gets its own download.

Is my image uploaded?

No. The source and the output stay inside your browser session, and nothing is uploaded.