Black and White Color Reverser
Reverse black and white colors in images instantly. Invert grayscale photos, swap dark and light tones, and download high-quality negatives.
Drop image here or click to upload
Supports PNG, JPEG, WebP, GIF, BMP
About
Color inversion transforms every pixel to its complementary value on the 0 - 255 scale. A pixel with value V becomes 255 − V. Black (0) becomes white (255). White becomes black. Grayscale images produce photographic negatives. This operation is self-inverse: applying it twice restores the original image exactly.
Incorrect inversion ruins archival scans, medical imaging analysis, and print preparation. Film negatives require precise reversal to produce accurate positives. This tool processes images entirely in your browser using the Canvas API. No server upload means no compression artifacts, no privacy concerns, and no file size limits beyond your device memory. The luminance-weighted grayscale conversion uses ITU-R BT.601 coefficients for perceptually accurate results.
Formulas
The inversion formula operates on each color channel independently. For an 8-bit image with values ranging from 0 to 255:
For RGB images, this applies to each channel:
G′ = 255 − G
B′ = 255 − B
For perceptually accurate grayscale conversion before inversion, the ITU-R BT.601 luminance formula applies:
Where V represents any pixel value, V′ is the inverted result, R, G, B are red, green, and blue channel values, and Y is the luminance (grayscale) value. The alpha channel remains unchanged to preserve transparency.
Reference Data
| Original Value | Inverted Value | Visual Result | Use Case |
|---|---|---|---|
| 0 (Pure Black) | 255 (Pure White) | Complete reversal | Film negative scanning |
| 255 (Pure White) | 0 (Pure Black) | Complete reversal | Document inversion |
| 128 (Mid Gray) | 127 (Mid Gray) | Near identical | Neutral point reference |
| 64 (Dark Gray) | 191 (Light Gray) | Significant lightening | Shadow detail recovery |
| 191 (Light Gray) | 64 (Dark Gray) | Significant darkening | Highlight detail recovery |
| 32 (Near Black) | 223 (Near White) | Extreme contrast flip | X-ray image processing |
| 223 (Near White) | 32 (Near Black) | Extreme contrast flip | Astronomical imaging |
| 100 | 155 | Moderate shift | General photo editing |
| 155 | 100 | Moderate shift | General photo editing |
| 200 | 55 | Light to dark | Print preparation |
| 55 | 200 | Dark to light | Screen optimization |
| 240 | 15 | Near-white to near-black | High-key inversion |
| 15 | 240 | Near-black to near-white | Low-key inversion |
| 180 | 75 | Upper mid to lower mid | Tonal balancing |
| 75 | 180 | Lower mid to upper mid | Tonal balancing |