Generate a before-and-after slider embed
Paste public before and after image URLs, preview the slider, set its height, labels, and starting position, then copy a self-contained HTML snippet.
Use this tool freeBrowser tool
Before-after slider embed generator
Paste image URLs and copy a self-contained HTML comparison slider snippet. Nothing is uploaded.
Live preview
How to use
Paste the public before and after image URLs
Paste the public before and after image URLs
Set the height, labels, and starting slider position
Set the height, labels, and starting slider position
Copy the snippet into your website or CMS
Copy the snippet into your website or CMS
Features
Embeddable HTML
Generate HTML, CSS, and JavaScript for a before-and-after image comparison slider to embed on your website.
Live preview
Paste public before and after image URLs, preview the slider, set its height, labels, and starting position, then copy a self-contained HTML snippet.
No image upload
No. It only writes the URLs into code in your browser. Your image host must allow the images to be displayed publicly.
After this task
After this free tool, open Magic Eraser for the next AI editing workflow.
Continue with Magic EraserSpecifications
| Input | HTTPS image URLs |
| Output | HTML + CSS + JavaScript |
| Processing | Client-side |
Related Magic Eraser Tools
Common questions
Does this upload images?
+
No. It only writes the URLs into code in your browser. Your image host must allow the images to be displayed publicly.
Can I edit the snippet?
+
Yes. The output is plain HTML, CSS, and JavaScript that you can customize.
Need an edited after image?
Use Magic Eraser to clean up your photo, then generate a comparison slider here.
Open Magic EraserMore free tools
Explore our other limited free edits after sign-in photo and image tools.
Design linear, radial, and conic gradients with multiple color stops. Copy the CSS code or download as a PNG image.
Convert colors between HEX, RGB, HSL, HSB, CMYK, and CSS named formats. See a live preview, copy any value, and export a color card.
Convert HEX color codes to RGB values and vice versa. Live preview, one-click copy, and CSS snippet output. works in your browser.
Pick any color from an uploaded image and get its HEX, RGB, and HSL codes instantly. Build palettes from photos for web design, branding, and illustration.
Upload a photo and extract 5-10 dominant colors with HEX, RGB, and HSL codes. Copy swatches, export as ASE or CSS variables.
Generate QR codes for URLs, text, WiFi credentials, and vCards. Customize colors, add a center logo, and download as PNG or SVG.