Image Diff

Compares two images pixel by pixel.

Image Diff compares two images pixel by pixel and reports how many pixels changed between them. It reads each image's RGBA values and flags a pixel as different when any color channel exceeds an adjustable threshold or when the alpha channels don't match, giving you a changed-pixel count and a percentage. It's useful when you need a quick, objective measure of the visual difference between two images, such as catching unintended rendering changes.

Common uses

  • Spotting visual regressions between a baseline screenshot and a new build
  • Confirming whether an export or re-encode altered an image's actual pixels
  • Measuring how much two design variants or icon revisions differ
  • Checking that a lossless edit left the unaffected regions untouched
  • Quantifying the difference percentage between before and after compression

FAQ

Is my data sent to a server?

No. Image Diff runs entirely in your browser, decoding and comparing pixels locally. The images you load are never uploaded or sent anywhere.

When is a pixel counted as changed?

A pixel is counted as changed if any of its red, green, or blue channels differs by more than the threshold you set, or if its alpha (transparency) channel differs at all. With a threshold of 0, any color difference counts.

What does the threshold setting do?

The threshold is the maximum per-channel color difference that is still treated as unchanged. Raising it lets you ignore minor color variations, such as those introduced by lossy compression.

What happens if the two images aren't the same size?

The overlapping pixels are compared normally, and every extra pixel in the larger image is counted as changed. As a result, comparing different-sized images will report a high difference.

How is the difference percentage calculated?

It is the number of changed pixels divided by the total pixel count of the first image, rounded to two decimal places. If the first image has no pixels, the percentage is reported as 0.

Related tools

  • Base64 → File
  • EXIF Viewer
  • Favicon Generator
  • Image to ASCII
  • Image → Base64
  • Image Color Extractor
  • Image Format Converter
  • Image Resize