Blog

Stitch Screenshots into One Long Image Online

Join several scrolling screenshots into one tall image, removing the overlap and status bars automatically, in your browser.

On the left, three screenshots of a chat taken at different scroll positions. An arrow points to a single tall chat screen made by joining them, in which the title bar at the top and the input box at the bottom each appear only once.
The sample in the Combine Images tool (English version). Joining the three images on the left with “Remove overlap automatically” gives the single image on the right.
Contents

You want to show a group chat conversation to someone who wasn’t in it, paste a long settings page from a website into a how-to document, or keep an online shop’s order history as one image. When the content doesn’t fit on a phone screen, you end up scrolling a little at a time and taking several screenshots.

Sending all of those images as they are forces the recipient to open them one by one in the right order. Stacking them in an image editor isn’t much better: every image contains the status bar with the clock and battery, the app’s title and the input box at the bottom, so these get sandwiched in at every seam. And because the bottom of one image and the top of the next show the same messages, the content appears twice as well.

Phones do have their own long screenshot features. On the iPhone, however, “Full Page” is only available in some apps such as Safari, and what you get is a PDF. Android’s scrolling screenshot may not work depending on the device and the app. If you can merge ordinary screenshots into one image after the fact, none of those limits matter.

The Combine Images tool arranges several images vertically, side by side or in a grid to make one image, and it has a “Remove overlap automatically” button meant for screenshots taken while scrolling. Press it and the tool finds the bars fixed at the top and bottom and the part that overlaps the previous image, crops them away and joins everything into one long screen. The images are processed inside the browser and are not sent to a server. Besides the sample images included in the tool, I tried images prepared under different conditions to see how far the automatic stitching goes.

The images I used

Pressing “Try the sample (3 scrolling screenshots)” in the tool loads screenshots of a fictional group chat taken at three positions (each 780×1,400 px). The members are arranging the venue and the order of talks for a study group meeting. The first image is the start of the conversation, the second is the middle and the third is scrolled to the end. The clock at the top reads 9:41 in the first two and 9:42 only in the third, to reproduce the clock changing while the screenshots were being taken.

All the screenshots below were taken in the English version of the tool, so the chat is in English as well.

To use your own screenshots, select them all at once with “Choose images (multiple)” or drag them onto the page. When you select several, they are sorted by file name (IMG_2 comes before IMG_10). Phone screenshots are usually named in the order they were taken, so in most cases they end up in shooting order without further work. Images on the clipboard, such as screenshots taken on a computer, can be added to the end one at a time with Ctrl+V (⌘+V on a Mac).

The section for adding images in the English version of the Combine Images tool. It has the buttons Choose images (multiple), Paste from clipboard and Try the sample (3 scrolling screenshots). Below, under Order and cropping, sample-chat-1.png, sample-chat-2.png and sample-chat-3.png (each 780 × 1,400 px) are listed. Each image has Crop top and Crop bottom fields, up and down arrows and a Remove button.
The tool after loading the sample. The order can be changed with the arrow buttons or with “Sort by file name” and “Reverse”.

What happens if you just stack them

Right after loading, the direction is set to “Stack vertically” and nothing has been cropped yet. The finished size in this state is 780×4,200 px, simply the three heights added together. Below, the image saved with “Save image” in this state is placed next to the one saved after removing the overlap as described in the next section, at the same scale.

On the left, the three screenshots stacked as they are: the dark navy title bar at the top and the input box at the bottom appear three times each, and the same messages appear twice around each seam. On the right, the image joined after removing the overlap: the title bar appears only once at the very top and the input box only once at the very bottom, and the messages continue without a break.
Left: stacked as they are, 780×4,200 px. Right: joined after pressing “Remove overlap automatically”, 780×2,430 px. Both saved images are shown at one third of their size.

In the image on the left, a title bar appears at the top of the second and third images too, with an input box squeezed in just above it. On top of that, the messages from “Yes. They said we can borrow an HDMI cable too” onward, which are at the end of the first image, appear again at the start of the second. Anyone reading the chat has to work out for themselves where the new content begins.

Joining with “Remove overlap automatically”

In the “Layout” section, press “Remove overlap automatically (for scrolling screenshots)”. The tool compares neighboring images and lists what it removed at each seam.

