Skip to content
SPCXTools

Merge Images

Combine multiple images into a single picture horizontally, vertically, or in a custom grid.

Runs locally — files never leave your device

Loading tool…

How to use Merge Images

  1. 1Drag and drop your image files into the drop zone, or click to browse. HEIC and HEIF files are also supported.
  2. 2Choose your layout style: horizontal, vertical, or grid.
  3. 3Adjust the gap between images, set a background color, and toggle the uniform sizing option to align your photos perfectly.
  4. 4Reorder the images using the arrow buttons on each thumbnail, then choose your output format (JPG, PNG, or WebP) and click Download.

A fast, private way to merge images

Whether you need to create a quick before-and-after comparison, assemble a photo collage, or stitch together multiple screenshots, this tool lets you merge images instantly. You can combine images in a horizontal row, a vertical column, or a multi-column grid, with precise control over spacing and background colors.

Because it functions entirely within your web browser, this is a secure way to join images online. Your photos are never uploaded to a remote server or processed in the cloud. Everything happens on your own device, ensuring your personal photos, confidential documents, and unreleased designs remain completely private.

Layout options and alignment

Getting multiple differently sized photos to look good together can be frustrating. This image combiner handles the math for you with three layout modes:

Horizontal (Side by side): The easiest way to put two pictures side by side. When you check the Same height option, the tool identifies the shortest image in your selection and scales the others down proportionally to match it. This creates a perfectly flush top and bottom edge. If you leave it unchecked, the canvas expands to accommodate the tallest image, and any shorter images are centered vertically within their space.

Vertical (Stacked): Ideal for stitching together long screenshots, receipts, or chat logs. Checking Same width scales all images to match the narrowest file in your list, ensuring a uniform left and right edge without distorting the aspect ratios.

Grid: Perfect for mood boards, product galleries, or collages. You can specify exactly how many columns you want (from 1 to 10). The tool calculates the necessary rows automatically. The Fill cells option creates a uniform grid by calculating a standard cell size based on the largest dimensions, scaling each image proportionally to fit neatly inside its cell.

For all layouts, you can add a Gap (in pixels) to create a border or breathing room between the photos. If you add a gap or if your images have different proportions, the underlying Background color will show through. You can use the color picker to set this to white, black, or any custom color that matches your project.

Common use cases

Before and after comparisons. Professionals in fitness, home renovation, and beauty often need to showcase transformations. Merging a "before" and "after" photo horizontally with a small gap creates a clean, easily shareable comparison image for social media.

Stitching screenshots. If you have captured a long conversation, a recipe, or an article across multiple screenshots, you can use the vertical layout to combine them back into a single, continuous image.

E-commerce and product sheets. Online marketplaces often limit the number of photos you can upload per listing. By using the grid layout, you can combine multiple angles of a product into a single high-resolution JPG or WebP file, allowing potential buyers to see more details within a single image slot.

Handling large files and browser limits

Modern smartphone cameras and digital SLRs produce massive files. If you attempt to merge ten 24-megapixel photos into a single row, the resulting image would be tens of thousands of pixels wide.

Web browsers place hard limits on how large a generated image can be to prevent your device from running out of memory and crashing. Typically, a browser canvas cannot exceed 16,384 pixels on any single side, or a total area of roughly 120 million pixels.

This tool calculates the final dimensions of your merged image before drawing it. If the planned layout exceeds your browser's safe limits, it automatically applies a proportional scale-down factor. You will see a warning message if this happens, but the tool will still successfully generate and download your image at the maximum safe resolution.

If you need to prepare your images before combining them, you can use the Crop Image tool to remove unwanted edges. If you realize later that you need to separate a previously merged file, the Split Image tool can slice it back into individual pieces. You can also convert your final merged image into a document format using the JPG to PDF converter.

Frequently asked questions

Are my photos uploaded to a server?
No. This tool is a completely local image combiner. It uses your browser's built-in canvas to draw and merge the images directly on your device, meaning your files are never uploaded, stored, or seen by anyone else.
How do I put two pictures side by side?
Upload your two images, select the "Horizontal" layout, and check the "Same height" option. This will automatically scale the images so they match perfectly side by side.
What does the "Same height" or "Same width" checkbox do?
When merging horizontally, images often have different heights. Checking "Same height" finds the shortest image and scales the others down proportionally to match it, creating a clean, flush row. If unchecked, the canvas expands to fit the tallest image, and shorter images are centered vertically. The vertical layout works the same way, but matches widths instead.
Why does the tool say my output was scaled down?
Web browsers have strict memory limits for canvas elements—typically a maximum side length of 16,384 pixels or a total area of 120 megapixels. If your combined image exceeds these limits, the tool automatically scales the final output down proportionally so your browser doesn't crash.
Can I combine HEIC images from my iPhone?
Yes. The tool automatically decodes HEIC and HEIF images locally in your browser. You can merge them and then download the combined result as a standard JPG, PNG, or WebP file.