Skip to content
Image Mirror

Color inverter, in the browser

Invert Image Online: Download a Color Negative

Use this page to invert image files in the browser: white becomes black, red becomes cyan, and a transparent logo stays transparent. The picture never leaves this device.

Drop pictures here

Or paste with Ctrl+V. JPG, PNG, WebP or HEIC, up to 30 at once.

Your pictures never leave this device: everything happens in your browser.

How to make a color negative

The control above opens on Invert, so the preview is already the negative once you add a picture. If you wanted a mirror, or a photo turned upside down, that is a different result: left and right swap on the home page, and a vertical flip is on flip image. This page does not move a pixel.

A photo, a screenshot and a logo all go through the same step, and each keeps its width and height. Each red, green and blue value is replaced by 255 minus that value, and the alpha value is left as it was.

  • Add the picture. Choose a file, drop it on the box, or paste it with Ctrl+V (Cmd+V on a Mac). On a phone, Choose images opens the photo library.
  • Leave Invert selected. The other buttons move or reflect pixels, and they do not change colors.
  • Use Show original to compare. That view is the file you added, with no color change.
  • Download. One picture saves under a new name such as logo-inverted.png, so the original stays in your downloads folder. Up to 30 pictures come back as one ZIP.

What each channel becomes

A digital color is three numbers, red, green and blue, each from 0 to 255, plus an alpha number for how solid the pixel is. The negative replaces each of the three color numbers with 255 minus itself and does not touch alpha. Adobe's Photoshop help describes the same scale, a value of 255 becoming 0 and a value of 5 becoming 250, on its page about special color effects.

Colors you can check by eye follow the same rule. White is 255, 255, 255, written #ffffff, and it becomes 0, 0, 0, which is black, #000000. Pure red #ff0000 becomes #00ffff, cyan. Pure blue #0000ff becomes yellow #ffff00. A mid gray of 128 on every channel becomes 127, because 255 minus 128 is 127. There is no whole number at the exact halfway point of a 0 to 255 scale, so that gray does not stay gray.

Swatches of white, red and a clear-backed mark beside black, cyan and the same mark still on a clear background
White becomes black, pure red becomes cyan, and a clear background stays clear. The teal mark moves to the opposite color. The checkerboard is the page showing empty pixels, not part of the file.

Alpha stays, including a fully clear pixel

Alpha of 255 is fully solid and alpha of 0 is fully clear. A clear pixel stays clear, and a half-solid pixel keeps that same alpha. The color numbers of a fully clear pixel still change, but with alpha 0 the pixel draws nothing, so a logo's empty background stays empty. Show original is the one control that skips the swap and shows the file unchanged.

A second pass restores the numbers

Subtract from 255 again and every channel returns to the number it had. For any whole number n from 0 to 255, 255 minus (255 minus n) is n. That includes the mid gray that went from 128 to 127: the second pass brings it back to 128. The formula is its own reverse on 8-bit red, green and blue. On a PNG, which is written without a new lossy step, the pixels match the file you started with. A JPG or WebP is encoded again at quality 92 unless you move the slider, so the saved file is not a bit-for-bit copy of the original even though the numbers themselves come back.

Negative, grayscale, film and flip are four different edits

Search results mix up four different edits. They do not produce the same file. The result here is a negative image only in the digital sense: light and dark trade places, and each hue moves to the hue opposite it.

Hues move. They are not dimmed

This is a full swap on all three channels. A blue icon becomes yellow, and a green one becomes magenta. That is the right result for a negative. It is the wrong tool when you hoped the blues would stay blue on a dark background. There is no slider for a partial amount, and no switch for a single channel.

Grayscale throws the hues away

Grayscale is a different edit. Photoshop's desaturate control, on that same help page, sets red, green and blue equal based on brightness, so the picture stays light where it was light and the hues are gone. A negative does the opposite to the brightness and also replaces each hue. This site does not make a grayscale file.

Color film keeps an orange cast

A black-and-white negative has no orange base, so swapping light and dark is the whole job: the dark sky of the negative becomes a light sky. Color print film is different. Adobe's help says Invert cannot accurately convert a scanned color negative into a positive, because color film includes an orange mask, and it tells you to use the scanner's color-negative settings instead. A plain pass on that scan leaves a strong cast, the orange base turned into its opposite. This page does not remove that mask.

A flip moves pixels

A flip changes where pixels sit. Horizontal swaps left and right, vertical swaps top and bottom, and neither one changes a color. If the picture is the wrong way around, use flip image or the mirror on the home page. If a diagram should stay put and only the ink should change color, stay on this page.

Clear logos, icons, and dark slides

