Merge Images

Merge two or more images into a single PNG: a vertical stack, a horizontal row, or a grid with the number of columns you choose. Every cell is as large as your biggest image, so smaller ones are padded with the background color on their right and bottom. The work happens in your browser, so nothing is uploaded.

Drop files here or choose files
Pick several at once · images stay on your device · up to 50 MB each
Layout

Every cell is as large as your biggest image, so smaller ones get background color added on their right and bottom — the gap setting doesn't change that.

The result is a lossless PNG, so a few JPGs merged together usually come out bigger than the originals added up — run it through Compress Image if you need a smaller file.

How to use

  1. Add at least two images: Drop your pictures onto the box or click to choose them. You can pick several at once and keep adding more afterwards; each file can be up to 50 MB and each image up to about 100 megapixels.
  2. Put them in order: Use ↑ and ↓ to move an image up or down, ✕ to take one out, or Clear all to empty the list. The merge follows the list from top to bottom.
  3. Choose a layout: Pick Vertical, Horizontal or Grid. In Grid mode, set Columns between 1 and 10. Drag the Gap slider for 0–60 px between the cells, and set Background / gap color for the gap and for any padding.
  4. Merge and save: Click the merge button — it shows how many images are in your list — then download merged.png. On a phone, Save to device opens the system share sheet when the browser offers file sharing, and simply downloads the PNG when it doesn't.

How to merge images in your browser

Merge images into one PNG in your browser using a vertical stack, horizontal row or grid with 1–10 columns. Add at least two images, up to 50 MB and about 100 megapixels each. Smaller images receive background padding; files are not uploaded.

The merging code — libvips compiled to WebAssembly — is a few megabytes, and it is fetched only on this page and only once you press the button, so opening the page costs nothing extra. Each picture is read straight from your disk into the tab and nothing is sent to a server, so there is no upload and no server-side copy to delete afterwards. The result lives only in the tab: close or reload the page and both your list and the merged picture are gone, so download it before you leave. That is the part that matters when you combine multiple images into one picture and those images are screenshots of a chat, a bank app or an ID document.

Because your own browser does the work, the ceiling is your device's memory rather than a server quota: the number of images, their combined size and the size of the finished picture are not capped anywhere in the code. If a batch is too big for the device, the merge either fails with a message or the tab itself gives up — either way you never get a picture containing only the first few images. A file that can't be read behaves the same way: one damaged or non-image file stops the whole batch rather than being skipped, and the message names which file it was, so you can take that one out and try again.

While you are building the listWhat the page does
You add more picturesThe drop box stays open, and new files join the end of the list instead of replacing it
You pick the same file twiceTwo rows, two cells — duplicates are not folded into one
A file isn't an image, or is over 50 MBIt is skipped on its own, with a note of how many were dropped
You drop a whole folderSubfolders are walked; if your browser can only read part of the drop, the whole drop is refused and the unreadable items are named
A merge is runningThe drop box disappears and every control is disabled
Files arrive late — during the merge, or once the result is on screenThey are refused with a message instead of quietly joining the list; download the picture, press Start over and build a new list for them

Why files arrive late: a folder you dropped is walked in the background, so its files can be handed over after you have pressed the button.

Vertical, horizontal or grid: which layout to pick

Vertical is one column, top to bottom — the layout for a run of screenshots, a chat thread or a scrolling page, where you want to stitch screenshots into one long image. Horizontal is one row, left to right, which is how you merge images side by side for a before-and-after or a size comparison. Grid fills rows left to right and top to bottom with the number of columns you set, for contact sheets, product photos or a 2 × 2 collage.

In Grid mode the Columns box takes a whole number from 1 to 10 and always holds a value: clear it and it becomes 1. One column in Grid mode gives you the same picture as Vertical. If the last row doesn't fill up, the leftover cells are simply background color. Nine images in four columns give you three rows: two full rows, followed by one image and three background-colored cells.

The Gap slider adds 0 to 60 px between the cells, and its label shows the current value as you drag. The gap goes between cells only, never around the outside of the picture, and it is filled with the Background / gap color — so a white gap on white screenshots is invisible, while a gap in a contrasting color draws the dividing lines for you. Gaps cost almost nothing in file size: adding a 20 px gap to a 1200 × 1600 vertical merge grew the PNG by 331 bytes, because a flat band of one color compresses to almost nothing.

