Merge Two Images Online — Side by Side or Stacked
Combine two images side by side or stacked vertically online. Free, browser-based, outputs PNG.
Merging images is useful for creating before-and-after comparisons, combining product shots, building contact sheets, or assembling multi-image social media posts. This tool combines two images either side by side (horizontal layout) or stacked vertically. The output canvas is sized to accommodate both images at full resolution. If the images have different heights (side by side) or widths (stacked), they are aligned to the top/left edge. The output is always a PNG file.
How to use
- Upload the first image and the second image using the two upload areas.
- Choose the layout: 'Side by side' places them horizontally, 'Stacked' places them vertically.
- Click 'Merge Images' and download the combined PNG.
FAQ
What happens if the two images have different sizes?
If merging side by side, the output height equals the height of the taller image. The shorter image is placed at the top and any remaining space below is filled with white. If merging stacked, the output width equals the width of the wider image. The narrower image is placed at the left and any remaining space to the right is filled with white.
Why is the output always PNG?
PNG is the safest format for merged images because it supports lossless compression and full transparency. If either input image contains transparent areas, PNG preserves them. JPEG would compress the merged image with visible artefacts at the boundaries between the two images.
Can I merge more than two images?
This tool combines exactly two images. To merge more, merge the first two, download the result, then merge that result with the third image, and so on.
Can I add a gap or padding between the two images?
This tool places the images directly adjacent with no gap. For a gap between images, use an image editor that supports canvas expansion and layer positioning.
What is the maximum file size per image?
Each image can be up to 50MB. Both images must be JPEG, PNG, or WebP format.
Is the merging done in my browser or on a server?
Merging runs entirely in your browser using the Canvas API. Your images are never uploaded to any server.