Skip to content
Image Guides

How to Merge Images Into One — Side by Side, Stacked or as a Collage

Combine several photos into a single picture without uploading them anywhere. Choose the right layout, keep sizes consistent, avoid white edges and cropped faces, and export a file that is small enough to share.

GSGulzar Shaikh6 min read
How to Merge Images Into One — Side by Side, Stacked or as a Collage
In this guide
  1. Pick the layout first
  2. How to merge images step by step
  3. The settings that matter
  4. Common jobs
  5. Keep the file size reasonable
  6. Frequently asked questions
  7. Summary

A before-and-after comparison. The front and back of an ID card that has to go into one upload box. Six screenshots of a long chat. A square collage for a birthday post. All of these come down to the same job: taking several images and placing them in one picture.

You do not need an editing app for it. This guide explains the four layouts, the settings that decide whether the result looks tidy or clumsy, and how to keep the final file a sensible size — all with the free Merge Images tool, which runs in your browser so your photos are never uploaded.

Pick the layout first

Most disappointing results come from choosing the wrong layout for the photos. Decide this before you touch any slider.

Four ways to combine the same photos: side by side with a common height, stacked with a common width, an even grid and a collage template

Side by side

Images sit in a single row and share one height. Best for before and after pairs, product comparisons and panoramas made from consecutive shots. Because every image is scaled to the same height, a wide result is normal — a row of five photos is much wider than it is tall.

Stacked

The same idea turned 90°: one column, one shared width. This is the layout for long screenshots, receipts that were photographed in pieces, and the front and back of a document. Keep the spacing at 0% for screenshots so the join is invisible.

Grid

Equal cells in rows and columns, with the last row centred when the count does not divide evenly. Use it for product listings, a set of similar photos, or a contact-sheet overview. Cells are sized from the median image, so one unusually large or tiny photo does not distort the rest.

Collage

A template that fits the number of photos you have — for example one large picture beside two small ones — on a canvas shape you choose. Pick 1:1 for a square post, 4:5 for a portrait feed post, 9:16 for a story or reel and 16:9 for a thumbnail. If you are preparing images for a specific platform, our guide to image sizes for social media lists the dimensions to aim for.

How to merge images step by step

  1. Add your images. Drag them onto the page, choose them from your phone, or paste from the clipboard. JPG, PNG, WebP, GIF, SVG, AVIF, TIFF and iPhone HEIC photos can be mixed freely, up to 50 at a time.
  2. Choose a layout and watch the live preview update.
  3. Put the images in order. Drag a thumbnail by its handle, or use the arrow buttons under it — they work from the keyboard too. The number on each thumbnail is its final position. Use the rotate button for any picture that is sideways.
  4. Adjust the look: spacing, border, background and rounded corners (details below).
  5. Pick the format — JPG for photos, PNG for graphics or transparency, WebP for the smallest file — then click Merge Images and download.

The settings that matter

Match image sizes

For side by side and stacked layouts this scales every image to the same height or width, so edges line up. Switch it off only when you want each image to keep its own size; you can then align them to the start, centre or end.

The tool scales to the largest image rather than the smallest, so you never lose detail from your best photo. The trade-off is that small images are enlarged — if one of them looks soft, replace it with a higher-resolution version.

Fill the cell or show the whole image

In grid and collage layouts each cell has a fixed shape. Fill the cell crops each photo evenly from the centre so there are no gaps; Show whole image keeps everything visible and leaves background colour around it. For portraits, choose "show whole image" or check the preview before you merge — a centred crop can cut off a head that sits near the top of the frame.

Spacing, border and corners

These sliders are percentages of the typical image size, not pixels. That means a 6% gap looks the same whether your photos are 800 or 8,000 pixels wide. A little spacing (2–4%) makes collages look deliberate; for stitched screenshots and panoramas keep it at 0%.

Background and transparency

White is the safe default. Black suits dark photography. A custom colour can match your brand or a slide template. If you need a transparent background, choose Transparent and export as PNG or WebP — JPG cannot store transparency, so it is saved with a white background instead.

Common jobs

Before and after

Use side by side, 2–3% spacing and a white background. Make sure both photos are taken from the same angle and distance; the layout cannot fix a mismatch in the photos themselves.

Both sides of an ID or card

Use stacked, leave Match image sizes on, add a small border, and export as JPG. Only upload identity documents to services you trust, and consider covering sensitive numbers first. Because the merge happens in your browser, the scan is not sent anywhere while you build the picture.

A long chat or web page

Take overlapping screenshots in order, add them in order, use stacked with 0% spacing. If the pieces overlap, crop each one first with the Crop Image tool so the repeated part is removed.

A square collage for social media

Choose collage, the 1:1 canvas, three to six photos, 2% spacing and a little corner rounding. Try the different styles — the layout that looks best usually depends on which photo is the strongest, because the first large cell goes to the first image in your list.

Keep the file size reasonable

Merged pictures get big quickly: four 12-megapixel photos in a row is a very large image. Before sharing:

  • Export as JPG at 85–92% or WebP for photos; use PNG only when you need transparency or sharp text.
  • If a form has a size limit, run the result through the Compress Image tool, or read our guide to reducing image size in KB.
  • If the picture is too large in pixels, resize it afterwards.
  • Browsers cap the size of the canvas they will draw, especially on phones. When a merge would exceed it, the tool scales the result down to the largest size that works and tells you the final dimensions.

Need a document rather than a picture? Several photos can also be combined into one PDF with Image to PDF, one image per page.

Frequently asked questions

Are my images uploaded to a server?

No. Decoding, layout and export all happen on a canvas in your own browser. You can confirm this by going offline after the page has loaded — the tool keeps working.

Can I merge images of different sizes or formats?

Yes. Formats can be mixed, and sizes are handled by the layout: side by side and stacked scale images to a common height or width, while grid and collage fit each image into a cell.

Why is my merged image smaller than I expected?

Very large results are reduced to stay within the browser's canvas limit, which is lower on phones. The tool shows the final dimensions after merging.

How do I change the order of the images?

Drag a thumbnail by its handle or use the arrow buttons beneath it. The number on each thumbnail shows its position in the result.

Which format should I export?

JPG for photos you will share or upload, PNG when you need transparency or crisp text and graphics, and WebP for the smallest file where the destination supports it.

Summary

Choose the layout that matches the job — side by side for comparisons, stacked for screenshots and documents, grid for sets, collage for posts — keep image sizes matched, add a touch of spacing where it helps, and export in a format that suits the destination. Try it with the free Merge Images tool.

Try it now — free, no sign-up

The tools mentioned in this guide, ready to use in your browser.

All guides
  • merge images
  • combine photos
  • photo collage
  • join images
  • side by side
  • long screenshot

Keep reading

Image Guides

Image Sizes for Social Media — A Practical Guide

How to prepare images for Instagram, Facebook, X, LinkedIn and YouTube: aspect ratio versus resolution, a crop-then-resize workflow, and why to check each platform's current specs.

4 min readRead
Image Guides

How to Reduce an Image to 20 KB, 50 KB or 100 KB

Why forms ask for tiny images, what actually shrinks a photo or signature, and how to get a picture under a size limit in your browser while keeping it as clear as possible.

4 min readRead
Image Guides

Why Is My PNG So Large? How to Make PNG Files Smaller

PNG files are often several times bigger than the same image as a JPG or WebP. Here is why, when that is fine, and how to shrink them without ruining screenshots, logos or photos.

4 min readRead