Merge Two Images Online
Combine two photos side by side or stacked — preview updates instantly, download when ready.
Image 1
Image 2
Layout
Alignment
Gap between images 0 px
How to merge two images
- Upload your first image using the Image 1 drop zone — click it or drag a file directly onto it.
- Upload your second image the same way using Image 2.
- Choose a layout: Side by side places the images next to each other horizontally; Stacked places them one above the other.
- Use the Alignment buttons to control how images are aligned when they have different dimensions — Top/Middle/Bottom for side-by-side, Left/Center/Right for stacked.
- Drag the Gap slider to add space between the two images (0–100 px).
- The preview canvas updates automatically after every change.
- Click Download as PNG to save a lossless image, or Export as PDF to save a single-page PDF.
Layout options explained
Side by side (horizontal)
Both images are scaled to the same height while keeping their original aspect ratios. The result canvas is as wide as the sum of both scaled widths plus the gap. Best for comparing two versions of a photo, landscape panoramas, or product comparisons.
Stacked (vertical)
Both images are scaled to the same width while keeping their original aspect ratios. The result canvas height is the sum of both scaled heights plus the gap. Best for before/after portraits, step-by-step process photos, or social media carousels.
Exporting as PDF
The Export as PDF button creates a single-page PDF whose dimensions exactly match the merged image — so there is no white margin and no cropping. The page orientation (portrait or landscape) is set automatically based on whether the merged result is taller or wider.
This is useful when you need to send a combined image as a document — for example attaching two ID scans, combining a receipt with a photo, or submitting a before/after comparison as a printable report. The PDF is generated entirely in your browser using jsPDF; nothing is uploaded to any server.
If you need the image embedded in a multi-page PDF or at a specific paper size (A4, Letter), you can open the downloaded PNG in any PDF editor or word processor and insert it into a page.
About this tool
Everything runs in your browser using the HTML5 Canvas API — your photos are never uploaded to any server. Supports JPEG, PNG, WebP, and GIF inputs. Output is available as PNG (lossless) or PDF (single page, image-sized). Common uses include before/after comparisons, photo collages, product shots, ID document scans, and social media posts.