The Layout section in the English version. Stack vertically is selected under Direction. Below the Remove overlap automatically (for scrolling screenshots) button it says Removed the overlap at 2 of 2 seams. The gap and margin have been set to 0., and for both Image 1 → 2 and Image 2 → 3 it reports removing a fixed top part of 184 px, a fixed bottom part of 112 px and an overlap of 589 px. Below that are the Size matching, Alignment, Gap between images, Outer margin, Background color and Output size settings.
An overlap was found at both seams. The gap and the outer margin are set to 0 automatically.

The results were as follows.

Seam Fixed top part Fixed bottom part Overlap
Image 1 → 2 184 px 112 px 589 px
Image 2 → 3 184 px 112 px 589 px

The fixed top part of 184 px is the status bar and the title bar together, and the fixed bottom part of 112 px is the input box. Only the third image had the clock changed to 9:42, but the tool treats two rows as the same when most of each row matches, so the status bar was still detected as part of the fixed header.

The results go into the “Crop top” and “Crop bottom” values of each image. Image 1 gets 112 px cropped from the bottom, image 2 gets 773 px (184 px + 589 px) cropped from the top and 112 px from the bottom, and image 3 gets 773 px cropped from the top. The first image’s title bar and the last image’s input box are kept, so the finished image looks like the real phone screen simply stretched out. Its height is 1,288 px + 515 px + 627 px = 2,430 px.

How it works: remove the fixed parts, then slide and match

According to the tool’s description and its implementation (image-combine-core.js), the comparison proceeds in this order.

  1. Starting from the top edge of the two images, the range of identical rows (one horizontal line of pixels) is treated as a fixed header; starting from the bottom edge, the range of identical rows is treated as a fixed footer.
  2. In the moving part left in the middle, the tool looks for how many rows the previous image has to be shifted for it to match the start of the next image. Rows containing only the chat’s background color match anywhere, so they aren’t used as evidence; the shift at which many rows with text or speech bubbles match is adopted.
  3. The footer is cropped from the bottom of the previous image, and the header plus the overlapping part from the top of the next image.

To compare rows, the tool divides each row into 64 segments, takes the average brightness of each, and checks whether the sequences are close. Because it doesn’t require an exact match, rows whose colors shifted slightly through JPEG compression are still judged to be the same.

Checking the seams and saving

The “Preview and save” section shows a preview of the finished image and the size it will be saved at. When “Show lines at seams (preview only)” is checked, a red dotted line marks each position where one image switches to the next. The line is not included in the saved image.

The Preview and save section in the English version. Show lines at seams (preview only) is checked, and it reads Saved image size: 780 × 2,430 px (3 images). In the preview, a red dotted line crosses the middle of the green bubble reading In sign-up order. I made a sheet, please check it, but the bubble's shape and text join without any misalignment. Below, PNG (for screenshots, lossless) is selected under File format, and to the right of the Save image and Copy to clipboard buttons it says Saved (296 KB).
The seam between images 1 and 2 falls in the middle of a speech bubble, but neither the text nor the outline is misaligned. After saving, “Saved (296 KB).” was shown.

What you want to check is that no message appears twice around a dotted line and, conversely, that no message is missing. In the sample, the seam between the first and second images fell in the middle of the bubble “In sign-up order. I made a sheet, please check it”, yet the text joined without any vertical misalignment. If something is duplicated or missing, increase or decrease the “Crop top” value of that image and the preview updates immediately.

Under “File format” you can choose PNG, JPEG or WebP. PNG suits screenshots because it keeps the edges of the text sharp. Saving the sample as PNG produced sample-chat-1-combined.png (296 KB), named after the first image with -combined appended. Saved as JPEG it was 209 KB.

Press “Copy to clipboard” and the finished image is placed on the clipboard as a PNG, so you can paste it straight into WhatsApp, LINE (the messaging app most people in Japan use), Slack, Teams or the body of an email. Browsers that don’t support copying images say so on screen; in that case, attach the saved file instead.

Trying different conditions

Screenshots you take yourself won’t always be as clean as the sample. I saved the three sample images, changed the conditions and loaded them into the tool again.

Condition tested Result
Convert all three to JPEG (quality 75) Same as PNG: fixed parts of 184 px and 112 px and an overlap of 589 px detected at both seams. Finished size also 780×2,430 px
Remove image 2, leaving only images 1 and 3 Joined at one seam with an overlap of 74 px. Finished size 780×2,430 px, the same as with three images
After loading, use “Reverse” to order them 3 → 2 → 1 Both seams reported “no overlap found”, and the images were joined without cropping
Cut off the right edge of image 2 so it is 760 px wide The seams involving image 2 reported “different widths (760 px and 780 px), so they can’t be compared”

