ToolHubTools

Image Stitcher

Stitch multiple images into one long image, locally in your browser.

Upload images

Click to select / drag here / paste screenshots, up to 20 images

Upload 2 or more images to stitch. Everything runs locally in your browser — images are never uploaded.

Sponsored

Features

  • Stitch multiple images vertically into one complete long image; upload by clicking, dragging, or pasting
  • Reorder thumbnails by drag or buttons; add and remove images at any time
  • Three width alignment strategies: scale to widest, center with padding, or match the first image
  • Adjustable gap and divider lines; JPEG/PNG export; fully local processing

FAQ

What is the difference between image stitching and webpage screenshots?

Both produce long images, but from different sources. A webpage screenshot takes a URL and renders the whole page on a server; image stitching takes images you already have (phone screenshots in segments, chat history captures) and merges them in the browser. The former solves "cannot capture"; the latter solves "assembling existing material".

Are my images uploaded to a server?

No. Stitching is done entirely in your browser via the Canvas API — images never leave your device. Even sensitive content like chat logs and contract screenshots is safe, and the tool works offline.

How many images can I stitch at once?

Up to 20 images per stitch. The limit comes from the browser canvas size cap (~268 million total pixels); twenty 1080×2400 phone screenshots total about 52 million pixels, which runs stably on mainstream devices. For more images, stitch in batches or compress first.

What if image widths do not match?

Three strategies are provided. The default "scale to widest" enlarges narrower images to match the widest, giving the strongest sense of continuity. "Center with padding" keeps original sizes and fills the sides with a chosen color — ideal for text screenshots that should not be scaled. "Match first image" uses the first image as the width baseline for all others.

Will phone photos with wrong orientation stitch incorrectly?

No. When reading each image, the tool applies EXIF orientation automatically via the imageOrientation option of createImageBitmap, so portrait photos are rotated upright before stitching — no sideways or upside-down results.

JPEG or PNG — which should I choose?

Choose JPEG for sharing: the file is 1/5 to 1/10 the size of PNG and transfers faster on WeChat or WhatsApp, with no visible difference at the default 0.92 quality. Choose PNG when you need lossless quality or transparent padding — but note PNG long images can exceed 10MB, which some platforms restrict.

Why does it say the size limit is exceeded?

Browsers impose hard caps on canvas size: roughly 65535 pixels per side and ~268 million total pixels (iOS Safari is much lower). The tool calculates total pixels in real time before stitching and disables export when over the limit. Solutions: reduce the number of images, compress them first, or stitch in batches.

Any tips for stitching chat histories?

Three tips. First, keep all screenshots from the same source (same device, same app) so widths match naturally and the default alignment produces a seamless result. Second, set the gap to 0 for a continuous long image. Third, to remove the repeated title bar at the top of each screenshot, crop before stitching — this tool does not crop images.

About Image Stitcher

Stitch multiple images vertically into a single long image online. Drag-and-drop ordering, width alignment, gap and divider options. Runs entirely in your browser. This tool runs entirely in your browser. No data is uploaded to the server, helping protect your privacy. Everything works instantly with no software or plugin required.

The Long-Image Stitching Guide: Principles, Alignment, and Browser Limits

What Is a Long Stitched Image?

Vertical image stitching combines multiple images, top to bottom in order, into a single tall image. The most common scenario is chat history: a phone screen captures only one segment at a time, and only after stitching the segments into one long image can the conversation be forwarded or archived as a whole. Similar cases include multi-segment article screenshots, multi-page order flows, and comic panel stitching.

Compared with manually aligning images one by one in a photo editor, an automated stitching tool has three advantages: pixel-perfect alignment with no gaps or overlaps; batch processing that finishes 20 images in seconds; and adjustable parameters — gap, alignment, and padding applied to the whole image at once. In essence, it hands repetitive labor to the program.

How Browser-Side Stitching Works

Modern browsers can stitch images without any server. The core is the Canvas 2D API: compute the final width and height of all images under the chosen strategy, create a canvas of that size, draw each image at its y coordinate in order with drawImage, then export via toBlob as JPEG or PNG. The whole process is pure memory computation with no network transfer.

The direct benefits are privacy and cost: images never leave the device, the server has zero load, and the tool can stay free forever. The trade-off is the browser canvas size cap — which is exactly why stitching tools commonly limit image count and total pixels. It is an engineering constraint, not a product decision.

Width Alignment: the Core of a Clean Result

When widths differ, the alignment strategy determines the final look. Scale to widest: every narrower image is enlarged to the width of the widest — full-bleed and continuous, at a slight cost in sharpness. Center with padding: original sizes are kept, narrower images sit centered with colored sides — better for text screenshots (scaled text goes soft) and similar to album layout.

Match first image: the first image sets the width baseline and the rest scale toward it. This fits "the first image sets the tone" cases, such as a title header followed by body screenshots. No strategy is absolutely superior; it depends on the material: same-source screenshots work fine with default scaling, while mixed material (photos plus screenshots) suits padding better.

EXIF Orientation: the Hidden Trap of Phone Photos

Portrait photos taken on phones are actually stored as landscape pixels, relying on the Orientation tag (1-8) in EXIF metadata to indicate display direction. A normal img element applies the tag automatically, but Canvas drawImage ignores it by default — the result is a sideways or even upside-down photo inside the stitched image.

The correct fix happens at decode time: createImageBitmap offers the imageOrientation: "from-image" option, which rotates the bitmap per EXIF when it is created, so subsequent drawing needs no compensation. This tool uses exactly that approach, eliminating orientation bugs at the source. As a bonus, canvas re-encoding strips all EXIF (including GPS coordinates) — a privacy win for sharing scenarios.

The Browser Canvas Red Line

The real bottleneck of a stitching tool is not the algorithm but the canvas cap. Browser engines impose hard limits: Chrome allows about 65535 pixels per side and ~268 million total pixels; iOS Safari is far lower, around 16.7 million pixels (the 4096×4096 class). An oversized canvas either fails to create or renders blank.

Engineering safe bounds follow from this: at the common 1080px-wide phone screenshot, twenty 2400px-tall screenshots total about 52 million pixels — stable on desktop Chrome; on mobile, keep it within 8 images or shrink the originals first. A responsible stitching tool calculates total pixels in real time and shows a clear warning, instead of letting users gamble on a blank image.

Sharing and Post-Processing Long Images

Long images mostly end up on social platforms, and their secondary processing cannot be ignored: WeChat recompresses non-original images to about 1080px wide; Weibo caps a single image at 10MB. Recommendations for stitched long images: prefer JPEG (small and resistant to recompression), keep width within 1080 (wider brings no benefit), and split very long content into two parts.

If the long image is for archiving — chat records as evidence, process documentation — choose lossless PNG and keep the original width so text stays perfectly readable. Combined with the image compressor on this site, a JPEG long image can shrink another 30-50% before sharing, with almost no visible loss.

Sponsored