nutilz
๐Ÿ”

Image Diff

Compare two images pixel by pixel and highlight what changed

๐Ÿ–ผ๏ธ

Upload Image 1

Click or drop here

๐Ÿ–ผ๏ธ

Upload Image 2

Click or drop here

๐Ÿ”’ Images never leave your browser. All comparison is done locally using the Canvas API.

What Is a Pixel Diff?

A pixel diff (pixel difference) is a technique for comparing two images by examining corresponding pixels and quantifying how much they differ. For each pixel position, the tool calculates the sum of absolute differences across the red, green, and blue color channels. If this value exceeds a configurable threshold, the pixel is marked as "changed" and highlighted. If the value is below the threshold, it is considered unchanged.

The result is a composite image where changed areas are shown in a vivid highlight color (red/pink in this tool) while unchanged areas are dimmed โ€” making it instantly obvious where the two images differ, even if the differences are subtle.

Use Cases for Image Diffing

UI regression testing. When you make changes to a web app or mobile app, you can take screenshots before and after, then diff them to verify that only the intended elements changed. This catches unintended layout shifts, color changes, or missing elements that might be missed in a visual inspection.

Before/after design comparisons. Designers use image diffs to show clients exactly what changed between design iterations โ€” useful for version control and design review sessions where subtle changes need to be clearly communicated.

Photo editing verification. Photographers and retouchers can diff original and edited versions to see exactly which areas were adjusted โ€” useful for quality control and for communicating scope of edits to clients.

Choosing the Right Threshold

The threshold controls how sensitive the comparison is. A threshold of 0 would mark any pixel as different if even a single color channel differs by 1 value โ€” this would flag JPEG compression artifacts as differences even when the images are visually identical. A threshold of 10 (the default) ignores very small color differences caused by lossy compression while still catching real visual changes. A threshold of 30โ€“50 is appropriate when comparing images that may have been saved with different JPEG quality settings and you only want to highlight large, obvious differences.

If you're comparing lossless images (PNG to PNG) or screenshots from the same tool, a lower threshold (1โ€“5) is appropriate. For JPEG comparisons, start at 10 and adjust upward until compression noise disappears from the diff.

Frequently Asked Questions

Do the two images need to be the same size?+
No, but for best results they should be the same or similar size. The tool scales both images to the same dimensions (using the minimum of the two widths and heights) before comparing. Areas outside the smaller image's dimensions are not compared.
Why are unchanged areas dimmed instead of hidden?+
Dimming unchanged areas rather than removing them gives you context โ€” you can see where in the image the differences appear relative to the content. A pure red-only diff image is less useful because you lose spatial context. The 50% dimmed view lets you see both what changed and where it changed within the image.
What image formats are supported?+
Any image format supported by your browser โ€” including JPEG, PNG, WebP, GIF, AVIF, and BMP. The comparison canvas and output are always PNG, which is lossless and preserves the exact color values used in the diff visualization.
Why does my diff show many changed pixels even on identical images?+
This usually happens when comparing JPEG images saved with different quality settings. JPEG is a lossy format and introduces slightly different color values at each pixel depending on the compression level. Lower your threshold setting to see fewer false positives, or compare the PNG versions of your images instead.