The result didn’t change for screenshots saved as JPEG. Small color differences from compression are tolerated, so images you received in a chat, or screenshots that your device saves as JPEG, work too.

With image 2 removed, the end of image 1 and the start of image 3 still shared 74 px of the same content, so they joined correctly. Put another way, the images you want to join must share at least some content, even just part of one speech bubble. If you scroll too far and something between two screenshots never appears in either, the tool can’t fill it in. When taking the screenshots, hold back on scrolling so that what was visible near the bottom of one screen stays near the top of the next.

When the order was reversed, no seams were found. The tool checks whether the bottom of the previous image matches the top of the next, so if the order in the list differs from the order they were taken in, it can’t find the overlap. If “no overlap found” appears, first check the order in the list, fix it with “Sort by file name” or the arrow buttons, and press “Remove overlap automatically” again.

Images of different widths can’t be compared. This happens when only one of them has been trimmed, or when portrait and landscape screenshots are mixed. Use unedited images taken on the same device held the same way.

Screens where automatic stitching struggles

The tool’s description notes that the following kinds of screens may not join correctly on their own.

  • Lists in which identical icons or rows of the same shape repeat regularly. They match no matter how far they are shifted, so the tool may pick the wrong amount of shift.
  • Screens with animations or ads that move while you scroll. The part that should overlap looks different from one image to the next.
  • Sticky headings that appear as you scroll, or a browser address bar that appears and disappears. Their height differs between images, so they may not be removed as fixed parts.

Even then, you can take the automatically set values as a starting point and correct “Crop top” and “Crop bottom” by hand while watching the dotted seam lines. The values are in pixels of the original image and don’t depend on the zoom level of the preview. To start over, “Clear cropping” resets everything to 0.

Side by side or in a grid

“Side by side” suits comparing a screen before and after a change. With “Tile grid” you set the number of “Columns” and the images are placed in order from the top left, for example to send six travel photos as one image of 2 columns × 3 rows.

When the images differ in size, use “Size matching” to choose whether to enlarge them to match the largest image, shrink them to match the smallest, or keep their original size. Vertical stacking and the grid match widths; side by side matches heights. Empty space left when sizes aren’t matched is filled with the “Background color”, and checking “Transparent” makes the background transparent in PNG and WebP. Setting “Gap between images” and “Outer margin” to a few pixels makes the borders between photos easier to see.

When the image gets too long, and checks before sending

Stacking many images makes the result very long. In major browsers both width and height are limited to 32,767 px, and anything beyond that can’t be saved. Safari on iPhone and iPad may fail to create images larger than about 16.77 megapixels (equivalent to 4,096×4,096 px), in which case a warning appears on screen. WebP allows at most 16,383 px per side, so save longer images as PNG or JPEG. If you are likely to exceed a limit, scale the image down by setting “Output size” to 75% or 50%.

Chat screens often show other people’s names, profile pictures and phone numbers. Before sharing, it’s worth hiding anything the recipient doesn’t need to see. You can process the combined image directly with Image Redaction: Mosaic, Blur and Black Out. Why a solid fill is more reliable than a mosaic for text is compared in detail in “To Hide Personal Info in Screenshots, Fill Beats Mosaic”.

The saved image is rebuilt from pixels, so Exif information attached to the original images, such as the location (GPS) where they were taken, is not included. When you combine photos into a grid and send it, there’s no need to worry about location data going along with it.

If you want one file split into pages, for example to print as a how-to document, collecting the images into a PDF with Images to PDF is easier to handle than one long image. And if you want to show the scrolling itself in motion, you can turn a screen recording into a GIF with Video to GIF Converter (see “Turning Screen Recordings into GIFs for READMEs and Issues”).

Test environment

  • Combine Images tool (operated in the English version), Chromium (via Playwright)
  • The sample images were loaded with the tool’s “Try the sample (3 scrolling screenshots)”
  • The conversion to JPEG and the trimming to 760 px wide were done with Python’s Pillow
  • The comparison image in the article and the cover image were made by scaling down and arranging the images saved with the tool and the sample images