Saved

Press the star next to a tool's name to save it.

All my tools

Image Comparison Slider

Use this image comparison slider to put a before and an after picture on top of each other, drag the divider to compare them and save the split view as a PNG.

Add two pictures: the first is the before, the second is the after. Move the slider to reveal more or less of each. Both are shown at the size of the before picture.

Your picture is processed in your browser. Nothing is uploaded.

Preview

Add a before and an after picture to compare them here.

An image comparison slider shows two versions of a picture in the same frame, with a movable line that decides how much of each you see. Photographers use it to show an edit, designers to compare two versions of a layout and teams to review a retouch. This image comparison slider works in your browser: add a before and an after picture, drag the divider and, if you like, save the split view as one PNG.

How to use the image comparison slider

  1. Choose the before picture first, then the after picture. You can also add both at once.
  2. Check the order in the file list. The first file is on the left of the divider, the second on the right.
  3. Drag the slider, or click the picture, to move the dividing line.
  4. Press Save comparison picture to download the current split as a PNG.

How the comparison is built

  • The after picture fills the frame. The before picture lies on top and is clipped, so it shows only to the left of the divider.
  • Both are scaled to the frame, which takes the shape of the before picture. For the best result use two pictures with the same proportions.
  • The slider runs from 0, all after, to 100, all before. The default is 50.
  • Clicking on the picture moves the divider to where you clicked.

How the saved picture is made

For the saved file, the tool draws the after picture on a canvas the size of the before picture, then draws the before picture over it inside a clipping region that covers only the left part. The clip method turns a path into the clipping region so later drawing only shows inside it [1]. A thin white line marks the divider. The canvas is converted to a PNG with toBlob [2], so the saved picture is a still image of the split at the position you chose.

Worked example

Take a 1000 × 800 pixel before photo and an after photo of the same size. With the slider at 50, the saved picture is 1000 × 800 and the left 500 pixels show the before photo. At 25 the left 250 pixels are before and the right 750 are after. At 100 you see only the before picture, and at 0 only the after.

SliderBefore showsAfter shows
0NothingAll 1000 px
25Left 250 pxRight 750 px
50Left 500 pxRight 500 px
100All 1000 pxNothing

Good uses

  • Photo editing and retouching results.
  • Restoration of old photos, with a scan before and a cleaned version after.
  • Design reviews of two versions of a screen.
  • Image compression checks, original on one side and compressed on the other.
  • Renovation, gardening and weight-loss progress pictures.

Tips

  • Use two pictures with the same size and framing, so details line up under the divider.
  • To compare at pixel level, use a high-resolution pair and zoom your browser.
  • If a third picture is added, it replaces the after picture.

Showing an edit

Photographers often show an edit with the original on one side and the edited picture on the other. The slider lets the viewer decide where to look, which is more engaging than two pictures side by side. Save the split view as a PNG when you want to share the comparison somewhere that cannot show a live slider, such as a message or a printed page.

Checking compression and resizing

To judge how much quality an image compressor or resizer has removed, put the original as the before picture and the processed one as the after. Zoom your browser in on a detailed area and drag the divider across it. Differences in edges, text and smooth gradients are easy to spot this way.

Aligning the two pictures

The after picture is stretched to the shape of the before picture. If the two have different proportions, the after picture is distorted, so crop both to the same shape first. When the two pictures show the same scene from the same position, the divider seems to reveal a change in place, which is the effect you want.

Sharing your comparison

The saved PNG shows the split at the slider position you chose, with the before on the left and the after on the right, and a thin white line between them. It can be attached to an email, posted on a forum or added to a report. If you want to show both pictures completely, save two comparisons, one at 0 and one at 100, or simply use the original files.

The viewer itself is not saved, so each visit starts again: add the pictures, move the slider and save. If you need an interactive slider on your own web page, you would build one with two images and a small amount of script, using the same idea shown here.

Privacy and file limits

Everything happens inside your browser tab. The picture is read from your device, drawn on a canvas and saved back to your device, so nothing is sent to a server and nobody else sees it. Files up to 50 MB are accepted, and very large pictures are refused when they would be too big for your browser to handle. JPG, PNG and WebP are supported.

What next

Use this often? Add Image Compar to your Home screen.

Frequently asked questions

What is an image comparison slider?

It is a viewer that overlays two pictures and uses a movable divider to show how much of each is visible, which makes differences easy to see.

Which picture is on which side?

The first picture you add is the before and appears left of the divider. The second is the after and appears on the right.

Can I save the comparison?

Yes. Press Save comparison picture to download a PNG of the split view at the position you chose.

Do the pictures need the same size?

They do not have to, but they line up best when they share the same proportions. The after picture is fitted to the before picture.

Are my pictures uploaded?

No. Everything runs in your browser and the pictures stay on your device.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Image Tools