Before and After Slider Maker

Line up a before and an after photo, then turn them into an interactive comparison for your website, a looping GIF for social posts or a plain side-by-side image.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Add photos

    Choose the before photo, then the after photo, or drop both at once.

  2. 2
    Align

    Switch to Align, use Onion skin or Difference and drag, scale and rotate the after photo.

  3. 3
    Set the slider

    Pick a vertical or horizontal divider, its start position and colour.

  4. 4
    Label it

    Type the two labels or switch labels off.

  5. 5
    Choose GIF options

    Set the frame count and width for the animation.

  6. 6
    Export

    Download the HTML embed, the animated GIF, the side-by-side PNG or the current view.

About this tool

Before and after comparisons sell renovations, retouching, landscaping, dental work, car detailing and software redesigns better than any paragraph. The problem is that the two photos are rarely taken from exactly the same spot, and the usual slider widgets need a plugin or a developer. This maker solves both. You load the before photo, which sets the frame and output size, and the after photo, which you can move, scale and rotate on top of it until the two match. An onion skin view shows the after photo at adjustable transparency, and a difference view turns every aligned area black, so even a two pixel shift becomes obvious. When the photos line up, you choose a vertical or horizontal divider, its start position, colour and the two labels. The result can leave the page in four ways: a single HTML file with both pictures inlined and a draggable, keyboard accessible divider; an animated GIF in which the divider sweeps back and forth; a side-by-side PNG; or a PNG of the current split view.

Aligning two photos

Switch to Align mode and drag the after photo with a mouse or a finger, or nudge it with the arrow keys (one pixel at a time, ten with Shift). The Scale slider runs from 50 to 200 percent and the Rotate slider corrects up to 15 degrees of tilt in steps of one tenth of a degree, which is enough for hand-held photos taken from roughly the same place. By default the after photo is scaled to cover the before frame, so different camera resolutions match automatically. Reset alignment returns to that starting point and Undo steps back through each change.

The HTML embed

The exported file is one complete web page with no external scripts, fonts or images: both photos are stored inside it as JPEG data, scaled to at most 1600 pixels wide. Upload it to your site and show it in an iframe, or open it straight from a USB stick at a client meeting. The divider responds to mouse, touch and pen, and the arrow keys move it in two percent steps, with slider roles for screen readers. The labels are escaped, so characters like ampersands are safe.

GIF and PNG exports

The animated GIF eases the divider from one side to the other and back over 8 to 48 frames, with a short pause on the final frame, at a width of 480 to 1080 pixels. Each frame gets its own 256-colour palette, which keeps skin tones and gradients cleaner than one shared palette. The side-by-side PNG places both aligned photos next to each other for a vertical divider or stacked for a horizontal one, with the labels in the corners.

Limits

The alignment is a manual similarity transform: it does not correct lens distortion or a change of viewpoint, so photos taken from very different angles will never match perfectly. GIF files of many frames at 1080 pixels can be several megabytes; use 640 pixels and 24 frames for messaging apps. Nothing is uploaded, and the tool does not host the embed for you.

Worked example

A kitchen fitter has a 4000 by 3000 before photo and an after photo shot from slightly further left. In Align mode the onion skin at 50 percent shows the cabinets doubled; dragging the after photo 38 pixels right, setting Scale to 103.5 percent and Rotate to minus 0.8 degrees makes the difference view almost black. The HTML embed is 1600 by 1200 pixels and the 24-frame GIF at 640 pixels weighs about 2 MB.

Quick facts

Frequently asked questions

Do I need a plugin to use the HTML embed?

No. The file contains its own small script and both images, so any web host, page builder that allows iframes or a local browser can show it.

Why does the before photo decide the size?

One photo has to define the frame. The after photo is fitted and aligned into it, so both halves always have the same pixel grid.

Can I compare photos of different sizes?

Yes. The after photo is first scaled to cover the before frame, then you fine-tune scale, rotation and offset.

What does the difference view show?

It subtracts the two photos. Areas that match turn black, misaligned edges glow, which makes small shifts easy to spot.

Can visitors use the slider with a keyboard?

Yes. The divider can be focused with Tab and moved with the arrow keys, and it reports its position to screen readers.

Are my photos uploaded?

No. Alignment, rendering, GIF encoding and the HTML file are all made in your browser.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages