Image Compare Tool

Compare two images with slider, side-by-side, and overlay modes. Inspect size and resolution differences, export the comparison as PNG, or build a share link containing remote image URLs.

FreeOnline Tool
Loading…

Rate this tool

Your rating helps others decide whether this tool is worth using

How to Use

  1. Choose the “Local upload” or “Image URL” tab and load image 1 and image 2; in URL mode, paste an address and click “Load”.
  2. Once both images are ready, pick Slider, Side-by-side, or Overlay under “Compare mode”.
  3. In slider mode, drag on the canvas or move the “Slider position” control; in overlay mode, adjust “Top layer opacity” (image 1 is on top, image 2 below).
  4. Click “Image details” to see file-size, resolution, and width/height differences; “Reset parameters” restores 50% slider position and 50% opacity.
  5. Click “Export PNG” to save the current comparison (slider and overlay modes only), or “Copy share link” to build a ?img1=…&img2=… URL from remote images.
  6. Click “Load sample data” to try all modes with two built-in sample images.

Features

  • Three comparison modes: slider (image 1 on the left, image 2 on the right), side-by-side, and overlay (image 1 on top with adjustable 0–100% opacity).
  • Load images from local files (select or drag) or remote URLs; URLs must use http, https, data, or blob protocols, and invalid input is rejected with a message.
  • “Image details” reports file-size difference and percentage, resolution comparison (identical or A vs B), and width/height pixel differences.
  • The comparison canvas fits the container width and never scales above 1, so low-resolution images are not enlarged; differently sized images are drawn at their own proportions inside the same canvas.
  • Slider and overlay modes can export the current canvas as PNG; side-by-side is view-only and the export button is disabled.
  • Share links can contain only http/https image URLs in the form ?img1=…&img2=…; opening one switches to URL mode and loads the images automatically.
  • Remote images require CORS permission from their server before the canvas can be exported. Locally uploaded images never leave your browser.

Use Cases

Design version comparisons
Overlay or slider-compare two design revisions to check changes in color, spacing, and element position.
Before-and-after photo editing
Use the slider divider to compare an original photo with the retouched version and inspect color, skin, or crop changes.
Website redesign screenshot review
View old and new page screenshots side by side and cross-check resolution and file-size differences.
Compression quality and file-size checks
Compare quality before and after image compression while watching the file-size difference percentage to tune compression settings.

FAQ

Why does PNG export fail with a cross-origin error?
A remote image did not return an Access-Control-Allow-Origin header, so the browser marks the canvas as tainted and blocks pixel export. Use locally uploaded images or have the image server enable CORS, then try again.
Why can't I export a PNG in side-by-side mode?
Side-by-side mode displays the two images as separate img elements rather than drawing them onto a shared canvas, so there is no composite result to export. Switch to slider or overlay mode to export.
Why do share links only support remote images?
Locally uploaded images exist only in the current browser and cannot be opened on another device. Only http/https image URLs are written into ?img1=…&img2=…; data: and blob: URLs are not included either.
How are images of different sizes or aspect ratios displayed?
The canvas uses the largest width and height of the two images. Each image is drawn at its own proportions in the top-left corner without stretching, so a smaller image may leave empty space on the right or bottom; the slider divider still spans the full canvas width.
Are uploaded images sent to a server?
No. Local files are read in the browser with FileReader, and remote URLs are fetched directly by your browser from the image host; this tool's server does not relay or store either.
Can I open a comparison directly from a link?
Append ?img1=image-url&img2=image-url to the page address (either parameter can be omitted). The page switches to URL mode and tries to load them; both must be http/https image URLs.