Skip to content
Free ToolCreative

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 free

Browser tool

Before-after slider embed generator

Paste image URLs and copy a self-contained HTML comparison slider snippet. Nothing is uploaded.

Live preview

Before
After

How to use

1

Paste the public before and after image URLs

Paste the public before and after image URLs

2

Set the height, labels, and starting slider position

Set the height, labels, and starting slider position

3

Copy the snippet into your website or CMS

Copy the snippet into your website or CMS

Features

1

Embeddable HTML

Generate HTML, CSS, and JavaScript for a before-and-after image comparison slider to embed on your website.

2

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.

3

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 Eraser

Specifications

InputHTTPS image URLs
OutputHTML + CSS + JavaScript
ProcessingClient-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 Eraser