Codepackr / image / Image Merger & Combiner

Image Merger & Combiner

Combine two images side-by-side or top-to-bottom with custom spacing, padding, and background colors.

Client-Side Execution & Privacy Guarantee

This utility executes 100% locally in your web browser. Your inputs, tokens, queries, and data payloads are never transmitted to any external server or backend.

Image merger assembles two separate images into a single canvas. You choose horizontal or vertical layout, then control the gap between the images, the outer padding, and the fill color of any empty space.

All layout calculations and pixel operations happen locally. The source images never leave the browser, so screenshots, product photos, or design mockups stay private while you produce a clean combined file.

Layout orientation and alignment

Horizontal mode places the images next to each other. Vertical mode stacks them. When the source images have different dimensions, the tool aligns them according to the selected edge (top, center, or bottom for horizontal; left, center, or right for vertical).

The resulting canvas size is the sum of the individual dimensions plus the requested gap and padding. No automatic scaling occurs unless you resize the inputs first.

Spacing, padding, and background

Gap sets the empty space between the two images. Padding adds uniform space around the outer edges of the combined result. Both values are expressed in pixels.

The background color fills every pixel that is not covered by an image. Choose a solid color that matches your design system or use a transparent background when the output format supports it.

Output format and quality

The combined image can be exported as PNG (lossless, supports transparency), JPEG (smaller file, no transparency), or WebP. JPEG and WebP quality settings control the compression level.

Because the operation is performed on the canvas, the output resolution matches the calculated canvas size exactly. Large source images produce large results; resize them beforehand if a smaller final file is required.

When to use this tool

  • Creating a before-and-after comparison from two screenshots
  • Combining product shots for a catalog or marketplace listing
  • Building a simple side-by-side visual for documentation or a bug report
  • Preparing a stacked banner from two existing graphics
  • Producing a single image that shows two related diagrams

How to use the Image Merger & Combiner

  1. Load the first image by selecting a file or dropping it into the workspace.
  2. Load the second image the same way.
  3. Choose horizontal or vertical orientation.
  4. Set the gap between the images and the outer padding in pixels.
  5. Pick a background color or enable transparency if the format allows it.
  6. Select the output format and quality, then generate the combined image.
  7. Download the result or copy it for further use.

Worked examples

Side-by-side screenshots with a gap

Input
Two 400x300 screenshots, horizontal layout, 20 px gap, 10 px padding, white background, PNG output
Output
Single 840x320 PNG (400+20+400 wide, 300+10+10 high)

The canvas width is the sum of the two widths plus the gap; height is the taller image plus padding.

Stacked images with different heights

Input
800x200 banner and 800x400 photo, vertical layout, 0 gap, 0 padding, center alignment, JPEG at 85 quality
Output
Single 800x600 JPEG

Identical widths produce a clean stack; the final height is the sum of the individual heights.

Common mistakes and tips

  • Resize images to matching dimensions first if you want them to share the same height or width without uneven alignment.
  • A transparent background is only preserved in PNG or WebP; JPEG will always fill with an opaque color.
  • Large gaps or padding increase the final file size even when the source images are small.
  • For precise pixel alignment, use zero gap and zero padding, then crop later if needed.
  • If one image has transparency, the background color shows through those pixels in the combined result.

Frequently asked questions

Can I merge more than two images?

The tool is designed for two images. Combine the first pair, download the result, then merge that result with a third image.

What happens when the images have different sizes?

The canvas expands to fit both images plus gap and padding. The smaller image is aligned to the chosen edge; empty space is filled with the background color.

Does the tool scale the images automatically?

No. Images are placed at their original pixel dimensions. Resize them with a separate tool if you need them to match.

Which format should I choose for the output?

Use PNG when you need transparency or pixel-perfect quality. Use JPEG or WebP when a smaller file size is more important.

Are the original files modified?

No. The tool creates a new image; the source files remain unchanged on your device.