MateenLabs No ads · Runs in your browser

Image Compare: Before and After Slider and Difference Map

Put two pictures on top of each other and see what changed. Drag the slider to wipe from the first to the second, or switch to a difference map where identical areas are black and changes light up. It helps to judge a compression, a retouch, a resize or two versions of a design. Both pictures stay on your device.

  • Free Forever
  • No Login
  • No File Uploads
  • Browser Processing
Choose two pictures to compare them.

Picture A

No picture yet

Picture B

No picture yet

Two ways to look at a change

The slider view lines up the two pictures exactly and shows the first on the left of a divider and the second on the right. Dragging the divider (with a mouse, a finger or the slider control below) is the quickest way to spot a shifted element, a colour change or lost sharpness, because your eye catches movement and edges when they flip at the divider. It is the same idea as the before and after sliders used on retouching pages.

The difference map answers a more exact question: where, and by how much? For every pixel the page compares the red, green and blue values of the two pictures and takes the largest difference. Black means identical, and brighter grey means a larger change. Because small differences are hard to see, a gain slider multiplies the map so faint changes become visible, and a threshold decides how big a difference has to be before it counts toward the "changed" percentage. Typical uses are checking how much a heavy JPG compression altered a picture, or whether two exports of a design really match.

Be careful what the numbers do and do not say. Both pictures are drawn at the size of the first one, at most 1200 pixels wide, so the map shows the comparison at that size and not at full resolution. If the second picture has another size, it is scaled to the first; if its shape is different it is stretched, and the stretching itself will show up as change. Slight differences are normal even between two copies of the same photo, because JPG encoding changes pixels a little. A small share of changed pixels and a low mean difference mean the pictures are visually close, but they do not prove the files are identical.

  • A before and after slider with a draggable divider and a labelled keyboard slider.
  • A difference map with an adjustable gain and a change threshold.
  • Three figures: the share of pixels changed, the mean difference and the largest difference.
  • A note when the two pictures have different sizes or shapes.
  • Swap the two pictures with one button, and save the current view as a PNG.
  • Phone photos are turned upright before the comparison.

How to use the Image Compare

  1. Press Choose picture A and then Choose picture B, or drop a picture on each box.
  2. In Slider view, drag across the picture or use the slider to move the divider.
  3. Switch to Difference, raise the gain to see small changes and read the three figures.
  4. Press Save this view as PNG if you want to keep it.

Is it private?

Both pictures are read and compared in your browser. Neither is uploaded, nothing is stored, and both are released when you close the page or press Clear.

Read our tools privacy policy →

Frequently asked questions

How do I compare two images for differences?

Add both pictures, then open the Difference view. Black areas are the same in both and lighter areas are different, with the share of changed pixels shown beside the map.

What does the difference map show?

For each pixel it shows the biggest change in red, green or blue between the two pictures, multiplied by the gain you set. Black is identical, white is a very large change.

Why are two copies of the same photo not identical?

Compressing, resizing or re-saving changes pixel values slightly. The map shows that as faint grey noise, and raising the threshold ignores it.

What happens if the pictures have different sizes?

The second one is scaled to the size of the first for the comparison. If the shapes differ, it is stretched, and the stretch will appear as differences.

Is the comparison done at full resolution?

No. Both pictures are drawn at no more than 1200 pixels wide for speed, so the result describes the comparison at that size.

Related tools