Image Diff
Compare two images pixel by pixel and get a diff image that highlights every changed pixel in red, plus the number and share of pixels that differ. Useful for visual regression testing, checking screenshots and spotting edits.
Frequently asked questions
How are the images compared?
With pixelmatch, the comparison library used by many visual testing tools. It compares colours in the YIQ colour space, which follows how people perceive differences, and marks pixels above the threshold in red on a faded copy of the first image.
What does the threshold do?
It sets how different two colours must be to count as a change, from 0 (any difference) to 1 (only extreme differences). The default 0.1 ignores tiny compression noise.
What is ignoring anti-aliasing?
Edges of text and shapes are smoothed with intermediate colours that can shift by a pixel between renderers. With the option on, pixelmatch detects such anti-aliased pixels and does not count them as changes.
What if the images have different sizes?
The second image is resized to the size of the first before comparing, and the result says so. For exact results, compare images of the same size.
Which formats can I upload?
PNG, JPEG, WebP, GIF, TIFF and AVIF. Transparent areas are compared including their transparency.
Are my images stored?
No. Both images are processed for this request only and only the diff image and the numbers are returned.