How to put two pictures side by side, with sizes that fit

September 27, 20267 min readBy the FreeImageTools teamMeasured and sourced
A photo of the Bahamas from orbit placed side by side with the Webb telescope's Cosmic Cliffs image, with the file size of the result in three formats

Putting two pictures next to each other sounds like the easiest job in image editing, and then the result comes out with one photo tiny, a strange black gap, or a file too big to send. Most of that comes down to a little arithmetic about sizes and ratios. Here it is, with the numbers from merging two real photos.

THE SHORT ANSWER
How do I put two pictures side by side?
Add both to Merge Images, choose Side by side, pick a gap and background, and download.
How big will the result be?
Side by side, the widths add up at a shared height. Two 1200 × 800 photos with an 8 pixel gap make 2408 × 800.
Will it fit an Instagram post?
If the combined ratio is between 1.91:1 and 4:5. Two portrait photos side by side fit. Two landscape photos side by side get cropped.
Why is the file so big?
The merge is saved as PNG. Ours was 3.95 MB as PNG and 644 KB as a quality 90 JPEG.
SIDE BY SIDE BY THE NUMBERS
2591 × 800
pixels: a 1200 × 800 photo and a 1200 × 694 photo side by side at a shared height
3.95 MB
the merged photo as a PNG, straight out of the browser
644 KB
the same merge as a JPEG at quality 90, about a sixth of the PNG
1.91 : 1
the widest shape an Instagram post keeps without cropping

The one rule: ratios add

To sit two photos side by side without bars or stretching, they must share a height. Once they do, their widths simply add up. That makes the shape of the result easy to predict: side by side, the aspect ratios add. A 3:2 photo is 1.5 times as wide as it is tall, so two of them side by side come out 3 times as wide as tall, a 3:1 strip.

Stacking works the same way turned on its side. The photos share a width, their heights add, and the result gets taller. Two 16:9 photos stacked come out at 16:18, almost square.

Two photos, eachSide by sideStacked
Square, 1:12:11:2
Portrait, 4:58:5, or 1.6:14:10, or 1:2.5
Phone portrait, 3:46:4, or 1.5:13:8
Landscape, 3:23:13:4
Wide, 16:932:9, or 3.6:116:18, about 0.89:1
Phone screenshot, 9:1618:16, about 1.13:19:32

Which pairs fit an Instagram post

Instagram's help centre says a photo keeps its full shape if its aspect ratio is between 1.91:1 and 4:5, and anything outside that range is cropped to fit. Put against the table above, that gives a quick rule for a two photo post:

PairLayoutCombined shapeFits a post?
Two portraits, 4:5Side by side1.6:1Yes
Two phone portraits, 3:4Side by side1.5:1Yes
Two phone screenshots, 9:16Side by side1.13:1Yes
Two squaresSide by side2:1Cropped slightly
Two landscapes, 3:2Side by side3:1Cropped heavily
Two wide photos, 16:9Stacked0.89:1Yes
Two landscapes, 3:2Stacked0.75:1Cropped slightly

If your pair falls outside the range, crop each photo first so the combination lands inside it. Two 3:2 landscape shots, for example, fit side by side once each is cropped to 4:5, because 4:5 plus 4:5 is 1.6:1. The Crop tool has fixed ratios for exactly this.

What we measured

We merged two public domain NASA photos the way our tool does it: the Bahamas seen from the space station at 1200 × 800, and the Webb telescope's Cosmic Cliffs at 1200 × 694, with an 8 pixel white gap. Then we saved the result in three formats from the same browser engine a visitor would use.

LayoutSize in pixelsPNGJPEG, quality 90WebP, quality 85
Side by side2591 × 8003.95 MB644 KB413 KB
Stacked1200 × 15023.48 MB649 KB432 KB

The side by side PNG was 6.1 times the size of the JPEG. PNG is lossless, which is right for screenshots, logos and anything with a transparent background, but for two photos it stores detail nobody can see. For email, messages or a post, convert the merged image with PNG to JPG or PNG to WebP before you share it.

Notice also that the Cosmic Cliffs photo became 1383 pixels wide in the side by side version, not 1200. To match heights, our tool scales every photo to the height of the tallest one, so a shorter photo is enlarged. Here the change was small, but if you pair a 4000 pixel photo with a 600 pixel one, the small one gets blown up almost seven times and looks soft next to its neighbour. Resize both to a similar size first with the Bulk Resizer.

