Skip to main content

Image Merger

Merge multiple images in split layouts (2 or 4 images)

Image 1
Image 2

Merged result

Upload all 2 images, choose your layout and export settings, then select Merge Images. Your preview and download will appear here.

Was this Image Merger helpful?

Help us keep tools reliable, fast, and bug-free.

What you can do with Image Merger

  • Combine four photos
  • Join two images

How this media processing works

Combine two or four images into a single picture — side by side, stacked, or in a 2×2 grid — and export it as PNG, JPEG, or WebP.

Example input

Two 800×600 photos, layout: 2 images, orientation: horizontal, resize: preserve original

Example output

One 1600×600 image saved as merged-image-<timestamp>.png

Practical workflow

  1. Pick a layout: 2 images or 4 images (always a 2×2 grid).
  2. For the 2-image layout choose horizontal (side by side) or vertical (stacked).
  3. Click the upload control in each slot; every slot must be filled before merging.
  4. Choose how sizes are handled — keep originals, normalize to a preset (512, 1024, 1920×1080, 2048, or custom), or set each slot width and height in Custom Size — then pick PNG, JPEG, or WebP, click Merge Images, and download.

Common use cases

  • Put a before-and-after pair next to each other for a product page or social post.
  • Build a four-photo collage from screenshots without opening a desktop editor.
  • Stack two tall mobile screenshots into one image for documentation or bug reports.

Important notes and limitations

  • Merging happens on an HTML canvas in your browser; the images are never uploaded.
  • The quality slider (default 92%) applies to JPEG and WebP only — PNG output is always lossless.
  • Changing the layout clears the loaded images and the merged result, so choose the layout first.
  • Each PNG, JPEG, WebP, GIF, or BMP input is limited to 10 MB and 16 megapixels; all inputs together are limited to 32 megapixels. The output canvas is limited to 32 megapixels and 16,384 pixels per side, with limits checked before image decoding or canvas allocation.
  • The canvas background is white; there are no transparency, background-color, or spacing controls. Changing output settings clears the result until you merge again.

ImageMagick & FFmpeg CLI image stitching commands

ImageMagick horizontal append (side by side)

magick input1.png input2.png +append merged_horizontal.png

Combines two images horizontally into a single output image using ImageMagick.

ImageMagick vertical append (top to bottom)

magick input1.png input2.png -append merged_vertical.png

Stitches images vertically into a single column, automatically aligning widths.

FFmpeg horizontal image stack

ffmpeg -i img1.png -i img2.png -filter_complex hstack output.png

Merges two images with identical height horizontally using FFmpeg's hstack video filter.

Image Stitching Engines & Layout Format Comparison

Stitching ModeDimension AlignmentMemory FootprintSupported EncodingsBest Use Case
Horizontal Strip (+append)Matches height or pads with background colorDirectly proportional to combined pixel width * height * 4 bytesPNG, WebP, JPEGBefore/after comparisons, panoramic stitching, horizontal banners
Vertical Strip (-append)Matches width or centers imagesDirectly proportional to combined heightPNG, WebP, JPEGFull-page screenshot assembly, comic strips, mobile scroll assets
2x2 Grid MatrixNormalizes tiles to identical aspect ratioBounded by canvas resolutionPNG, WebP, JPEGPhoto collages, sprite sheet packaging, product thumbnails
Browser Canvas EngineClient-side in-memory canvas manipulationSubject to browser GPU memory limits (~16k max texture dimension)Lossless PNG, lossy JPEG/WebPZero-upload private stitching directly in web browser

Image merging & Canvas memory troubleshooting

Merged image appears blurry or stretched

Cause: Merging images with vastly different native resolutions (e.g. 4000x3000 photo next to 400x300 icon).

Solution: Enable 'Keep Original Aspect Ratio' or resize images to consistent dimensions before stitching.

Canvas size exceeds maximum supported dimensions

Cause: Combined image width or height exceeds browser hardware canvas limits (typically 16,384 x 16,384 pixels on modern GPUs, or 4096 on older mobile devices).

Solution: Downscale input images before merging or export in chunks if creating extreme high-resolution banners.

ICC color profile shift / desaturated colors after export

Cause: HTML5 Canvas exports in sRGB color space by default, stripping embedded Adobe RGB or Display P3 wide-gamut profiles.

Solution: Convert source images to standard sRGB color space prior to merging to maintain consistent color fidelity.

Continue your workflow

  • Image Format Converter — Convert merged images between PNG, WebP, and JPEG formats.
  • Image Enhancer — Adjust contrast, brightness, and sharpness of stitched image compositions.
  • Scanned PDF Converter — Combine pages into multi-page documents with realistic scanner texture and tilt.
  • Color Palette Extractor — Extract dominant color swatches and palettes from merged image compositions.
  • Aspect Ratio Calculator — Calculate image dimensions and target aspect ratios for stitched compositions.
  • PDF Tools — Convert stitched image files into clean multi-page PDF documents.

Frequently asked questions

How do I merge two photos side by side online?

Choose the 2-image layout, set the orientation to horizontal, click each upload control and choose one photo per slot, and click merge. Download the result as PNG, JPEG, or WebP.

What happens if my images are different sizes?

Pick a resize mode. Preserve keeps every image at its own size, Normalize scales all of them to the same dimensions (auto or a preset such as 1024×1024), and Custom lets you enter the slot width and height or adjust the resize handle.

Can I merge more than four images?

No. The tool offers a 2-image and a 4-image layout. For larger collages, merge in two passes: build two 2×2 grids, then merge those two results side by side.

Does the merged image lose quality?

PNG avoids additional lossy export compression, but resizing can still change pixels. JPEG and WebP also use the quality slider (default 92%). The output canvas has a white background.

Focused guides for this tool

  • Merge Images Online — Join a pair of images horizontally or vertically, or assemble four images into one 2x2 grid.