ToolSite

How to Merge Multiple PDFs Into One File

Combine several PDF documents into a single file right in your browser. Free PDF merge with drag-and-drop page ordering and no file upload to any server.

By ToolSite5 min readguides

Why Merge PDFs

You have a cover letter and a resume as separate PDFs. The application portal accepts only one file. You have three scanned chapters of a report that need to be a single document. An invoice, supporting documents, and a W-9 all need to go to a client as one attachment. A multi-section proposal was written by different people, each exporting their section as a separate PDF.

Merging PDFs combines multiple files into one document. Page order and content from each source are preserved. The result is a single PDF that looks and behaves like any other PDF.

How the Merge Tool Works

The PDF Merge/Split Tool combines PDFs in two steps:

  1. Select files: pick the PDFs you want to merge. You can upload any number of files. The tool shows a preview list with page counts for each file.
  2. Reorder and merge: drag files in the list to set the order. Click Merge. The tool copies every page from each source PDF into a new PDF, preserving the exact order you specified.

Processing happens entirely in your browser using pdf-lib. Your PDFs are never uploaded to a server. The tool reads pages from each source file in memory, writes them to a new document, and triggers a download.

Ordering Pages

The order of files in the upload list controls the page order in the merged PDF. If File A has 3 pages and File B has 5 pages, merging A then B produces an 8-page document: pages 1 through 3 come from A, pages 4 through 8 come from B.

Drag files up or down to reorder before merging. Check the total page count displayed in the tool to confirm the result will have the expected number of pages. If you accidentally put files in the wrong order, just drag them into position before clicking Merge.

Controlling Which Pages to Include

You may not want every page from every source. The Split function of the same tool lets you extract specific pages from a source PDF before merging. If File B has 20 pages and you only need pages 5 through 8, split those out first, then add the extracted pages to the merge list.

What Gets Preserved

  • Text content: all text from every source PDF is copied faithfully. Characters, fonts, and positioning are preserved.
  • Images and vector graphics: embedded images stay at their original resolution. Vector graphics (logos, diagrams) remain sharp at any zoom level.
  • Page dimensions: each page keeps its original size. If PDF A is US Letter and PDF B is A4, the merged file contains both page sizes. Most PDF viewers handle mixed page sizes without issues.
  • Hyperlinks: internal and external links within pages are preserved. Links that point to pages in the same source file continue to work within that file's page range.

What Gets Lost or Changed

  • Form fields: interactive form fields from different PDFs may conflict if they share field names. In most cases, form fields in the merged file become non-interactive. This is a limitation of pdf-lib, the library the tool uses.
  • Digital signatures: merging changes the document content, so existing digital signatures are invalidated. The merged PDF will not show any signature as valid.
  • Metadata: the merged PDF gets new metadata (author, title, subject). The original metadata from individual source files is not carried over. You can edit the title and author metadata afterward with a PDF metadata editor.
  • JavaScript and complex annotations: embedded scripts and some annotation types (3D objects, rich media) may not survive the merge.

Handling Large Files

If the combined PDF will exceed 100 MB, the browser may have trouble processing it in memory. Workarounds:

  • Use the PDF Compressor on individual files before merging to shrink embedded images.
  • Merge in batches: combine files in groups, then merge the group results.
  • For very large operations (hundreds of files, gigabyte totals), a command-line tool like pdfunite (part of poppler-utils) or qpdf will be more reliable than a browser-based tool.

Command-Line Alternative

If you prefer the terminal, pdfunite merges PDFs on Linux and macOS:

# Install poppler-utils (Ubuntu/Debian)
sudo apt install poppler-utils

# Merge PDFs
pdfunite file1.pdf file2.pdf file3.pdf merged-output.pdf

On macOS with Homebrew: brew install poppler. On Windows, install poppler via Chocolatey or use the browser tool.

Before You Merge

  • Check file sizes: know the total size going in. If the result will be large, compress images first.
  • Verify page counts: open each source PDF and note how many pages it has. After merging, the tool shows a total, so you can confirm it matches.
  • Name the output: the merged file gets a default name. Rename it to something descriptive before saving.
  • Keep originals: merging does not modify your source files. But keep backups of important originals anyway.

Try it yourself: open the PDF Merge/Split Tool. Upload two PDFs. Drag to reorder them if needed. Click Merge. Download the combined PDF and open it in your PDF viewer. Verify that all pages are present and in the correct order. Then try the reverse: upload a multi-page PDF, switch to the Split tab, and extract a single page to see how both functions work together.

Related Reading