A logo or icon shipped as a PNG often has a clear background so it can sit on any color. Changing the colors and keeping alpha means the mark changes and the clear area does not become a rectangle. That matters on a dark-mode mockup: you can drop the result on a dark surface and the corners stay see-through. If the clear area were filled with white before the swap, that white would become black and the logo would arrive with a black box around it.

The checkerboard in the preview is only the page showing you the clear areas. It is not painted into the file. PNG and WebP keep those areas. JPG cannot store them: a JPG of a clear logo is flattened onto white after the color swap, the same white background this tool already uses when it saves a JPG. The transparent PNG page is where to read about clear pixels when the job is a mirror rather than a color change.

A black-on-white diagram, screenshot or line drawing becomes white-on-black, which is a quick version for a dark slide. A pale photo takes on a look people compare to an X-ray, with light areas dark and dark areas glowing. Reversing a layout also makes weak contrast easier to notice, because a gray that nearly matched its background is suddenly far from it. None of this is a designed dark theme, and none of it is a medical image. A blue link will not stay blue.

The file you actually save

The saved picture has the same pixel width and height as the one you added. JPG stays JPG, PNG stays PNG and WebP stays WebP. PNG is lossless, so the only change is the channel math, and a transparent PNG stays transparent. JPG and WebP are compressed again at quality 92 unless you move the slider. 100 is the least extra compression. iPhone HEIC photos are saved as JPG. GIF, BMP, AVIF, SVG and TIFF are saved as PNG, and an animated GIF becomes one still frame. The tool says so when the format changes.

Each file can be up to 50 MB. Up to 30 pictures share one setting and download as a single ZIP, with names like diagram-inverted.png, so a folder of originals is not overwritten. A very large image may be scaled down when the browser cannot allocate a canvas that big, and the page prints the width and height it actually wrote. The color swap runs on that canvas, including the smaller one.

Photoshop, a phone, and what this page will not do

In Photoshop, choose Image, Adjustments, Invert to change the layer directly, or Layer, New Adjustment Layer, Invert if you want the change to stay adjustable. Both are on Adobe's special color effects page. Photoshop on the web lists Ctrl+I on Windows and Cmd+I on Mac for this adjustment, in its keyboard shortcuts. The full walkthrough, including the selection mix-up and the layer-mask shortcut, is in the Photoshop invert guide.

Apple's guide to editing a photo on iPhone describes light and color adjustments and filters. A separate article on taking and editing photos adds crop, rotate and flip. Neither page lists a control that makes a color negative. Classic Invert, under Settings, Accessibility, Display and Text Size, reverses colors on the screen and does not save a new picture. Smart Invert on that same screen leaves photos alone. Neither setting replaces the download from this page; the step-by-step iPhone route is in the iPhone color-negative walkthrough.

This page does not do curves, a single channel, a partial amount, a grayscale, a crop or a free-angle turn, and it does not remove a film mask. Canva's photo editor now has its own Invert toggle; the Canva invert guide covers it and the file route. For a quarter turn that keeps colors and swaps width and height, use rotate a photo. For a left-to-right mirror, use the home page.

Questions about color negatives

How do I invert image files without uploading them?

Add the picture above, leave Invert selected, and download. The work runs in the browser. The file is not sent to a server. See the privacy policy.

Will a transparent PNG keep its clear background?

Yes. Alpha is not changed, so a fully clear pixel stays fully clear and a half-solid pixel keeps that amount. The checkerboard is only the preview. JPG has no alpha, so a clear area is saved on white after the colors change.

If I do this twice, do I get the original picture back?

The formula brings every 8-bit channel back, including a value that went from 128 to 127. A PNG is written losslessly, so the pixels match. A JPG or WebP is encoded again at quality 92, so that file is not a bit-for-bit copy of the original.

Can this turn a scanned color negative into a normal photo?

Not accurately. Color print film has an orange mask, and Adobe's help says a plain invert cannot make a correct positive from that scan. A black-and-white negative has no orange mask, so light and dark swap without that cast. Use the scanner's color-negative setting for color film.

Is this the same as flipping the picture?

No. A flip moves pixels and leaves colors alone. This page leaves pixels in place and changes colors. Mirrors and upside-down photos are on the flip page and the home page.

Does the download keep the size and the format?

The pixel size stays the same, JPG stays JPG, PNG stays PNG and WebP stays WebP. HEIC is saved as JPG. GIF, BMP, AVIF, SVG and TIFF are saved as PNG, and an animated GIF becomes one frame. Up to 30 files can be saved as one ZIP. A very large picture may be reduced to fit the browser canvas, and the page tells you when that happens.