Skip to content

Before and After Slider

A before and after slider for two photos: drag the line to compare, then save the wipe as a GIF or MP4, a side-by-side picture, or an embeddable web page.

  • Runs in your browser
  • Pictures never leave your device
  • Free, no sign-up, no watermark
Before
Drop, paste or click No picture yet
After
Drop, paste or click No picture yet

How to make a before and after slider in 4 steps

  1. Add the two pictures. Drop, paste or choose a Before picture and an After picture: a photo before and after editing, a room before and after a makeover, a page before and after a redesign. They stay on your device.
  2. Name them if you like. The labels "Before" and "After" sit in the corners; change them or clear them. Choose a side-to-side or a top-to-bottom comparison.
  3. Drag the line across the preview, or use the slider under it, to check the comparison.
  4. Download what you need: this view, both pictures side by side, an animated GIF or MP4 of the line sweeping across, or a web page with the slider in it.

A made-up landscape compared with a duller, hazier copy of itself: the Before label on the left, the After label on the right and the line with its handle in the middle, beside the two picture slots and settings

What makes this before and after slider different

  • Every format from one comparison. Most before and after tools give you either a slider for a website or a still picture. Here the same two pictures become a still of the current view, a side-by-side image, a looping GIF, an MP4 video and an interactive slider page.
  • A slider page that carries its own pictures. The web page you download holds both pictures inside it, so there's nothing else to upload or link. Put the file next to your page and paste the iframe code. The slider works with a mouse, touch or the keyboard.
  • A GIF for places that can't run a slider. Chats, forums and social posts can't show an interactive slider, but they can play a GIF or a video. Both show the line sweeping across and back over four seconds, pausing on each whole picture.
  • Private by design. The pictures are read and drawn in your browser and never sent anywhere. No account, no watermark.

Use cases

  • Photo editing: show a colour grade, retouch or restoration, with the line moving across the change.
  • Renovations and makeovers: a room, a garden, a car or a haircut, before and after.
  • Product and design work: an old and a new version of a logo, a website or an app screen.
  • Science and maps: two images of the same place on different dates, compared top to bottom or side to side.

Specs and limits

  • Pictures: JPEG, PNG, WebP, GIF (first frame) or AVIF, as large as 16,384 pixels a side. They're kept at up to 2,400 px.
  • Size of the downloads: the Before picture's size and shape, scaled down to 1,920 px on the longer side when larger. The GIF is at most 720 px on the longer side.
  • Different shapes: the After picture fills the Before picture's frame with its edges cropped, or fits inside it with dark bars.
  • Animation: a 4-second loop, a half-second pause on each whole picture and a 1.5-second sweep each way. The GIF runs at 15 frames a second, the MP4 at 30 (H.264).
  • MP4: made only where the browser can encode video on the device (WebCodecs). Elsewhere the button is hidden.
  • Web page: one HTML file of about the size of the two pictures as JPEGs, with no outside links, scripts or fonts.
  • Saved in this browser: your labels and settings, never the pictures.

Methodology

  • The comparison: the Before picture fills the frame and the After picture is drawn only past the line: to its right in a side-to-side comparison, below it in a top-to-bottom one. Each picture carries its own label, so a label disappears with its picture as the line moves over it.
  • The animation: the line holds on the whole Before picture, eases across to the whole After picture, holds, and eases back. The GIF's frame times are whole hundredths of a second, set so the loop lasts exactly four seconds.
  • The GIF: one 256-colour palette is taken from the two pictures and the halfway view, with light dithering. Each frame stores only the part that changed, the strip the line crossed, which keeps the file small.
  • The web page: the two pictures are stacked, and the After picture is clipped at the slider's position. The slider is a standard range control, so it can be moved with the keyboard, and screen readers announce it with your labels. The page carries a content security policy that lets it run only its own script and show only its own pictures, and the iframe code sandboxes it, so it can't reach the page around it.

Frequently asked questions

How do I make a before and after slider?

Add the Before and After pictures, drag the line across the preview to compare them, then pick a download: the current view, both side by side, an animated GIF or MP4, or a web page with the slider in it.

Can I make a before and after GIF?

Yes. The GIF shows the line sweeping across and back in a 4-second loop, up to 720 pixels on the longer side, so it plays anywhere a live slider can't, such as chats and forums.

How do I put a before and after slider on my website?

Download the web page version. Both pictures are inside it, so it needs no other files. Upload it next to your page and paste the iframe code the tool gives you where the slider should appear.

What if the two photos are different sizes?

The Before picture sets the size and shape. The After picture either fills that frame with its edges cropped or fits inside it with bars, as you choose. Two pictures of the same size compare best.

Can I save the comparison as an MP4 video?

Yes, in browsers that can encode video on the device (WebCodecs). There the MP4 button makes the same 4-second sweep at 30 frames a second. Where the browser can't, the button is hidden and the GIF still works.

Are my photos uploaded?

No. Everything happens in your browser, and the pictures never leave your device. Only your labels and settings are remembered, never the pictures.

Last updated · Checked in Chrome's engine (Chromium 156) on 1 December 2026. Not yet checked in Safari, Firefox or on phones. · By the VidzHome team