What Is a Before and After Slider?
A before and after slider overlays two images of the same scene and lets the viewer drag a divider to reveal one or the other. It's the most compelling way to show a transformation, because the eye sees the change happen in place rather than comparing two separate pictures. Before/after sliders are popular with photographers and retouchers, renovation and landscaping companies, cosmetic clinics, car detailers, cleaning services, web designers and anyone showcasing a makeover.
This free before/after slider maker lets you build and test the slider right in your browser, then export it in the format you need: a self-contained HTML slider you can paste into any website (images embedded, no plugins or external files), an animated GIF that sweeps back and forth for social media and emails, or a still split image at any divider position.
How to Make a Before and After Slider
- Add the "before" image, then the "after" image. You can also drop both at once.
- Drag across the image to test the comparison, and pick horizontal or vertical direction.
- Edit the labels and divider colour to match your brand.
- Export: download the HTML slider, copy the embed code, or create an animated GIF or split image.
Export Options
| Format | Interactive | Best for |
|---|---|---|
| HTML slider / embed code | Yes: drag or swipe | Websites, portfolios, landing pages, blogs |
| Animated GIF | Auto-plays | Social media, emails, chat, presentations |
| Split image (JPG/PNG) | No | Thumbnails, print, marketplaces, reviews |
Features
- Live draggable previewTest the comparison with mouse or touch.
- Horizontal or verticalReveal left/right or top/bottom.
- Embeddable HTMLA tiny, dependency-free slider with images embedded.
- Animated GIFA smooth sweeping animation with optimised colours.
- Labels and coloursCustomise the "Before" and "After" tags and the divider.
- PrivateNo uploads, no watermark, no account.
Tips for Great Before/After Comparisons
- Match the framing. Shoot from the same position, with the same zoom and orientation. A tripod or a marked spot helps.
- Keep lighting consistent so the change you're showing is the real difference.
- Crop both images identically before adding them, for a perfect overlay.
- Be honest. Use the same camera settings and avoid extra filters on only the "after" photo.
Who Uses Before/After Sliders?
- Photographers and retouchers show editing skills in portfolios and client galleries.
- Home improvement businesses such as builders, painters, landscapers, cleaners and interior designers prove the quality of their work.
- Beauty and wellness professionals show hair, makeup, skincare and dental results (following advertising rules for such claims).
- Car detailers and restorers reveal dramatic transformations.
- Web designers and marketers present redesigns and A/B variations.
- Scientists and GIS analysts compare satellite images, maps and processed data over time.
The exported HTML slider is lightweight: a few lines of plain JavaScript with no libraries, so it loads instantly and works on phones with touch. Because the images are embedded, it keeps working even if you move the page or copy it to another site.
Choosing the Right Export
If you run a website, the HTML slider gives visitors the most engaging experience, because they control the reveal themselves. Paste the embed code into a custom HTML block and it just works. For social media, where interactive elements aren't allowed, the animated GIF sweeps the divider back and forth automatically and loops forever, drawing the eye as people scroll. The still split image is ideal wherever only a single photo is accepted, such as marketplace listings, review sites, printed flyers and presentation slides. You can export all three from the same pair of photos in a few seconds.
Frequently Asked Questions
Does the HTML slider work on mobile?
Yes. It uses pointer events, so it responds to touch and swipe as well as the mouse.
How do I add the slider to my website?
Click "Copy embed code" and paste it into an HTML block in WordPress, Squarespace, Wix, Webflow or your own page. It works without any plugin.
Why is the embed code so long?
The images are embedded inside the code as data, so nothing else needs to be uploaded. Larger images make longer code.
Can I make a before/after GIF for Instagram?
Instagram doesn't support GIF uploads, but you can share the GIF on X, Facebook, Reddit, messaging apps and emails, or convert it to video.
What if my images are different sizes?
The after image is fitted to the before image's frame. For best results, crop both to the same dimensions first.
Are my photos uploaded?
No. Everything, including GIF creation, runs in your browser.