Searching...
No tools found

Image Diff: Compare Two Images Online

By the Chaudify team·Images··7 min read

Learn how to compare two images online pixel by pixel. Changed-pixel count, difference percentage, and a highlight mask — all in your browser, nothing uploaded.

Why compare two images pixel by pixel?

Two images can look identical at a glance and still differ. A screenshot re-saved from a chat app, a logo re-exported from a design tool, a frame from a video that changed by a few pixels — opening them side by side and squinting is unreliable. You need an image diff that shows you exactly what changed, down to the individual pixel.

Most online diff tools upload both images to a server before comparing them, which hands your screenshots and mockups to a third party. The Image Diff tool on Chaudify does the comparison entirely in your browser using the Canvas API — neither image ever leaves your device.

What the comparison shows

I ran the tool on real files to see what it actually produces. Here are the results from four cases:

CaseImage AImage BCompared atChangedVerdict
Identical images200×200 red PNG, 427 B200×200 red PNG, 427 B200×200 px0% (0 of 40,000)identical
Different images200×200 red PNG, 427 B200×200 green PNG, 427 B200×200 px100% (40,000 of 40,000)differ (100.00%)
Different sizes200×200 red PNG400×200 green PNG400×200 px100%differ
Tolerance 255200×200 red PNG200×200 green PNG200×200 px0%identical

The identical pair shows zero changed pixels — every channel matches. The different pair shows every pixel changed: red versus green differs on all three channels at every pixel. The size-mismatch case is letterboxed onto a 400×200 common canvas, with the smaller image centred on the background. And at tolerance 255, even completely different colours count as "the same" because no channel differs by more than 255.

How to use the image diff tool

  1. Drop Image A into the left zone and Image B into the right zone. JPG, PNG, WebP, AVIF and GIF are all accepted.
  2. Set the tolerance. A pixel counts as changed when any of its red, green or blue channels differs from the matching pixel in the other image by more than this value. At 0, a single brightness level counts as different. At higher values, near-identical pixels are treated as the same.
  3. Read the report: changed-pixel count, difference percentage, mean per-channel difference, and whether the images are identical.
  4. Download the difference PNG — changed pixels painted red on a neutral background — or the full text report.

The tool offers three views of the difference: a mask (changed pixels in red, unchanged in grey), side-by-side, and overlay. You can switch between them without re-uploading.

What re-saving does to an image

Re-saving an image as a different format usually changes pixel values even when the image looks the same to your eye. JPEG re-encoding, in particular, shifts colours slightly. Running an image diff on the original and the re-saved copy will show changed pixels — that is the point: it reveals differences a glance misses.

Privacy: your images never leave your device

All decoding and comparison happens in your browser tab. The images are never uploaded to any server, and the tool keeps working with no internet connection after the page has loaded. This makes it safe for screenshots, mockups, and any image you would rather not send to a third-party service.

Related tools

  • Image Resizer: If the images are different sizes and you want to match them before comparing, resize one to match the other first.
  • Image Converter: Convert between JPG, PNG, WebP and AVIF before diffing, to see how format choice affects the pixels.
  • Remove EXIF: Strip metadata before comparing, so the diff shows pixel changes rather than metadata changes.

FAQ

Does the image diff tool upload my images?

No. Both images are decoded and compared in your browser tab using the Canvas API. Neither image leaves your device.

What does the tolerance do?

A pixel counts as changed when any of its red, green or blue channels differs from the matching pixel in the other image by more than the tolerance. At tolerance 0, a single brightness level counts as different.

What if the images are different sizes?

They are drawn onto a common canvas large enough for the larger image, with the smaller one centred on the background (letterboxed, never stretched). If the common canvas would exceed the browser's safe edge, both images are scaled down proportionally first and the report says so.

How is the difference shown?

Changed pixels are painted red on a neutral background. You can switch to side-by-side or overlay views, and download the difference image as a PNG or the report as a text file.

Does re-saving an image count as a difference?

Usually yes — re-encoding changes pixel values even when the image looks the same, so the diff will show changed pixels.

This guide is about the Image Diff tool. It runs entirely in your browser — open it and try your own file.

Frequently asked questions

Does the image diff tool upload my images?

No. Both images are decoded and compared in your browser tab using the Canvas API. Neither image leaves your device.

What does the tolerance do?

A pixel counts as changed when any of its red, green or blue channels differs from the matching pixel in the other image by more than the tolerance. At tolerance 0, a single brightness level counts as different.

What if the images are different sizes?

They are drawn onto a common canvas large enough for the larger image, with the smaller one centred on the background (letterboxed, never stretched).

How is the difference shown?

Changed pixels are painted red on a neutral background. You can switch to side-by-side or overlay views, and download the difference image as a PNG or the report as a text file.

Does re-saving an image count as a difference?

Usually yes — re-encoding changes pixel values even when the image looks the same to your eye, so the diff will show changed pixels.

Written by the Chaudify team. Every tool mentioned here runs entirely in your browser — nothing you open is ever uploaded. Browse all tools or read more guides.