← Back to Home

🖼️ Merge Images

Merge horizontally, vertically or as a grid, with spacing and alignment

How to merge images in three steps

The screenshot below was taken in this tool with a real file and the stated settings — it is not a mock-up.

  1. Upload the imagesSelect several files; the order list appears first.
  2. Set the order and gapUse the arrows to reorder; this run stacks A above B with an 8 px gap.
  3. Merge and downloadPress “Merge”; the vertical result measures 1200 × 1608.
Merge result: test scene A stacked above scene B with an 8-pixel gap.
Captured: Input: specimen-a-1200x800.png and specimen-b-1200x800.png (both 1200 × 800). Settings: vertical, gap 8 px. Output: PNG, 1200 × 1608.
📁
Click or drag an image here
Select several images (hold Ctrl)

Merged result

Result
Padding uses this colour when ratios differ
Processing…

How to merge images

  1. Click the upload area to select several images at once (hold Ctrl to multi-select)
  2. Use ↑ ↓ under each thumbnail to reorder, ✕ to remove
  3. Choose a direction: vertical for long images, horizontal for comparisons, grid for posters
  4. Set spacing, background colour and alignment, then click "Merge"

How it works

Merging first computes the canvas size: horizontal uses the sum of widths plus spacing with the tallest height; vertical is the reverse; grid takes the maximum width and height per row and column.

Each image is then drawn at its coordinates using your chosen alignment. When ratios differ, the shorter image is padded with your background colour.

Everything is drawn onto a new canvas; originals are never modified. The theoretical size limit comes from the browser, typically around 16000 px.

Common use cases

It works best for:

Chat history long images

Stack several screenshots into one complete conversation

Before and after

Place before and after side by side

Grid posters

Nine-grid layouts for Moments and Xiaohongshu

Product detail shots

Combine detail shots from several angles into one display

Specifications

Input formatCommon formats incl. HEIC / AVIF / ICO / SVG (multiple allowed)
Output formatPNG
Merge modeHorizontal / vertical / grid (2–6 columns)
AdjustableSpacing 0–60 px, background colour, alignment
ReorderingSupported via ↑↓ buttons

FAQ about merging

How many images can I merge?

There is no hard limit, but total pixels must stay under the browser canvas ceiling (roughly 16000×16000). A few dozen ordinary photos are usually fine.

What if the images differ in size?

Gaps are filled with the background colour. To unify them, crop every image to the same ratio with the Crop tool first.

Can I compress the merged result?

Yes. Compress the result afterwards, or shrink each source image before merging.

Can it sort them automatically?

Images follow the order you selected them; use the ↑ ↓ buttons to adjust. Filename sorting is planned for a later version.

Nothing is resized — that is the whole design

Merging here is a paste operation, not a layout operation. Each source image is drawn at its own pixel size into a larger canvas; no scaling, no resampling, no per-image zoom. The output dimensions are therefore determined entirely by the inputs:

  • Vertical: width becomes the widest image, height becomes the sum of all heights plus the gaps.
  • Horizontal: height becomes the tallest image, width becomes the sum of widths plus the gaps.
  • Grid: every cell is the size of the largest image in the set, rows equal ceil(count / columns), and columns are limited to 2–6.

This is why a vertical stitch of screenshots taken at the same width joins seamlessly, and why a stitch of two phone photos and one desktop screenshot produces visible background bars beside the narrower images. The bars are not a bug; they are the empty space left by the widest image. Alignment controls where each image sits inside that space.

Plan for the gap before you merge

The gap slider runs from 0 to 60 px and defaults to 8. Gaps are filled with the background colour, so a set of dark screenshots should be stitched on black and a set of document scans on white; the default white will outline dark images in a way that looks like a rendering fault. Set gap to 0 for a continuous long screenshot, and to 8–16 when you want the individual panels to remain visibly separate.

For comparison shots the horizontal direction with a gap of about 12 reads well: the eye treats the gap as a divider rather than a mistake. For a poster-style grid, equalise the inputs first. Mixed aspect ratios in a grid leave coloured bands inside each cell, and no alignment setting removes them.

The canvas ceiling is the real limit

The browser gives a canvas a maximum height, typically 32,767 px in Chromium-based browsers, and a maximum total area. A vertical stitch of six 3000 × 3000 screenshots asks for 3000 × 18,000 — about 54 million pixels — which is where memory pressure starts to show. Symptoms are a blank preview, a black result, or a download that opens as a corrupted image. The page's own 3000 px working limit applies to each source, not to the result, so the result can exceed it.

The reliable workaround is to stitch in stages: join images 1–3, download, then join that result to images 4–6. Each intermediate file is smaller than the final one, and the browser never allocates the full height at once.

Where this tool stops

  • No rotation or flip. A sideways photo must be corrected before it is added.
  • No per-image scaling. If one screenshot is 1200 px wide and another 2400, Resize the narrower one first, or accept the bars.
  • No automatic overlap detection. Overlapping long screenshots are pasted end to end, so the duplicated band appears twice. Crop the overlap out of one file first with Crop Image.
  • No layering or opacity. Images are placed side by side, never on top of each other.
  • No metadata. The output is a fresh PNG; EXIF from the sources is not carried over.

Output is always PNG, which keeps text edges crisp and preserves transparency in the gap areas if the background colour is left transparent. For a photographic collage that will be uploaded, run the PNG through Compress Image afterwards.

Two more questions this page gets

Why is my vertical stitch wider than the individual screenshots?
Because one image in the set is wider than the others, and the canvas takes the maximum width. Either resize the widest file down, or crop the others to the same width, and the bars disappear.
Can I reorder images after merging?
The order is fixed once the PNG is downloaded. Reorder the thumbnails before merging; the arrows change the sequence used by every layout mode.