Runs locally — your images are never uploaded

Image Compare Slider

Upload a 'before' and 'after' image to generate an interactive draggable comparison slider, with a copyable embed code.

How to use the Image Compare Slider

  1. Upload your "before" image on the left and your "after" image on the right.
  2. Drag the handle across the live preview to compare the two images interactively.
  3. Click "Copy embeddable HTML code" to get a self-contained snippet you can paste into any website.
  4. The embed code includes both images and works independently, without needing this page.

About the Image Compare Slider

A before/after slider is one of the most effective ways to show a visual change — a photo edit, a renovation, a weight-loss journey, a design revision — because it lets a viewer directly control the comparison themselves rather than passively looking at two static images side by side. The interactivity itself is part of what makes the comparison compelling.

This tool builds that slider directly in your browser from two images you upload, giving you an immediate live preview to test the effect. Beyond just previewing it here, the tool also generates a complete, self-contained HTML snippet — with both images embedded directly as data — that you can copy and paste into your own website, blog post, or content management system. Because the images are embedded directly in the code rather than referenced as external files, the snippet works independently anywhere you paste it, without needing to separately upload the images or link back to this tool.

It's used by photographers and editors showing before/after retouching work, home renovation and design professionals showcasing project transformations, fitness and wellness content creators documenting progress, and web developers who need this interactive component without pulling in a heavier JavaScript library just for one slider. Because the entire generation process runs locally, neither of your images is ever uploaded to a server.

Frequently asked questions

Does the embed code require loading this tool's website?+
No, the generated embed code is fully self-contained — both images are embedded directly as data within the snippet, so it works independently wherever you paste it.
Will the embed code work on any website or platform?+
It's plain HTML, CSS, and JavaScript, so it works on most self-hosted websites and platforms that allow custom HTML/embed blocks. Some platforms with restricted HTML embedding (certain page builders or content management systems) may limit what's allowed.
Is there a file size concern with embedding images directly in the code?+
Since both images are embedded as data directly in the snippet, larger images will result in a larger embed code. Consider compressing your images first with the Image Compressor tool if the embed code becomes unwieldy.
Can I use more than two images in one slider?+
This tool creates a single before/after comparison between exactly two images. For comparing more than two versions, you'd need multiple slider instances.

Related tools