Gaps, borders and backgrounds

  • A white gap reads as a thin frame on light backgrounds and on paper. Around 8 to 16 pixels suits most photos.
  • A black gap suits dark mode feeds and night photos.
  • No gap makes the two photos read as one scene, which suits panoramas and before and after shots taken from the same spot.
  • Transparent only matters if you keep the result as PNG, since JPEG has no transparency and fills it with a solid colour.

One detail we fixed along the way: a canvas cannot read a website's CSS colour variables, so a merge tool that paints its gap with one ends up with a black gap whatever you intended. Ours sets white, black or transparent explicitly, so the gap is always the colour you chose.

Making a good before and after

  1. Match the framing. Take both photos from the same spot, or crop both to the same area and ratio.
  2. Match the size. Resize both to the same pixel dimensions so neither is enlarged.
  3. Keep the order predictable. Before on the left or on top, after on the right or below.
  4. Label outside the photo if you can. A caption under the image is easier to read than text on top of it. If you do add text, the Add Text tool works on the merged file.

More than two photos

Our Merge Images tool takes up to six. Side by side and stacked work for any number, though six in a row makes a very long strip. The grid layout places photos in two columns, giving each the same cell and centring it, which is the tidiest option for three to six photos. For a designed layout with borders and rounded corners, the Collage Maker is the better fit.

Combine your photos

Side by side, stacked or in a grid, with your choice of gap and background. It runs in your browser, so your photos stay on your device.

Open Merge ImagesCollage MakerPNG to JPG

The bottom line

Side by side, aspect ratios add. Stacked, the result gets taller by the same logic. Check the combined shape against where it is going, match the sizes before you merge so nothing is enlarged, and convert the PNG to JPEG or WebP before sharing. In our test that last step alone cut the file from 3.95 MB to 644 KB.

Frequently asked questions

How do I put two pictures side by side?+
Add both photos to a merge tool such as our Merge Images, choose the side by side layout, pick a gap size and background colour, then download the combined image.
How do I make both photos the same height?+
Our tool scales every photo to the height of the tallest one. For the sharpest result, resize both photos to a similar size before merging, so the smaller one is not enlarged.
What size is a side by side photo?+
The widths add at a shared height. Two 1200 × 800 photos with an 8 pixel gap make a 2408 × 800 image. Stacked, the heights add at a shared width.
Will a side by side photo fit on Instagram?+
Instagram keeps photos between 1.91:1 and 4:5 and crops anything outside that. Two portrait photos side by side fit. Two landscape photos side by side come out around 3:1 and get cropped.
Why is my combined image so large?+
Merge tools usually save PNG, which is lossless. Our side by side merge was 3.95 MB as PNG and 644 KB as a quality 90 JPEG, so convert it before sharing.
Can I put pictures on top of each other instead?+
Yes. The stacked layout scales every photo to the width of the widest one and places them one above the other.
How many pictures can I combine?+
Our Merge Images tool takes up to six. The grid layout arranges them in two columns, which is the neatest option for three or more.

Sources and method

Merges were built in headless Chrome with the same layout rules as the Merge Images tool: every photo scaled to the tallest height for side by side, or the widest width for stacked, with an 8 pixel white gap. Test photos: ISS071-E-449837, the Bahamas from the International Space Station (NASA), and the Webb telescope's Cosmic Cliffs in Carina (NASA, ESA, CSA, STScI), both resized to 1,200 pixels wide. File sizes come from the browser's own PNG, JPEG and WebP encoders. Instagram's supported ratios are taken from its help centre.

  1. Instagram Help Center, image resolution of photos you share on Instagram
  2. NASA Image and Video Library, the Bahamas from the space station
  3. NASA Image and Video Library, Webb's Cosmic Cliffs in Carina
  4. Aspect ratio (image), Wikipedia
CITE THIS ARTICLE

Merging a 1200 × 800 photo and a 1200 × 694 photo side by side produced a 2591 × 800 image that was 3.95 MB as PNG and 644 KB as a quality 90 JPEG. FreeImageTools, "How to Put Two Pictures Side by Side (Sizes That Fit)", September 27, 2026, https://freeimagetools.org/blog/combine-images-side-by-side

Keep reading