Quick answer: To compare two screenshots, open both as layers in a free editor like GIMP or Photopea and set the top layer’s blend mode to Difference: identical pixels turn black and changes light up. From the command line, magick compare before.png after.png diff.png (ImageMagick) creates a highlighted difference image. For websites, developers automate this with visual regression testing in tools like Playwright.
Spotting what changed between two screenshots by eye is slow and unreliable. A one-pixel shift, a slightly different colour or a missing icon can take minutes to find. Image comparison tools find them instantly. Here are the methods that work, from quickest to most automated.
When you need to compare screenshots
- QA and bug reports: showing exactly what broke between two versions
- Design reviews: checking a build matches the design
- Website monitoring: catching unexpected changes to a page
- Documentation: finding which screenshots need updating after a release
- Verification: checking whether an image was edited
Before you compare: make the screenshots match
Comparison tools work pixel by pixel, so tiny setup differences show up as noise:
- Capture both at the same window size and 100% zoom.
- Use the same theme and the same scroll position.
- Close dynamic content where possible: clocks, ads, carousels, animated banners.
- Save both in a lossless format (PNG). JPEG compression creates small differences everywhere.
Method 1: Difference blend mode (free, visual)
In Photopea (browser) or GIMP (desktop)
- Open the first screenshot.
- Add the second screenshot as a new layer on top (in Photopea, drag it in; in GIMP, File > Open as Layers).
- Line them up exactly at the top-left corner.
- Set the top layer’s blend mode to Difference.
Everything identical becomes black. Anything that changed shows as bright shapes. Toggle the top layer on and off to see what each change actually is. Photoshop works the same way.
Method 2: Flicker comparison (zero tools)
Open both images in an image viewer, make them full screen at the same size, and switch quickly between them with the arrow keys. Your eyes are good at spotting things that “jump”. This is surprisingly effective for layout changes, though it misses subtle colour shifts.
Method 3: ImageMagick (command line, precise)
ImageMagick is free on Windows, Mac and Linux. After installing it:
magick compare before.png after.png diff.png
This writes diff.png with changed pixels highlighted in red over a faded copy of the original. To get a number instead of a picture, add a metric:
magick compare -metric AE before.png after.png null:
The output is the count of pixels that differ. Add -fuzz 2% to ignore tiny colour differences from anti-aliasing.
Method 4: Online image diff tools
Web tools such as Diffchecker’s image comparison let you drop two images and see a slider, a fade and a highlighted difference view. They’re convenient, but many upload your images to a server. Don’t use them for screenshots containing customer data, internal tools or anything private.
Method 5: Visual regression testing (for developers)
If you compare screenshots of your own website or app regularly, automate it. Testing frameworks can take screenshots on every build and fail when something changes beyond a threshold:
- Playwright:
await expect(page).toHaveScreenshot()stores a baseline and compares future runs. - Cypress and Storybook have plugins and hosted services for visual comparison.
- Hosted tools like Percy and Chromatic manage baselines and review workflows for teams.
Mask dynamic areas such as dates and user avatars, or tests will fail on every run.
Presenting the difference to someone else
For a bug report or design review, a raw difference image is hard to read. Better options:
- Place the two screenshots side by side with “Before” and “After” labels.
- Highlight the changed area with a box in both images.
- Add the difference image as a third panel only if the change is subtle.
See how to write a bug report with screenshots. For capturing consistent before-and-after shots of web pages in Chrome, Z-Shot, our extension, can capture a single element at the same size each time and add boxes and labels in its editor.
FAQ
How can I compare two screenshots for differences?
Open both as layers in GIMP or Photopea and set the top layer’s blend mode to Difference. Identical areas turn black and changes light up.
Is there a command to compare two images?
Yes. With ImageMagick installed, run magick compare before.png after.png diff.png to create an image with differences highlighted.
Why does my comparison show differences everywhere?
The screenshots weren’t captured at the same size, zoom or scroll position, or one was saved as JPEG. Recapture both as PNG with identical settings.
Are online image comparison tools safe?
They’re fine for public images, but many upload files to a server. Use offline tools for private or work screenshots.
How do developers compare screenshots automatically?
With visual regression testing, for example Playwright’s toHaveScreenshot, which compares each run against a stored baseline.
Try it free: Z-Shot captures full pages, records your screen, and blurs or redacts sensitive data right in Chrome. Free plan, no account needed, and nothing is uploaded.




