What is an image comparison tool?
An image comparison tool shows what changed between two pictures. You use it to check an edit against the original, compare a compressed file with its source, review two versions of a design, or confirm that a screenshot did not change after an update.
This tool compares in your browser. Nothing is uploaded. Add two images: the first is A, the second is B. Then choose a view under View.
Slider puts both pictures in one frame with a divider you drag, the classic before and after. Switch A/B shows one image at a time: click the picture or press Space to flip. A change jumps out when one image replaces the other in the same place. Side by side shows them next to each other. Difference paints the changed pixels in a strong colour over a light copy of A.
The tool also measures the change. It reports the share of different pixels, the biggest change on any channel (0 to 255), PSNR in dB, computed on RGB flattened onto white, and SSIM, computed on brightness with an 11×11 Gaussian window and sigma 1.5, the same method as scikit-image. A PSNR above 40 dB and an SSIM above 0.98 are hard to see. Infinity and 1 mean identical.
Tolerance per channel goes from 0 to 64. At 0, any change counts. Around 5 to 10 ignores JPEG noise. If sizes differ, When the sizes differ lets you Scale B to the size of A or Align by the top-left corner, where the area outside counts as different. You can download the difference as a PNG. To shrink a file before comparing, use compress image.
How to compare two images
- Click Add two images. The first becomes A and the second B.
- Under View, choose Slider, Switch A/B, Side by side or Difference.
- Set Tolerance per channel. Use 0 for exact, or a few units to ignore JPEG noise.
- If the images have different sizes, choose under When the sizes differ whether to scale B to A or align by the corner.
- Read the percentage of different pixels, the biggest change, PSNR and SSIM.
- In the Difference view, download the PNG to keep or share the result.
Examples
Checking a compression result
Add the original as A and the compressed file as B. Use tolerance 5. If the Difference view is almost empty and SSIM is above 0.98, the loss is hard to see. Compress to a target size is a good way to make B.
Finding a small change in a screenshot
Add the old and the new screenshot, and choose Switch A/B. Click to flip between them. The part that changes position or colour stands out right away. Then open Difference to see exactly where.
Comparing two sizes of the same picture
Add a large A and a smaller B. Keep Scale B to the size of A. The tool scales B up and compares pixel by pixel. Expect blur to show as differences at the edges.
Common mistakes
- Adding more or fewer than two images. The tool needs exactly two. Remove the extras.
- Tolerance 0 on JPG files. JPEG compression changes many pixels slightly. Use 5 to 10 to see real changes.
- Reading a big difference when the shapes differ. Scaling B to a different shape distorts it. Align by the corner or crop first with crop image.
- Mixing up A and B. The first image is always A. The difference is drawn over A.
- Trusting one number. SSIM measures brightness and PSNR measures colour. Look at the picture too.
- Comparing different resolutions as if equal. The area outside A counts as different when you align by the corner.
Frequently asked questions
Are my images uploaded?
No. Both images are compared in your browser.
What do PSNR and SSIM mean?
PSNR measures the error in dB, higher is closer. SSIM measures structural similarity from 0 to 1, where 1 is identical.
Can I compare images of different sizes?
Yes. Scale B to the size of A, or align both by the top-left corner. The area outside counts as different.
How do I switch between A and B?
In Switch A/B, click the picture or press Space.
Can I save the result?
Yes. You can download the difference as a PNG.