Drop your before & after images here
or browse files — two images needed
Drag the handle left and right to compare. Images stay in your browser.
Upload two images, drag the divider, and copy a responsive before/after slider snippet — 100% free and private.
or browse files — two images needed
Drag the handle left and right to compare. Images stay in your browser.
An image comparison slider is an interactive element that stacks two images on top of each other and lets visitors drag a vertical divider to reveal the "before" and "after" states. Instead of placing two photos side by side, the slider keeps both versions perfectly aligned, which makes small changes far easier to see.
This before after slider generator builds the comparison for you. Upload the original and the edited image, adjust the divider style and label text, then copy production-ready HTML, CSS, and JavaScript. The output is lightweight, dependency-free, and works in any modern browser.
Because processing happens entirely in your browser with the FileReader API, your images never touch a server. That makes the tool safe for client work, private photos, and unreleased product shots.
Move the divider in real time to check the exact crop before you copy any code.
Change the divider color and thickness so the slider matches your brand styling.
Rename the "BEFORE" and "AFTER" badges or hide them completely for a cleaner look.
The generated slider uses fluid widths and pointer events so it works on phones and tablets.
Copy separate HTML, CSS and JS tabs, or grab the full snippet with one click.
No uploads, no accounts, no watermarks. Everything runs locally in your browser.
Drop the original and the edited image onto the upload area, or click browse to pick them. Use the same dimensions for perfect alignment.
Drag the handle to compare. Then set the divider color, thickness, label text and starting position in the sidebar.
Switch between the HTML, CSS and JS tabs to inspect the output, then copy the full snippet into your project.
The markup works in plain HTML pages and in builders that accept custom code, including WordPress and Webflow.
To get the most from an image comparison slider, follow these practical guidelines:
Pair the comparison slider with other free tools on ImageFix:
It is a UI element that overlays two images and lets visitors drag a divider to reveal the before and after versions. Photographers, retouchers and product marketers use it to show edits clearly.
No. The tool writes the HTML, CSS and JavaScript for you. Paste the snippet into your page and the slider works immediately.
Yes. Images scale with their container and the handle uses pointer events, so it works with mouse and touch on all modern devices.
No. Everything runs in your browser. Files are read locally and never transmitted, so private client work stays private.
Yes. Paste the HTML into a custom HTML block and add the CSS and JS in the appropriate custom code fields. Any builder that accepts raw code works.
JPG, PNG, WebP and other formats your browser can decode. For best results use two files with the same dimensions and aspect ratio.