๐ Invert Image Colors Online (Photo Negative Maker)
By Shihab Mia ยท Updated 2026-08-01
PNG, JPG, WEBP, GIF or BMP. Nothing is uploaded, the file stays on your device.
Applies to JPEG and WEBP only.
Choose an image to get started.
This tool lets you invert image colors to create a photo negative, the same effect as old film negatives where light areas turn dark and every color flips to its opposite. Upload a picture, click invert, and the whole image is processed right here in your browser. Nothing is uploaded to a server. Preview the result side by side with the original, then download it as a PNG, JPEG or WEBP.
What is the Invert Image Colors?
To invert image colors, the tool replaces every color value with its complement. A digital image stores each pixel as three numbers from 0 to 255: red, green and blue (RGB). To invert a pixel, you subtract each value from 255, so a channel reading 0 becomes 255 and a channel reading 200 becomes 55. Do that for every pixel and you get the negative: white becomes black, black becomes white, red becomes cyan, blue becomes yellow, and green becomes magenta. The transparency (alpha) channel is left alone, so transparent areas stay transparent.
Under the hood, when you invert image colors with this tool it draws your image onto an HTML canvas, reads the raw pixels with getImageData, runs the 255 minus value calculation across the red, green and blue channels, and writes the result back with putImageData. Because canvas works pixel by pixel, the effect is exact and lossless on the math: applying it twice returns the original image. The only quality loss comes from the file format you save in, so PNG keeps the result pixel perfect while JPEG and WEBP add their own compression at the quality you choose.
A color negative is not the same as a grayscale or black and white photo. Grayscale removes color entirely and keeps the brightness, while inversion keeps full color but swaps each hue for its opposite and flips dark and light. If you only want the brightness flipped while keeping the original hues, that is a different operation. This tool performs a true RGB inversion, which is what most people mean when they say they want to invert image colors or make a photo negative.
It is also worth separating this from the Invert Colors setting built into phones and computers. iOS, Android, Windows and macOS all offer a display level color inversion as an accessibility feature, usually with a Classic Invert that flips the whole screen and a Smart Invert that skips photos, videos and dark themed apps. That setting changes how your screen renders in real time and reverts the moment you turn it off. It never touches the actual file. This tool does the opposite: it permanently rewrites the pixels of an image file so the negative version can be saved, shared or printed, independent of any device setting.
Color inversion has a long history tied to analog photography. Film negatives are inherently inverted, and darkroom printing or digital scanning software has always needed to flip those values back to a normal positive image. The same 255 minus value math used by this tool is what scanning software and photo editors use behind the scenes, whether the goal is to invert image colors for a creative effect or to correct a scanned negative back into a viewable photo.
Because the whole process runs client side in the browser, there is no upload delay, no file size limit imposed by a server, and no privacy concern about where your photo goes. This makes it practical for quick, repeated edits, such as testing several images in a row or checking how a design element looks with its colors reversed before committing to a final version.
When to use it
- Turning a normal photo into a film style negative for an artistic or retro look.
- Recovering a readable image from a scanned film negative by inverting it back to a positive.
- Creating a dark mode version of a chart, diagram or screenshot that has a plain white background.
- Checking a logo or graphic against the opposite color scheme before choosing final colors.
- Producing high contrast or accessibility test variants of an image to inspect fine detail.
- Making a quick negative effect image for a photography portfolio, album art or social post.
How to use the Invert Image Colors
- Click Choose an image and select a PNG, JPG, WEBP, GIF or BMP file from your device.
- Wait for the preview to load and confirm the dimensions look right.
- Pick the download format (PNG keeps transparency) and set the quality for JPEG or WEBP.
- Click Invert colors to flip every pixel to its opposite and generate the photo negative.
- Compare the original and inverted previews side by side, then click Download result to save it.
Formula & method
Worked examples
You want to invert a single white pixel with RGB (255, 255, 255).
- Red: 255 - 255 = 0
- Green: 255 - 255 = 0
- Blue: 255 - 255 = 0
- Result pixel = (0, 0, 0), which is pure black
Result: White (255, 255, 255) inverts to black (0, 0, 0).
You invert a pure red pixel with RGB (255, 0, 0).
- Red: 255 - 255 = 0
- Green: 255 - 0 = 255
- Blue: 255 - 0 = 255
- Result pixel = (0, 255, 255), which is cyan
Result: Red (255, 0, 0) inverts to cyan (0, 255, 255), its opposite color.
You invert a mid gray pixel with RGB (120, 120, 120).
- Red: 255 - 120 = 135
- Green: 255 - 120 = 135
- Blue: 255 - 120 = 135
- Result pixel = (135, 135, 135), a slightly lighter gray
Result: Gray (120, 120, 120) inverts to (135, 135, 135). Mid gray stays close to itself.
You invert a photo with a transparent background saved as PNG, size 1200 x 800 pixels.
- The tool draws the image onto a canvas and reads all 960,000 pixels
- Red, green and blue values are each replaced with 255 minus the original value
- The alpha channel for every pixel is left exactly as it was
- The result is exported back to PNG so transparency is preserved
Result: You get a full color negative at the same 1200 x 800 size with transparency intact.
Common colors and what they become after inversion
| Original color | Original RGB | Inverted RGB | Inverted color |
|---|---|---|---|
| White | 255, 255, 255 | 0, 0, 0 | Black |
| Black | 0, 0, 0 | 255, 255, 255 | White |
| Red | 255, 0, 0 | 0, 255, 255 | Cyan |
| Green | 0, 255, 0 | 255, 0, 255 | Magenta |
| Blue | 0, 0, 255 | 255, 255, 0 | Yellow |
| Mid gray | 128, 128, 128 | 127, 127, 127 | Mid gray |
Invert colors compared with other common photo effects
| Effect | What happens to color | What happens to brightness | Reversible |
|---|---|---|---|
| Invert (negative) | Every hue swaps to its opposite | Light and dark flip | Yes, invert again to undo |
| Grayscale | Color is removed entirely | Original brightness is kept | No, color data is lost |
| Sepia | Color is replaced with a brown tint | Brightness is mostly kept | No, original hues are lost |
| Hue rotation | Colors shift around the color wheel | Brightness stays the same | Yes, rotate back the same amount |
| Smart Invert (device setting) | Photos and media are usually skipped | Screen UI flips, not saved files | Yes, it is a live display setting |
Common mistakes to avoid
- Expecting a grayscale result. Inversion is not the same as black and white. It keeps full color and swaps every hue for its opposite. If the image still looks colorful after you invert image colors, that is correct. Use a grayscale tool if you want color removed.
- Saving a transparent image as JPEG. JPEG cannot store transparency, so any transparent areas are filled with a solid background (white here) before saving. Choose PNG or WEBP if you need to keep transparent regions in the negative.
- Assuming the colors are damaged. Inversion is fully reversible math. Running the tool on an already inverted image returns the original. The only quality change comes from lossy formats like JPEG, not from the inversion itself.
- Trying to invert a protected or cross origin image. If you load an image the browser marks as cross origin and tainted, the canvas cannot read its pixels. Download the picture to your device first, then upload that saved copy to invert it.
- Confusing this tool with your phone or computer screen setting. The Invert Colors or Smart Invert option in your device accessibility settings only changes how your screen displays temporarily. It does not edit or save any file. To invert image colors permanently in a file you can keep, download or share, use this tool instead.
- Expecting a scanned negative to look perfect right away. A basic invert brings a film negative back to a positive image, but real color film also carries an orange base mask. The result may look a bit warm or shifted until you make small additional color corrections.
Glossary
- Invert (negative)
- Replacing every color value with 255 minus that value, so light and dark swap and each color becomes its opposite.
- RGB
- The red, green and blue channels that make up each pixel, each stored as a number from 0 to 255.
- Alpha channel
- The transparency value of a pixel. Inversion leaves it untouched so see through areas stay see through.
- Canvas
- A browser drawing surface that lets JavaScript read and write the raw pixels of an image directly.
- Grayscale
- An image that has had color removed, leaving only shades of gray. This is different from an inverted color image.
- Smart Invert
- A device accessibility setting on iOS and other systems that inverts the screen display but usually skips photos and media, unlike a true image inversion.
- Hue rotation
- Shifting every color around the color wheel by a set amount, which is a different effect from inversion and does not flip brightness.
- Photo negative
- An image where colors and brightness are the reverse of a normal photo, historically produced by film and now reproduced digitally with an invert operation.
Frequently asked questions
How do I invert image colors online for free?
Upload your image above, choose a download format, then click Invert colors. The tool subtracts each red, green and blue value from 255 to make a photo negative, shows a preview, and lets you download the result for free.
Is my image uploaded to a server?
No. The whole process runs in your browser using an HTML canvas. Your file never leaves your device, which keeps it private and means the tool works even on a slow connection.
What is the difference between inverting colors and grayscale?
Inverting keeps full color but swaps every hue for its opposite and flips dark and light, like a film negative. Grayscale instead removes color and leaves only shades of gray. They are two separate effects.
Will inverting twice damage my image?
No. Inversion is exact, reversible math, so inverting an already inverted image returns the original pixels. The only quality loss can come from saving in a lossy format such as JPEG at a low quality setting.
Can I invert a scanned film negative back to a normal photo?
Yes, inverting a color negative gives you a positive image. Note that real film negatives also carry an orange color mask, so the result may need extra color correction to look fully natural.
Which file formats can I use and download?
You can upload PNG, JPG, WEBP, GIF or BMP. For download you can choose PNG (which keeps transparency), JPEG, or WEBP. JPEG and WEBP let you pick a quality level to trade file size against detail.
Is inverting image colors the same as the Invert Colors setting on my phone?
No. Your phone or computer Invert Colors or Smart Invert setting only changes how the screen displays and reverts as soon as you turn it off. This tool permanently rewrites the pixels of an actual image file so you can save and share the negative version.
Does inverting an image change its resolution or file size?
The pixel dimensions stay exactly the same after you invert image colors, since only the color values change, not the width or height. File size can change slightly depending on the format and quality you choose for the download.
Can I invert just one color channel instead of the whole image?
This tool inverts all three color channels together for a standard photo negative. Inverting a single channel, such as only red, is a different and less common creative effect that most people are not looking for when they search to invert image colors.
Why would I want to invert image colors instead of just using dark mode?
Dark mode is designed by each app to look good, while inverting colors is a blunt, universal flip that works on any picture, chart or screenshot regardless of whether the source supports dark styling, which is why it is popular for quick contrast checks and creative effects.