LayoutHow the images are placedMeasured example
VerticalOne column, top to bottomTwo 800 × 600 PNGs → 800 × 1200
HorizontalOne row, left to rightTwo 1200 × 800 JPGs → 2400 × 800
Grid, 2 columnsLeft to right, then the next rowFour 800 × 600 PNGs → 1600 × 1200
Grid, 3 columnsLeft to right, then the next rowNine 800 × 600 PNGs → 2400 × 1800

Pixel sizes measured on the sample images used to test this tool, with the gap left at 0.

Images of different sizes: where the background padding comes from

Every cell is as large as your biggest image — the widest width and the tallest height in the list — and nothing is scaled, cropped or resampled. A smaller image sits in the top-left corner of its cell, and the space left over on its right and below it is filled with the background color. Stack a 1200 × 800 photo and an 800 × 600 photo vertically and the result is 1200 × 1600: two 1200 × 800 cells, not 1200 × 1400.

That padding is not the gap, and setting the Gap slider to 0 does not remove it — gap and padding are two separate things. There is no fit, center or scale-to-same-width option here, and no per-image alignment: every image sits top-left in its cell. Sets of equally sized screenshots therefore merge with no padding at all, while a mix of portrait and landscape photos always leaves some.

There are two practical ways around it. Set Background / gap color to whatever the images sit on — #ffffff, the default, disappears into white screenshots and document scans — so the padding stops reading as a border. Or make the images the same size before you merge them, which is the only way to get a merge with no padding at all from mixed sources.

To even up sizes first, trim each picture to the same width and height with Crop Image.

What the merged PNG keeps — and what it doesn't

Pixels are copied, not re-compressed. Nothing is scaled or cropped, and the picture is written as a lossless PNG at the highest compression level, with no quality setting and no palette reduction, so no new lossy encoding is laid on top of whatever your files already had. Two things do change pixel values on the way in: every input is converted to 8-bit sRGB with three channels, and anything carrying transparency is flattened onto the background color first. Your content survives intact; the original color space, bit depth and alpha channel do not.

Transparency is not kept. A picture with transparent areas is painted onto the Background / gap color before merging, and the result has no alpha channel at all, so a fully transparent corner comes out as the color you picked. Animation is not kept either: for an animated GIF or a multi-page file, only the first frame is decoded, so merging two copies of a three-frame 50 × 50 GIF side by side gives one static 100 × 50 picture. And the output is always a PNG — a JPG in means a PNG out. Decoding is handled by libvips, which reads far more types than the ones checked here (JPG, PNG and GIF); if an unusual format won't open, the message names the file that failed.

Metadata is not removed, which surprises people. There is no stripping step in this tool, so attachments ride along with the pixels: the merged PNG carries an EXIF block, and usually an ICC color profile and a resolution chunk as well. In the batches checked here, a photo carrying GPS coordinates was merged with a plain PNG in both orders and both results still contained a GPS pointer in their EXIF block; even two inputs with no attachments at all produced a small 180-byte EXIF block written by libvips. Which fields survive for other photos and other mixed batches hasn't been measured, so treat this as a reason not to use merging as a privacy step — and not as a promise that a particular tag is preserved.

Rotation tags are not applied. Each image is decoded as it is stored, with no auto-rotate step, so a phone photo that looks upright in your gallery only because of its orientation tag is merged using its actual sideways pixels. The preview under the result can disagree with that: it is drawn by the browser as an ordinary image, and a browser may apply the orientation tag, so what you see there is not always how the pixels are laid out in the file you download. If something comes out sideways, turn it the right way up first and merge the corrected copies.

Straighten a sideways photo first with Rotate Image, then bring it back here.

Why the merged file is often bigger than the originals

A lossless PNG is usually larger than the files that went into it, and JPG inputs inflate the most. PNG losslessly encodes the pixels decoded from the JPG; it does not recover detail already lost to JPEG compression. Its encoding can produce a larger file, as the measured example shows: two 1200 × 800 JPGs totaling 1,083,082 bytes came out as a 2,026,078-byte PNG merged side by side, about 1.9 times the input. PNG inputs can grow too: two 800 × 600 PNGs totaling 429,314 bytes came out at 1,234,515 bytes stacked, because the merged picture is one new PNG written here rather than the two files your own camera or editor optimized.

It isn't a rule, though — the multiple depends on what is in the pictures. PNG compresses repeated content well, so a grid of near-identical images can land about where it started: the same 800 × 600 PNG nine times (1,931,913 bytes altogether) merged into a 2400 × 1800 three-column grid of 1,920,428 bytes, very slightly smaller than the inputs added up. Two small 480 × 360 screenshots stacked came out at 143,450 bytes against 142,093 bytes of input, near enough identical. So expect growth from photos and JPGs, and don't plan around a fixed factor.

