Browser-based image tool · two photos → one comparison JPG or PNG

Before and After Image Maker

Add the photo from before the change and the photo from after it. Show them side by side, one above the other, or as a single picture split by a divider you drag across the preview, then save the result with Before and After labels. Both photos are decoded and drawn on this device; neither is uploaded.

Photos and layout

Two JPG, PNG or WEBP photos, up to 25.00 MB and 50 megapixels each. Phone photos are turned upright from their EXIF orientation.

Before photo

Drop the before photo or click

.jpg, .jpeg, .png, .webp

After photo

Drop the after photo or click

.jpg, .jpeg, .png, .webp

Layout

Layout

Both photos are scaled to the same height and placed next to each other. The before photo sets the shape of the panels.

When the shapes differ

Labels

Label background

Each label stays inside its own photo. A label too wide for its side is shortened with an ellipsis, and one with no room at all is left out.

File

File format

JPG (quality 92) suits photos and keeps the file small. PNG is lossless and larger; use it for screenshots or designs with sharp edges.

Preview

The comparison appears here once both photos are added

Add a before photo and an after photo to see them together.

Before and After Image Maker

Operator: Abdulla Al Fahad. How tools are built and checked

A renovated kitchen, a restored photo, a cleaned-up garden, a retouched portrait: the change only lands when people can see both states at once. Posting two separate pictures makes the viewer flip between them, and the two rarely match in size, so the comparison looks careless. One image that holds both, at the same scale and with clear labels, does the job in a single glance.

This maker takes a before photo and an after photo and combines them in one of three ways: side by side at the same height, stacked at the same width, or split, where the left part of the before photo meets the right part of the after photo at a divider you drag across the preview. Labels, a gap, a background colour and the output width are all adjustable, and the result is saved as one JPG or PNG.

Key features

  • Side-by-side, stacked and split layouts
  • Crop or fit for an after photo whose shape differs, with a note that says exactly what happens
  • Divider dragged in the preview or moved with the arrow keys, in 0.5% steps, and used by the download
  • Divider width from 0 to 16 px in any colour
  • Editable Before and After labels, each in one of six positions, as a dark pill, a light pill or plain text with a shadow
  • Output width from 400 to 4000 px, a gap of up to 200 px and a background colour
  • Swap button for photos added in the wrong order
  • JPG or PNG download

How the panels are shaped and filled

The before photo decides the shape of the panels. Side by side, each panel is half of the output width minus the gap, and its height follows the before photo's proportions; stacked, each panel is the full output width; split, the whole picture has the before photo's shape. The after photo is then matched to that panel. If the two photos have the same shape (within 1%), both simply fill their panels. If they differ, you choose: Crop scales the after photo until it fills the panel and trims the overflow evenly from two opposite edges, and Fit shrinks it until all of it shows, leaving bars of the background colour. A note above the preview says which edges are trimmed and by how much, or where the bars are.

The output width can be anything from 400 to 4000 px; the height follows from the layout. Very tall results are refused before drawing when they would pass 50 megapixels or 16,384 px in height, and the message names the largest width that would work. JPG is saved at quality 92 and is the default because both inputs are usually photos; PNG is lossless and larger. The file is named after the before photo, so kitchen.jpg gives kitchen-before-after.jpg.

Each input may be a JPG, PNG or WEBP of at most 25 MB and 50 megapixels, and its type is read from the file's contents rather than its name. Phone photos stored sideways with an EXIF orientation tag are turned upright before anything is measured, so a portrait shot is treated as portrait.

How it works

Each photo is checked by its first bytes and its pixel size, decoded once with its EXIF orientation applied, and reduced to a copy of at most 4 megapixels for the preview. The full-size decode is closed straight away, so two large phone photos do not sit in memory while you adjust settings.

Every setting change produces a plan in output pixels: the output size, and for each photo the exact rectangle of its own pixels to draw and the rectangle on the output where it lands. Side by side, an odd leftover pixel goes to the right panel. In the split layout the divider sits at the chosen percentage of the width, rounded to a whole pixel; the before photo is drawn only to the left of it and the after photo only to the right, each placed against the whole frame. That is why the split shows the matching halves of the same scene rather than two squeezed pictures.

Labels are measured and placed inside their own photo's area, at a margin of 0.6 times the label size. A label that is too wide is shortened with an ellipsis; if a side is too narrow for even a few letters, for example with the divider at 97%, that label is left out rather than spilling over the divider. The label size is a percentage of one photo's width, so switching between layouts keeps labels in proportion to the photos.

When you press Download, a canvas of the full output size is filled with the background colour, then each photo is decoded again from its file at full resolution, drawn, and closed before the next is opened. The divider and labels go on top, the canvas is encoded, and the browser saves the file through a temporary link that is revoked a second later.

Typical uses

  • A decorator shows a living room before and after repainting, split at the point where the old and new wall colours meet.
  • A photo restorer places a scanned, faded print next to the repaired version so a client can judge the retouching.
  • A gardener stacks a spring and a late-summer shot of the same bed taken from the same spot.
  • A developer compares an old and a redesigned web page screenshot side by side, saved as PNG so the text stays sharp.
  • A car detailer posts one split image of a bonnet, dull on the left and polished on the right.

Building one

  1. Add the before photo and the after photo in their boxes. If you put them in the wrong boxes, press Swap before and after.
  2. Pick Side by side, Stacked or Split.
  3. If the photos are different shapes, read the note above the preview and choose Crop or Fit.
  4. Set the output width, and the gap and background colour (or, for Split, the divider width and colour).
  5. For Split, drag across the preview or use the round handle with the arrow keys until the divider sits where the change is clearest.
  6. Edit the label text, positions, size and background, choose JPG or PNG, and press Download.

