Image Tools
Before & After Image Slider Maker
Compare two photos with a draggable before/after slider — then export embeddable HTML, a snapshot image, or an animated GIF for social media. Great for edits, renovations and results.
How to use
- 1Upload the before and after photos.
- 2Drag the divider and edit the labels.
- 3Download the embed code, a still image, or an animated GIF.
Frequently asked questions
How do I add it to my website?
Download the .html file and paste its contents into an HTML/embed block — images are included, nothing else to host.
Do the images need the same size?
Best results come from photos with the same framing; both are cropped to the 'before' photo's shape.
Is it private?
Yes — everything is processed in your browser.
Why the embed file needs nothing else hosted
The downloaded HTML isn't a link to images hosted elsewhere — both photos are encoded as inline Base64 data URIs directly inside the file, along with a small inline script that moves the clip boundary as a range input is dragged. That means the single .html file is completely self-contained: pasting its contents into any website builder's HTML/embed block works immediately, with no separate image uploads, external script tags or hosting to arrange, though it does mean the file itself is sized roughly like both source photos combined.
Why mismatched photos still line up
Both the live slider and every export use a 'cover' crop — each image is scaled up just enough to fill the frame completely in both directions, then centered and cropped to match, rather than stretched to fit. That's why two photos with different original dimensions or aspect ratios still line up edge-to-edge along the same divider rather than one looking squeezed; the trade-off is that each photo may lose a strip from its edges to make the aspect ratios match, so the framing (what's actually visible within that cropped area) matters more than getting the exact original pixel dimensions to agree.
How the animated GIF simulates a hand dragging the slider
Rather than a simple left-to-right sweep, the GIF export calculates its frame positions from a sine wave, so the divider eases in and out at the ends of its range the way a real drag motion does rather than moving at a constant mechanical speed. Each of the 24 frames is rendered fresh at a reduced 640px width (GIFs get large fast at higher resolutions) and run through palette quantization — GIF's limited 256-color format — before being assembled into the final animated file, which is why the GIF looks slightly less color-rich than the live interactive slider or the static JPEG export.
Example: documenting a home renovation for social media
Say you've renovated a kitchen and want to share the transformation both on your website and as a quick social post. Upload the before and after shots, label them 'Before' and '2026 Remodel,' and drag the divider to find the most dramatic comparison point. Download the embed HTML for a blog post where visitors can drag the slider themselves, and separately export the animated GIF for Instagram or a text message, where an interactive slider isn't possible but a looping back-and-forth animation gets the same before/after impact across in a format every platform can display.
Related tools
- Rotate & Flip Images
Rotate images 90°, 180° or 270°, or flip them horizontally or vertically — one photo or a whole batch, with no quality loss for PNG.
- Add Text / Watermark to Photo
Add text, a watermark or a date stamp to photos — choose font, size, color, position, opacity and a tiled watermark pattern.
- APNG Maker (Animated PNG)
Make an animated PNG from a set of images, or convert an animated GIF to APNG. Full colour and smooth transparency, any frame delay and loop count, built in your browser.
- Photo Collage Maker (Grid, Side-by-Side, Sprite Sheet)
Combine photos into a collage or grid, place two images side by side or stacked, or pack sprites into a sprite sheet — with spacing, background and size options.
- Compare PDF Files (Text Differences)
Compare two PDFs (or Word files) and see exactly what text was added, removed or changed — page by page, highlighted like a redline.
- Insert Images into PDF
Add photos, scans or diagrams to an existing PDF as new pages, placed exactly where you want them.