Skip to content
gohacks.dev
Testing

Image Diff

Compare two images pixel by pixel and see every changed pixel highlighted in red, with the percentage that differs and a tolerance for compression noise.

Free · No sign-up · Your inputs stay in your browser

Input

Compare two images pixel by pixel

Output

Choose two images

Changed pixels are painted red over a faded copy of the first image, the same idea visual regression tools such as Playwright's toHaveScreenshot use. Screenshots taken on different machines differ in font antialiasing even when nothing changed, which is what the tolerance is for.

Runs in this browser. Nothing you paste is sent to a server.

Visual regression by hand

Before and after screenshots of a page change, two exports of a design, a chart rendered by two library versions: a pixel diff shows exactly what moved. Automated suites such as Playwright's toHaveScreenshot and pixelmatch use the same principle with a threshold.

Tolerance matters

Screenshots from different machines differ in font antialiasing and GPU rendering even when nothing changed, and JPEG compression changes pixels slightly. A small tolerance ignores that noise; zero shows every difference.

Share

Frequently asked questions

Can it compare images of different sizes?
It compares the overlapping top-left area and says the sizes differ. For a fair comparison, export both at the same size.
Are the images uploaded?
No. Both are decoded and compared in this page.
Is what I paste sent anywhere?
No. The tool runs entirely in your browser with JavaScript. Nothing you type or paste is sent to our server or stored.

Keep planning

Similar tools