If the download has to fit an upload limit or an email, merge first and shrink afterwards rather than trying to control the size here: there is no quality slider and no JPG or WebP output on this page. For one picture per page instead of one picture in total, Image to PDF is the other way to hand several images over as a single file, and Image Converter will change the merged PNG into another format if you need one.

Merged picture too heavy to send? Run it through Compress Image afterwards.

How this tool is checked

  • The logic behind this tool is covered by 13 automated test cases (hand-checked examples, edge cases and invalid input), and they run again before every release.
  • Before each release, a real browser opens this page, runs it on sample files (including a damaged one) and checks the file it produces.
  • Your files are processed in your browser and are never uploaded to our server.
  • Formulas, figures and definitions are checked against the sources listed at the end of this page.

How we build and test our tools →

Frequently asked questions

Are my images uploaded to a server?
No. Every picture is read and merged inside your browser, so nothing leaves your device and there is no copy on a server to worry about. The merged image is held in the tab only — closing or reloading the page clears both your list and the result, so save it first.
How many images can I merge at once?
There is no limit in the code on how many you add. Each file can be up to 50 MB and each image up to about 100 megapixels, and beyond that the practical ceiling is your device's memory. If a batch is too heavy, the merge fails instead of returning a partial picture, so merge in two or three smaller batches.
Why is the merged image bigger than the originals added up?
Because the result is a lossless PNG. PNG losslessly encodes the pixels decoded from the JPG; it does not recover detail already lost to JPEG compression. Its encoding can produce a larger file, as the measured example shows: two 1200 × 800 JPGs of 1,083,082 bytes became a 2,026,078-byte PNG. Compress Image afterwards if you need a smaller file.
How do I merge images of different sizes without blank space?
Make them the same size first. Each cell is as large as the biggest image in the list, and a smaller picture sits top-left with background color filling the rest — setting the gap to 0 doesn't change that, because padding and gap are separate. Crop Image evens up the sizes; alternatively, set the background color to match your images so the padding blends in.
Does it keep transparent backgrounds?
No. Transparent areas are flattened onto the Background / gap color before merging, and the merged PNG has no alpha channel at all. If you need the transparency, this isn't the right tool — merge opaque copies here and keep the transparent originals.
Can I save the result as JPG, WebP or PDF?
Not from this page — the output is always PNG. Merge first, then convert the PNG with Image Converter if you need JPG or WebP. For a PDF, Image to PDF puts each picture on its own page instead of combining them into one picture.
Does merging remove EXIF data or GPS location from my photos?
No, and you shouldn't rely on it for that. Nothing in this tool strips metadata, and in the batches checked here an EXIF block with a GPS pointer reached the merged PNG from a photo that carried one. Use a dedicated metadata tool if your goal is removing location data.
Why did my phone photo come out sideways?
Its orientation is stored as a tag rather than in the pixels, and merging doesn't apply that tag. Your gallery, and the preview on this page, may apply it instead, which is why they can look right while the downloaded file doesn't. Rotate Image fixes the pixels; merge the rotated copies.

Add this tool to your website

Free for any website, personal or commercial. Paste the code where you want the tool to appear — it works on WordPress, Blogger, Google Sites, Notion and plain HTML.

This tool needs a browser mode that only works on its own page, so the embed shows a card with a button that opens it in a new tab.

<div class="gingertool-widget" data-embed="https://gingertool.com/embed/en/image/merge-images/" data-height="240" style="font-size: 13px; line-height: 20px; margin: 6px 0 16px; text-align: left">Merge Images &#183; <a href="https://gingertool.com/en/image/merge-images/">Gingertool</a></div>
<script src="https://gingertool.com/embed.js" async></script>

Please keep the credit link below the tool. Embedded tools show no ads.

Step-by-step: Google Sites · Blogger · WordPress · Notion

Cite this tool

Using a result in a report, paper or assignment? Copy a ready-made reference.

APA
Gingertool. (2026). Merge Images [Online tool]. Retrieved November 25, 2026, from https://gingertool.com/en/image/merge-images/
MLA
“Merge Images.” Gingertool, November 25, 2026, https://gingertool.com/en/image/merge-images/. Accessed November 25, 2026.
BibTeX
@misc{gingertool-merge-image,
  author = {{Gingertool}},
  title = {Merge Images},
  year = {2026},
  url = {https://gingertool.com/en/image/merge-images/},
  note = {Accessed: 2026-11-25}
}