Before/after slider and pixel diff
- Free
- No sign-up
- No upload
- Works offline
Tool facts
- Opens
JPGPNGWEBPAVIFGIFBMP- Saves as
PNG- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Batch processing
- One file at a time
- Offline use
- Works without a connection once this page has loaded
- Built with
- Canvas
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
- Limits
- The pixel difference map works on images up to 40 megapixels.
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About Image Compare
Image Compare puts two versions of a picture next to each other so you can see exactly what changed: drag a before/after slider across them, view them side by side, fade one over the other as an onion skin, or switch to a difference map that marks every changed pixel in red and reports the share of changed pixels, the largest channel difference and the bounding box of the changes. It suits checking a retouch, a compression setting, a UI screenshot before and after a code change, or two exports that should be identical.
A pixel counts as changed when its red, green, blue or alpha value differs by more than the threshold, which you can set from 0 (any difference at all) to 128; raising it to around 10 ignores invisible JPEG noise. Images of different sizes can be scaled so B matches A's size, or placed at the top-left corner, in which case areas covered by only one image count as changed. The difference map can be saved as a PNG at full size. Both images are compared in your browser and never uploaded.
Image Compare runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use Image Compare
- Drop the first image on Image A and the second on Image B, or drop both files at once on either box.
- Choose a view: Slider, Side by side, Onion skin or Difference.
- In Slider view drag across the picture (or use the Split control); in Onion skin set the opacity of B.
- In Difference view set the Threshold and read the changed-pixel percentage; click Save difference image to keep the map.
- If the images differ in size, choose Scale B to A or Align top-left.
Frequently asked questions
How is the percentage of changed pixels calculated?
Both images are drawn onto canvases of the same size and compared pixel by pixel. For each pixel the largest absolute difference among the R, G, B and alpha channels is taken; if it is above the threshold the pixel counts as changed. The percentage is changed pixels divided by all pixels of the comparison area, so a 10 × 10 square that differs on a 100 × 100 image gives exactly 1.00%.
What threshold should I use?
Use 0 to find any change at all, for example to prove that two PNG exports are byte-for-byte identical in pixels. JPEG and WebP compression shifts many pixels by a few levels, so on photos a threshold of 8 to 16 hides most of that noise; on screenshots and text the compression error along sharp edges is much larger (a 92% JPEG of a test chart still differed by up to 108 levels), so judge by where the red pixels are rather than by the percentage alone. The Max difference figure tells you the biggest channel difference found, which helps to pick a value.
What if the two images have different sizes?
Scale B to A stretches B to exactly A's width and height, which is right for comparing a resized or recompressed copy with its original. Align top-left keeps both at their own pixel size on a canvas as large as the bigger one, and areas that only one image covers count as changed. If the aspect ratios differ, scaling distorts B, so cropping it first gives a fairer result.
Why does the Difference view show changes I can't see?
Small differences such as a value of 3 out of 255 are invisible to the eye but still count when the threshold is below them. Resizing, color-profile conversion and re-encoding all shift pixels slightly. Raise the threshold until only the edits you care about remain, and check the bounding box to see where they are.
Are the images uploaded, and how large can they be?
No upload happens: decoding, drawing and comparing run in your browser. The difference map is computed at full resolution for comparison areas up to 40 megapixels; the slider, side-by-side and onion views work for any size the browser can decode.