How to Invert Image Colors
A practical guide to inverting the colors of a photo or graphic, what is happening to the pixels, and how to get a clean download.
Invert an image in four steps
- Open the tool. Go to the PicInverter workspace on the homepage.
- Add your image. Drag a JPEG, PNG, or WebP file (up to 20 MB) into the upload area, or choose Browse Files.
- Select Invert Colors. The inverted version appears next to your original. Use the Original / Inverted toggle to inspect either one.
- Download. Pick PNG, JPEG, or WebP and select Download Inverted Image. Your file is named like
photo-inverted.png.
What color inversion actually does
Every pixel in a digital image stores red, green, and blue values from 0 to 255. Inversion replaces each value with its opposite: R′ = 255 − R, G′ = 255 − G, B′ = 255 − B. Pure white (255, 255, 255) becomes pure black (0, 0, 0). A bright orange becomes a medium blue. Middle grays barely change, because 128 inverts to 127.
Inverting twice returns the original pixel values exactly, which is why the effect is reversible as long as you keep the original file.
Inversion is not grayscale
A traditional black-and-white film negative is both inverted and monochrome. PicInverter only inverts: a color photo stays a color photo with opposite colors. If you want black-and-white, convert the image to grayscale in an editor first, then invert it.
Transparent images
PicInverter changes the color channels and leaves the alpha (transparency) channel alone. A PNG logo with a transparent background keeps that transparency after inversion. To keep it in the download, save as PNG or WebP. JPEG can’t store transparency, so when you export a transparent image as JPEG the transparent areas are filled with a background color you choose.
Choosing a download format
- PNG: lossless and keeps transparency. Best for graphics, screenshots, and anything you may edit again. Files can be large for photos.
- JPEG: small files for photos, but lossy and no transparency. Adjust the quality slider to balance size and detail.
- WebP: usually smaller than PNG or JPEG and supports transparency. Available when your browser can encode it.
Privacy: where does the processing happen?
The inversion runs in your browser using the Canvas API. Your image is not sent to PicInverter’s servers. Read the Privacy Policy for the full picture.
Troubleshooting
“Unsupported file”
PicInverter checks the file contents, not just the extension. Files such as HEIC, GIF, AVIF, or SVG are not supported yet. Convert them to JPEG, PNG, or WebP first.
“File is over the size limit”
Resize or compress the image before uploading. The limit is 20 MB.
The image is too large to process
Very high-resolution images can exceed what a browser tab can handle, especially on phones. Reduce the dimensions and try again.
The download looks different from the preview
JPEG and WebP exports are lossy, and JPEG replaces transparency with a solid color. Use PNG for an exact copy of the inverted pixels.
My browser can’t save as WebP
Some browsers can’t encode WebP. PicInverter hides that option when it is unavailable. Choose PNG or JPEG instead.
More questions? See the FAQ.