SynthPDF
tutorialpdfmergecombinetutorial

How to Merge PDF Files Online — Complete Guide 2026

SynthPDF Team·6 min read·May 19, 2026

Why Merging PDFs Is Such a Common Task

Every week, millions of people need to combine multiple PDF files into one. A cover letter and a resume. Three chapters of a report. Twelve scanned receipts for an expense claim. A multi-part contract with exhibits. The use case is universal — the question is just which method to use.

This guide covers every reliable method in 2026: online tools, desktop software, mobile apps, and command-line options for developers. Start with the method that matches your situation.

Method 1: Online Tool (Recommended for Most People)

The fastest and most accessible option. No installation required.

Using SynthPDF (Browser-Only — Files Never Uploaded)

  1. Go to SynthPDF Merge PDF
  2. Click Upload Files or drag and drop up to 20 PDFs at once
  3. Drag the file thumbnails to reorder them — the final PDF follows this order
  4. Click Merge PDF
  5. Your merged file downloads in seconds

What makes SynthPDF different: Merging runs entirely in your browser using PDF-lib, a JavaScript library. Your files never leave your device. This matters for contracts, medical records, legal documents, and any PDF containing sensitive information.

Free plan: Up to 20 files per session, up to 25 MB per file.

Limitations of Online Merge Tools

  • File size limits (25 MB on most free tools)
  • Not ideal for automated or recurring workflows
  • Quality: identical to the source files (no re-rendering)

Method 2: Using Adobe Acrobat (Desktop)

If you already have Adobe Acrobat Pro or DC installed:

  1. Open Acrobat and choose Tools > Combine Files
  2. Click Add Files and select your PDFs
  3. Drag thumbnails to reorder
  4. Click Combine
  5. Save the resulting PDF

Cost: Included with Adobe Acrobat Pro ($19.99/month). Not available in Acrobat Reader (free).

Advantage over online tools: No file size limits. Can merge PDFs with complex interactive form fields and maintain their editability in the merged document.

Method 3: Using macOS Preview (Free, Built-In)

If you're on a Mac, Preview can merge PDFs without any extra software:

  1. Open the first PDF in Preview
  2. Choose View > Thumbnails to show the page panel
  3. Drag additional PDF files (or pages from them) into the thumbnail panel
  4. Drag to reorder pages
  5. Choose File > Export as PDF to save the merged file

Limitation: Preview cannot handle very large files well. For PDFs over 50 MB combined, use SynthPDF or Acrobat instead.

Hidden feature: You can drag individual pages from one Preview window into another, making it easy to extract specific pages from multiple files before merging.

Method 4: Using Windows Print to PDF

For basic merging on Windows without extra software:

  1. Open the first PDF in any viewer
  2. Print using Microsoft Print to PDF as the printer
  3. In the print dialog, select multiple files if your viewer supports it

This is limited — it works for printing one file, not easily merging multiple ones. For Windows, a browser-based tool or a free tool like PDF24 works much better.

Method 5: Command Line (For Developers)

For automated workflows, scripting, or bulk operations:

Using pdfunite (Linux/macOS via poppler-utils)

# Install on Ubuntu/Debian
sudo apt install poppler-utils

# Install on macOS via Homebrew
brew install poppler

# Merge multiple PDFs
pdfunite input1.pdf input2.pdf input3.pdf output_merged.pdf

pdfunite is simple and fast, but does not re-optimise the merged file (useful for keeping size small).

Using Ghostscript

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite \
   -sOutputFile=merged.pdf \
   input1.pdf input2.pdf input3.pdf

Ghostscript gives more control over output quality and PDF version compatibility.

Using Python + pypdf

from pypdf import PdfWriter

def merge_pdfs(input_paths: list[str], output_path: str) -> None:
    writer = PdfWriter()
    for path in input_paths:
        writer.append(path)
    with open(output_path, "wb") as f:
        writer.write(f)

merge_pdfs(["doc1.pdf", "doc2.pdf", "appendix.pdf"], "combined.pdf")

Using Python + PDF-lib (Node.js)

import { PDFDocument } from 'pdf-lib';
import fs from 'fs';

async function mergePdfs(inputPaths, outputPath) {
  const merged = await PDFDocument.create();
  for (const path of inputPaths) {
    const bytes = fs.readFileSync(path);
    const doc = await PDFDocument.load(bytes);
    const pages = await merged.copyPages(doc, doc.getPageIndices());
    pages.forEach(page => merged.addPage(page));
  }
  const mergedBytes = await merged.save();
  fs.writeFileSync(outputPath, mergedBytes);
}

How to Reorder Pages Before Merging

All methods allow reordering, but the process differs:

  • SynthPDF: Drag thumbnails in the browser before clicking Merge
  • Acrobat: Drag page thumbnails in the page panel
  • Preview (macOS): Drag pages in the thumbnail view
  • Command line: Order your input files in the desired sequence — pages are merged in the order files are listed

For complex reordering (combining specific pages from multiple files into one document), use SynthPDF's visual interface, which is the most intuitive for page-level control.

Common Problems and Solutions

Problem: Merged PDF is too large

After merging, the file size is the sum of all input files (plus minor overhead). If the result is too large to email or upload, run it through Compress PDF after merging. Medium compression typically reduces the merged file by 40–60% without visible quality loss.

Problem: Some pages are rotated incorrectly

If source PDFs have mixed portrait/landscape orientation, use Rotate PDF on the affected files before merging, then merge the corrected versions.

Problem: Password-protected PDF can't be merged

Locked PDFs must be unlocked before merging. Use Unlock PDF first, then merge the unlocked file. Note: ensure you own or have permission to unlock the file.

Problem: Merged PDF has broken hyperlinks

Hyperlinks in PDFs are stored as annotation objects pointing to destinations within the same document. When pages from different documents are merged, internal links from one document may no longer point to valid destinations. External URLs (web links) are preserved. Internal page-to-page links need manual repair in Acrobat after merging.

Which Method Should You Use?

SituationBest Method
Quick occasional mergeSynthPDF (free, browser-only)
Large files (100 MB+)Adobe Acrobat or Ghostscript
Mac, no extra toolsmacOS Preview
Automated/recurring workflowPython (pypdf) or Ghostscript CLI
Privacy-sensitive documentsSynthPDF (browser-only, no upload)
Complex form fields must stay editableAdobe Acrobat

For most people — students, professionals, small business owners — SynthPDF's free browser tool handles 95% of merge tasks with zero setup and no file uploads.

How PDF Merging Actually Works (Technical)

A PDF file is a tree of objects: page objects, font objects, image objects, and a cross-reference table mapping object IDs to byte offsets in the file. When you merge two PDFs:

  1. Both files are parsed and their object trees are read
  2. Objects from the second file are renumbered to avoid ID conflicts with the first file
  3. The page list of the first document is extended with the pages from the second
  4. A new cross-reference table is written mapping all object IDs to their positions in the merged file

This is a structural operation — no re-rendering, no re-encoding of images or fonts. The merged PDF is as faithful to the originals as the source files themselves.

This is why browser-based merging (using PDF-lib) is fully viable — no server needed, no quality loss.

PDF tips, free. No spam.

One email per week — tool guides, AI document tips, and productivity reads.

No spam. Unsubscribe any time.

Share this article:Twitter / XLinkedIn