User Rating 0.0 โ˜…โ˜…โ˜…โ˜…โ˜…
Total Usage 0 times
Image A (Original) Drop PNG here or click to browse
Preview of image A
Image B (Modified) Drop PNG here or click to browse
Preview of image B
0
Is this tool helpful?

Your feedback helps us improve.

โ˜… โ˜… โ˜… โ˜… โ˜…

About

Pixel-level image comparison detects changes invisible to the human eye. A single altered pixel in a 1920ร—1080 PNG represents just 0.00005% of the frame, yet it can indicate a rendering regression, an unauthorized asset modification, or a lossy re-encode masquerading as lossless. This tool computes the Euclidean distance โˆšโˆ‘(c1 โˆ’ c2)2 across RGB channels for every pixel pair and maps results to a visual heatmap. It assumes both images share identical dimensions. Results are approximate when comparing images with different alpha pre-multiplication states.

Five comparison modes cover different inspection needs: slider overlay for spatial orientation, difference heatmap for magnitude analysis, side-by-side for quick visual scan, blend difference for artistic review, and an opacity fade for subtle shift detection. The tolerance parameter t filters per-channel noise below a threshold, useful when comparing JPEG-recompressed assets against PNG originals. Pro tip: export your reference render at the exact target resolution to avoid dimension-mismatch rejection.

png compare image diff pixel comparison image difference visual diff image overlay side by side compare

Formulas

The core comparison metric is the Euclidean distance in RGB color space between corresponding pixels of images A and B:

di = โˆš(rA โˆ’ rB)2 + (gA โˆ’ gB)2 + (bA โˆ’ bB)2

where r, g, b are the red, green, and blue channel values (0 - 255) for pixel i. A pixel is marked as changed when di > t, where t is the user-defined tolerance threshold.

The Mean Squared Error across all N pixels:

MSE = 1N Nโˆ‘i=1 di2

Peak Signal-to-Noise Ratio quantifies reconstruction fidelity:

PSNR = 10 โ‹… log10 (2552MSE)

where di = per-pixel Euclidean distance, N = total pixel count (W ร— H), t = tolerance threshold, MSE = mean squared error, and PSNR is measured in dB. A PSNR above 40 dB indicates near-imperceptible difference. Infinite PSNR means identical images.

Reference Data

MetricFormula / MethodUse Case
Pixel Deltaโˆš(ฮ”r)2 + (ฮ”g)2 + (ฮ”b)2Per-pixel color distance
Max Deltamax(di) for all iWorst-case deviation
Mean Delta1N โ‹… โˆ‘diOverall drift severity
Changed PixelsCount where di > tAffected area size
Change %ChangedN ร— 100Summary statistic
PSNR10 โ‹… log10(2552MSE)Signal quality benchmark
MSE1N โ‹… โˆ‘di2Error magnitude
SSIM Range0 (no match) - 1 (identical)Perceptual similarity
PNG Bit Depth8 or 16 bits/channelPrecision ceiling
Color SpacesRGB (standard for web PNGs)Comparison validity
Tolerance 0Exact match onlyLossless verification
Tolerance 5Filters JPEG artifactsCross-format comparison
Tolerance 10Filters minor color shiftsMonitor calibration delta
Tolerance 25Filters moderate changesLayout regression tests
Tolerance 50Only major changes shownStructural diff only
Max Euclidean Deltaโˆš3 ร— 2552 441.67Normalization ceiling
Heatmap: Greend = 0Identical pixel
Heatmap: Yellowd โ‰ค 50Minor difference
Heatmap: Oranged โ‰ค 150Moderate difference
Heatmap: Redd > 150Major difference

Frequently Asked Questions

Pixel-by-pixel comparison requires a 1:1 coordinate mapping. If Image A is 800ร—600 and Image B is 1024ร—768, pixel (400, 300) in A has no semantically equivalent counterpart in B. Resizing one image to match introduces interpolation artifacts that would register as false differences. This tool enforces dimension parity to ensure every reported delta reflects a genuine change, not a resampling artifact.
For lossless PNG-to-PNG regression tests, use tolerance 0 for exact matching. If your CI pipeline re-encodes screenshots through a JPEG step, set tolerance to 3 - 5 to filter compression noise. For cross-browser rendering comparisons where sub-pixel antialiasing varies, 10 - 15 is practical. Values above 25 risk masking legitimate layout regressions.
The heatmap maps the Euclidean distance d to a color gradient. Identical pixels (d = 0) render transparent over a dark background. Low deltas (d โ‰ค 50) appear yellow, moderate deltas (d โ‰ค 150) appear orange, and high deltas (d > 150) appear red. The maximum possible delta is โˆš3 ร— 2552 โ‰ˆ 441.67 (black vs white).
Yes. The comparison uses all four RGBA channels. However, the primary Euclidean distance metric uses only RGB for the heatmap visualization, because alpha differences are perceptually ambiguous (a transparent red pixel and a transparent blue pixel look identical if fully transparent). Alpha channel deltas are reported separately in the statistics panel as a distinct metric.
PSNR is defined as 10 โ‹… log10(2552 รท MSE). When MSE equals zero (identical images), the division yields infinity. This tool displays "โˆž dB" in that case. Practically, PSNR above 50 dB means differences are invisible to the human eye under normal viewing conditions.
The Canvas API converts all images to sRGB upon drawing. If your source PNG embeds an Adobe RGB or Display P3 profile, the browser applies a gamut mapping before pixel data reaches this tool. The comparison is therefore performed in sRGB space regardless of source profiles. For profile-accurate comparison, convert both images to the same color space externally before uploading.