How to combine photos into one image
You have two or more pictures, such as a before and an after, and you want to send them as a single file. This guide shows how to combine photos into one image, which layout to pick, and what to do when the sizes do not match or the result comes out huge.
Combine photos into one image: pick the layout first
The tool called Merge images offers three layouts: ‘Side by side’, ‘Stacked’ and ‘Grid’. The choice depends on what the reader should do with the result. Two pictures that are meant to be compared, such as a room before and after painting, belong next to each other. A set of screenshots or receipts that should be read from top to bottom belongs in a column. Six or nine holiday photos that should be seen at once belong in a grid.
You can add from 2 to 50 images. JPG, PNG, WebP, GIF, BMP, HEIC, AVIF and SVG files are accepted, so photos straight from an iPhone work too. The first time a HEIC photo is added, the page loads a decoder of about 3 MB, and only once. Everything is drawn on your device, and the tool says your files stay there. So to combine photos that are private, no upload is involved.
The steps, with the exact labels
Add the pictures with ‘Choose files’ or drop them on the page. A preview appears next to the options and updates every time you change one. The order in the list is the order in the result, so drag the rows, or use ‘Move up’ and ‘Move down’, before you do anything else. ‘Remove’ takes a picture out of the list.
- Choose the ‘Layout’. For ‘Grid’, also choose the number of ‘Columns’, from 2 to 6.
- Set ‘Gap (px)’, ‘Outer padding (px)’ and ‘Rounded corners (px)’, or leave them as they are.
- Pick a ‘Background’ and, under ‘Save as’, JPG, PNG or WebP.
- Check the line under the preview that gives the size in pixels, then press ‘Merge images’.
Before and after pairs: side by side or stacked
When you combine photos of the same thing taken from the same spot, ‘Side by side’ works best when the photos are landscape, and ‘Stacked’ works best when they are portrait. The reason is shape: two landscape photos next to each other make a very wide strip, but two portrait photos next to each other make something close to a normal landscape picture. Put the old picture on the left or on top, because most readers go in that order.
If the two photos came from the same phone, they have the same size and everything lines up. If one was taken later with a different camera or zoom, the framing will differ even after the tool has matched the sizes. In that case trim both to the same shape first with Crop image, so that the wall, the door or the plant sits in the same place in both halves. A gap of 10 px, which is the starting value, is enough to separate the halves; 0 makes them touch, which can look like one photo.
Different sizes and different orientations
In ‘Side by side’ every picture is scaled to the height of the shortest one, and in ‘Stacked’ to the width of the narrowest one. Nothing is stretched, because the proportions of each picture are kept. But the smallest photo sets the scale for everybody, and the rest are reduced. Take one photo of 1600 × 1200 and one of 1200 × 900: side by side, both end up 900 px high and the result is 2,410 × 900 px with the default gap. A tiny thumbnail among large photos would shrink the whole strip down to its height, so replace it or enlarge it with Resize image beforehand.
A portrait photo next to a landscape one is allowed. Both get the same height, so the portrait one is narrow and the landscape one is wide. That is normal, but it looks uneven. If you want an even look, use the grid.
In ‘Grid’ the cell shape comes from the typical picture: the tool takes the median width and the median shape of your photos. Under ‘In each cell’ you then choose between ‘Fit whole image’, which keeps each picture complete and shows the background around it, and ‘Fill and crop’, which is the starting choice, covers the whole cell and trims the edges from the center. If most of your photos are landscape and one is portrait, ‘Fill and crop’ will cut off the top and bottom of that one, so check faces and text in the preview. A small photo in a big cell is enlarged to fit, and it can look soft.
Spacing, corners and background
‘Gap (px)’ runs from 0 to 100 and starts at 10. ‘Outer padding (px)’ runs from 0 to 200 and starts at 0, which means the pictures reach the edge of the result. ‘Rounded corners (px)’ runs from 0 to 200 and is applied to each picture separately, not to the whole result. These three values are measured in real pixels of the result, so on a large result a gap of 10 is thin, and 30 or 40 is easier to see.
The ‘Background’ is either a color or ‘Transparent’. White, black, light gray and cream are ready to click, and the color picker takes any other color. The background shows in the gap, in the padding, behind rounded corners, around pictures in ‘Fit whole image’ cells and in empty cells when the count does not fill the last row of a grid. ‘Transparent’ only survives in PNG and WebP. If you choose JPG, the tool notes that JPG has no transparency and fills the background with white.
Output size and format, and what to do when the result is too big
The result is saved as merged-image with the extension of the format you picked. For photos, JPG is the usual choice and WebP often gives a smaller file; PNG is for graphics with sharp edges or when you need the transparent background. Under ‘Quality’ the slider goes from 10 to 100 and starts at 90. It disappears for PNG, which has no quality setting here.
A merged picture grows fast, so before you combine photos, think about the final size. Two phone photos of 4032 × 3024 side by side would be 8,074 × 3,024 px, about 24 megapixels. Browsers can only handle about 16.7 megapixels, with at most 16,383 px on one side, so the tool scales the pictures down until the result fits. In this example the final size is roughly 6,700 × 2,500 px. The gap and padding keep their pixel values, and the line under the preview and the message after merging both say that the pictures were scaled down.
If the file you get after you combine photos is still too heavy for an upload form or a message, there are three ways out, and you can combine them. Lower the ‘Quality’ a little. Switch the format from PNG to JPG or WebP. Or make each photo smaller before merging with Resize image, which also avoids the automatic scale-down. You can also run the finished file through Compress image afterward.
Limits and things this tool does not do
There is one order for all pictures and one set of options for the whole result. You cannot give a single photo its own border, caption or different gap, and there is no text or arrow to mark the before and the after. If you want labels, add them in another program or write them in the message that goes with the image.
Details stored inside the photos, such as EXIF data and GPS location, are not copied into the merged image, as the tool says on its page. That is useful when you share a photo, but it also means that the date and camera are gone from the result. Keep the originals. The tool makes a still picture, not an animation.
If a file fails, a message names it, for example when it is not an image or is damaged. A very large set of big photos can also run out of memory on a phone. The message then suggests fewer or smaller files, and merging in two steps, a few photos at a time, also works.
Questions and answers
Can I combine photos of different sizes?
Yes. Side by side matches the height of the shortest photo and stacked matches the width of the narrowest one, keeping each photo's proportions. In a grid, each photo is fitted into a cell of the same size. Resize the odd one out first if you do not want everything reduced.
How many photos can go into one image?
From 2 to 50. If you add more, only the first 50 are taken, and a message tells you so.
Why is my merged image smaller than the originals added together?
Browsers limit the picture to about 16.7 megapixels and 16,383 px per side. When the layout would go beyond that, the pictures are scaled down, and a note says so.
Can I change the order after adding the photos?
Yes. Drag the rows on a computer, or use the up and down buttons on any device. The preview follows right away.
Does the merged image keep the location of my photos?
No. EXIF data and GPS location are not copied into the merged image.
More guides
- How to open iPhone HEIC photosiPhone photos will not open on your PC, or an upload form rejects them? Convert HEIC to JPG in your browser, choose the quality, or make the camera save JPG.
- JPG, PNG or WebP: choosing the right image formatPick JPG, PNG or WebP by what is in the picture: photos, logos, screenshots or transparent graphics. Quality, file size, compatibility and AVIF explained.
- How to remove the background from a photo and get a clean cut-outCut a person, product or pet out of a photo, keep it transparent or add a new backdrop, check the edges and save it in the right format and size.