How to Merge PDF Files Online for Free: Complete Guide 2026

Combine multiple PDFs into one document — quickly, safely, and without spending a dime. Every method compared.

PDF Tools 2026-04-09 By Risetop Team 12 min read

Merging PDF files is one of the most common document tasks in both professional and personal workflows. Whether you're combining scanned receipts for expense reports, assembling a multi-chapter report from individual section files, or creating a single portfolio from separate artwork PDFs, you need a reliable way to combine multiple PDFs into one.

This guide covers every approach available in 2026: browser-based online tools, desktop software, command-line utilities, and programmatic methods. We'll compare their strengths, walk through step-by-step instructions for each, and help you pick the right method for your situation.

Why Merge PDFs?

Before diving into the how, let's cover why merging is useful. Understanding your use case helps you choose the right tool:

Method 1: Online PDF Merge Tools (Fastest)

Online tools are the fastest option for occasional use — no installation, no configuration, just upload and download. Here's how to use one:

Step-by-Step: Merging PDFs Online

  1. Open the merge tool — Navigate to the PDF merge tool in your browser
  2. Upload your files — Click the upload area or drag and drop your PDF files. Most tools accept 2–20 files at once
  3. Arrange the order — Drag the file thumbnails into the correct order. This is critical for multi-chapter documents
  4. Click "Merge" — The tool processes your files and generates a single combined PDF
  5. Download the result — Save the merged PDF to your device
💡 Pro tip: Some online tools, including Risetop's PDF merger, process everything in your browser using JavaScript. This means your files never leave your device — the safest possible approach for sensitive documents.

What to Look For in an Online Merger

Method 2: Desktop Software (Best for Power Users)

If you merge PDFs frequently or work with very large files, desktop software is more reliable than online tools. Here are the main options:

Using Adobe Acrobat

Adobe Acrobat is the gold standard for PDF manipulation. Its "Combine Files" feature lets you merge hundreds of files, rearrange pages, and apply consistent headers/footers:

  1. Open Adobe Acrobat and go to Tools → Combine Files
  2. Add your PDF files using the file picker
  3. Drag to reorder if needed
  4. Click Combine and save the result

Using Preview on macOS

macOS users don't need extra software — Preview has built-in PDF merging:

  1. Open the first PDF in Preview
  2. Open the thumbnails sidebar (View → Thumbnails)
  3. Drag additional PDF files from Finder directly into the thumbnail sidebar
  4. Rearrange pages as needed, then export (File → Export as PDF)

Using PDF Arranger (Linux/Windows)

PDF Arranger is a free, open-source tool available on all platforms. It provides a visual drag-and-drop interface for merging, splitting, rotating, and reordering PDF pages:

# Install on Ubuntu/Debian sudo apt install pdfarranger # Install on macOS with Homebrew brew install --cask pdfarranger # Windows: Download from pdfarranger.org

Method 3: Command Line (Best for Automation)

For developers, sysadmins, or anyone who wants to script their PDF workflows, command-line tools are unbeatable.

Using pdftk

pdftk (PDF Toolkit) is the most versatile command-line PDF tool. It's fast, reliable, and handles virtually any merge scenario:

# Install pdftk sudo apt install pdftk # Debian/Ubuntu brew install pdftk-java # macOS # Basic merge (all files in order) pdftk file1.pdf file2.pdf file3.pdf cat output merged.pdf # Merge all PDFs in a directory (sorted alphabetically) pdftk *.pdf cat output merged.pdf # Merge specific page ranges pdftk A=file1.pdf B=file2.pdf cat A1-3 B5-end output merged.pdf

Using qpdf

qpdf is another excellent command-line tool that's particularly good at preserving PDF structure and handling encrypted files:

# Install qpdf sudo apt install qpdf brew install qpdf # Merge files qpdf --empty --pages file1.pdf file2.pdf file3.pdf -- merged.pdf

Using Ghostscript

Ghostscript is the most powerful (and most complex) option. It's especially useful when you need to optimize file size during merging:

# Merge with file size optimization gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite \ -dPDFSETTINGS=/ebook \ -sOutputFile=merged.pdf \ file1.pdf file2.pdf file3.pdf

No installation needed. Merge your PDFs right now in your browser.

Merge PDFs Online →

Method 4: Programming (Best for Developers)

Python — PyPDF2

from pypdf import PdfMerger merger = PdfMerger() files = ["report_cover.pdf", "report_body.pdf", "report_appendix.pdf"] for f in files: merger.append(f) merger.write("complete_report.pdf") merger.close()

Python — PyMuPDF (fitz)

import fitz # PyMuPDF result = fitz.open() for filename in ["part1.pdf", "part2.pdf", "part3.pdf"]: with fitz.open(filename) as pdf: result.insert_pdf(pdf) result.save("combined.pdf") result.close()

JavaScript — pdf-lib

const { PDFDocument } = require('pdf-lib'); const fs = require('fs'); async function mergePDFs(files, output) { const merged = await PDFDocument.create(); for (const file of files) { const bytes = await fs.promises.readFile(file); const pdf = await PDFDocument.load(bytes); const pages = await merged.copyPages(pdf, pdf.getPageIndices()); pages.forEach(page => merged.addPage(page)); } const result = await merged.save(); await fs.promises.writeFile(output, result); } mergePDFs(['a.pdf', 'b.pdf', 'c.pdf'], 'merged.pdf');

Node.js — Using pdf-merge

const PDFMerge = require('pdf-merge'); PDFMerge(['file1.pdf', 'file2.pdf', 'file3.pdf'], { output: 'merged.pdf' }).then(() => console.log('Done!'));

Common Problems and Solutions

Merged PDF is too large

If your merged file is bloated, the cause is usually duplicate font embeddings or uncompressed images. Solutions include:

Page order is wrong

Most online tools and desktop software let you drag to reorder. With command-line tools, the file order in the command determines the page order. Always double-check before running the merge.

Bookmarks/Outlines are lost

Basic merging often strips bookmarks. To preserve them:

Different page sizes in merged PDF

This is actually normal and usually fine — PDFs support mixed page sizes within a single document. If you need uniform pages, use a tool like PyMuPDF or Adobe Acrobat to resize pages before or after merging.

Security Considerations

When merging PDFs, especially with sensitive content, keep these security practices in mind:

Need to merge PDFs right now? No signup, no watermark, no file upload.

Free PDF Merger →

Comparison Table

MethodSpeedPrivacyBest For
Online toolSecondsVariesQuick one-off merges
Desktop softwareFastExcellentFrequent use, large files
Command lineFastestExcellentAutomation, batch processing
ProgrammingVariableExcellentIntegration into apps

Conclusion

Merging PDF files is a solved problem with many excellent solutions. For most people, an online PDF merger that works in the browser is the fastest and most convenient option. Power users should consider desktop tools like PDF Arranger or command-line utilities like pdftk for batch processing. Developers can integrate PDF merging directly into their applications using libraries like PyPDF2 or pdf-lib.

The key takeaway: choose the method that matches your frequency of use and security requirements. For a one-time merge of a few files, online tools are perfect. For daily workflows with sensitive documents, invest in a local solution.