Example

Two 4032 × 3024 phone photos of a hallway, side by side, gap 20 px, output width 2020 px; then the same pair split at 40% of 1600 px

side by side:
  panel width = (2020 − 20) / 2 = 1000 px
  panel height = 1000 × 3024 / 4032 = 750 px
split:
  height = 1600 × 3024 / 4032 = 1200 px
  divider at 40% of 1600 = 640 px
  scale = 1600 / 4032 = 0.397

What gets drawn

side by side: 2020 × 750 px
  before at x 0 to 1000, after at x 1020 to 2020
  each photo shrunk to 0.248 of its size

split: 1600 × 1200 px
  before: its own pixels x 0 to 1612.8, drawn at x 0 to 640
  after: its own pixels x 1612.8 to 4032, drawn at x 640 to 1600
  4 px divider centred on x 640

Tips for best results

  • Shoot both photos from the same spot with the same zoom. The tool lines photos up by their frames, not by their content, so a step to the side in the after shot shows as a jump at the divider.
  • For a split image, put the divider where the difference is most obvious, not automatically at 50%.
  • If the after photo is a different shape, Crop usually looks better for scenes and Fit is safer when nothing may be cut, such as a document or a full-length portrait.
  • Light pills read well on dark photos and dark pills on bright ones; plain text with a shadow suits busy images where a pill would hide detail.
  • Keep the output width at or below twice the photos' width side by side; past that the photos are enlarged and a note will warn that they may look soft.

Things to check before you rely on it

Crop removes real content. With a 4:3 landscape before photo and a 3:4 portrait after photo, Crop cuts 43.8% of the after photo from its top and bottom; check the note before you download if the cut-off part matters.

The before photo always sets the shape. If you want the after photo's shape instead, add the photos the other way round and change the label texts to match.

Different exposure or white balance between the two shots can make a change look bigger or smaller than it is. Edit both photos the same way first if the comparison has to be fair.

A PNG of two large photos can be several times the size of the JPG. Use PNG only when sharp edges matter.

The divider and the gap use one colour each, applied to the whole image; they cannot fade or carry text.

Common errors and how to fix them

A scanned BMP is refused as the before photo, with a note naming JPG, PNG and WEBP as the accepted types.
Open the picture in an image editor and export it as JPG or PNG, then add the new copy. Renaming the file does not help, because the tool reads the file's first bytes to decide what it is.
A note under the preview says the comparison is too large and suggests a narrower output width.
Tall results come mostly from the stacked layout with portrait photos, whose height grows quickly with the width. Enter the width the note suggests. If the before photo is so narrow that even 400 px is too tall, the note says so and names a shorter layout when one would fit; side by side is the shortest of the three, so in that layout the only fix is to crop the before photo to a wider shape.
"The output width must be a whole number from 400 to 4000 px."
The width box is empty, has a decimal, or is out of range. The preview keeps the last valid width until you correct it.
The download stops because the before or after photo could not be opened again for the full-size image.
The comparison is drawn from the original files, which are decoded afresh while the download is built. A photo that a sync app replaced, or that you saved an edit over after adding it, can fail that decode. Put it back in its Before photo or After photo box and press Download again.

Best practices

  • Line the two shots up before you start: same position, same focal length, same orientation.
  • Choose an output width close to where the image will be shown; 1600 to 2000 px is plenty for most posts and keeps the file small.
  • Keep label wording short. "Before" and "After", or two dates such as "March" and "June", read better at a glance than a sentence.
  • Keep your original photos. The combined image is a new file; nothing about the originals is changed.

Choosing between side by side, stacked and split

Side by side keeps both photos whole and is easiest to read on wide screens. It halves each photo's width, so landscape photos become small; two 4:3 photos at 2020 px wide with a 20 px gap give a 2020 × 750 image.

Stacked suits landscape photos on phones, where a tall image fills the screen. It doubles the height instead: the same pair at 1000 px wide gives 1000 × 1520 with a 20 px gap.

Split is the strongest way to show a change to one scene, because the eye compares the two sides across a single line. It only works when the two shots line up closely; with mismatched framing the divider shows a visible jump.

Memory use with two large photos

Decoded pixels take four bytes each, so a 12-megapixel phone photo fills about 48 MB of memory once opened, and a pair about 96 MB. To keep that down, the preview works from copies of at most 4 megapixels, and the download never holds both full-size photos at the same moment: one is opened, painted onto the output canvas and released before the other is opened. The output canvas is emptied as soon as the file has been written; a 4000 × 1500 px comparison needs about 24 MB while it exists.

None of this involves a server. The photos travel from your disk into this tab, and the only thing that comes back out is the comparison file you save. The divider position, label text and colours last only while the page stays open, so a reload starts again from the default Before and After labels.

Frequently asked questions

Does the download use the divider position from the preview?

Yes. The preview and the download are drawn from the same plan, so the divider lands at the same percentage of the width, rounded to a whole pixel of the output.

Can I make an interactive slider for a web page?

No. The result is a still JPG or PNG with the divider fixed where you left it. An interactive slider needs both photos and some code on the page itself.

Why does my portrait phone photo appear sideways in other tools but upright here?

Many phones save the pixels sideways and add an EXIF tag saying how to rotate them. This tool applies that tag when it decodes the photo, so the comparison and the saved file are upright.

Is the photo quality reduced?

Only by the scaling you choose and the JPG encoding. The download is drawn from full-resolution decodes, not from the reduced copies used for the preview; pick PNG to avoid JPG compression.