How to Merge PDF Files: 5 Methods (Free, Offline, and Fast)

Merging PDFs is a lossless operation — the output is byte-for-byte identical to the originals, just combined. The only real decision is whether to use an online tool (convenient but privacy risk) or an offline tool (private but requires installation). Here's every method, ranked by privacy.

Key insight

Unlike image compression or video encoding, PDF merging doesn't re-process any content. Your images, fonts, and vector graphics remain completely unchanged. A 5MB + 3MB PDF merged always produces an 8MB output — no quality loss, no size change.

Quick answer: To merge PDF files for free in your browser: use Convertlo's PDF merger — add your PDFs, reorder pages if needed, and download the combined file. All processing is local; your files are never uploaded to any server.

Choose Your Method Based on Privacy

✓ Private
macOS Preview

Built-in, no upload, no install. macOS only.

✓ Private
PDFsam Basic

Free desktop app. Windows, Mac, Linux. Open-source.

✓ Private
Python pypdf

Free, scriptable, handles hundreds of files. Requires Python.

✓ Private
pdftk

CLI tool. Very fast for batch operations. Windows/Mac/Linux.

⚠ Upload Required
ilovepdf.com

Free, no install, 300-page limit. Don't use for sensitive files.

Method 1: macOS Preview (Fastest, Built-In)

If you're on a Mac, you already have the best PDF merging tool. Preview's drag-and-drop interface requires no installation and keeps everything on your device.

macOS Only

Preview Drag-and-Drop Merge

  1. Open the first PDF in Preview by double-clicking it.
  2. Go to View → Thumbnails (or press ⌥⌘2) to show the sidebar. You'll see thumbnails of each page.
  3. Open the second PDF in Finder (don't double-click — that opens a new Preview window). Instead, drag it from Finder directly onto the thumbnail sidebar of the first document. Drop it where you want it — between pages, at the end, or at the beginning.
  4. Repeat for any additional PDFs.
  5. Go to File → Save (⌘S) or File → Export as PDF to save the merged result.
Save vs Export

Use File → Export as PDF rather than Save to make a clean copy. The Save command sometimes modifies the original file, and there's no undo for PDF structure changes after the app is closed.

Method 2: PDFsam Basic (Windows / Linux / Mac)

PDFsam Basic is the gold standard free PDF tool for Windows users. It's open-source (AGPL licensed), has no file size limits, and processes everything locally.

Free Desktop App

PDFsam Basic Merge

  1. Download PDFsam Basic from pdfsam.org (free, no registration required).
  2. Open PDFsam and click Merge from the main menu.
  3. Click Add to browse for your PDFs, or drag multiple files directly into the list. You can drag the rows to reorder files.
  4. Configure options: Page range (all pages by default), Bookmark handling (merge, discard, or retain from each file).
  5. Set the output file path, then click Run.

PDFsam also handles page ranges — you can merge pages 1-5 from File A with all pages from File B. This makes it more powerful than Preview for complex document assembly.

Method 3: pdftk (Command Line, Fastest for Batches)

pdftk is a Unix-inspired command-line tool that runs on Windows, Mac, and Linux. It's the fastest option for merging many files — a 50-file merge completes in seconds.

# Merge two PDFs
pdftk file1.pdf file2.pdf cat output merged.pdf

# Merge multiple PDFs
pdftk *.pdf cat output merged.pdf

# Merge specific page ranges from different files
pdftk A=report.pdf B=appendix.pdf cat A1-10 B3-7 A11-end output combined.pdf

Install pdftk: brew install pdftk-java on Mac, or download the installer from pdftk.com on Windows.

Method 4: Python pypdf (Programmable)

pypdf is the right tool when you need to automate merging — assembling reports from templates, combining daily exports, or building a document pipeline.

pip install pypdf

from pypdf import PdfWriter

writer = PdfWriter()

# Add all pages from each file
files = ['intro.pdf', 'chapter1.pdf', 'chapter2.pdf', 'appendix.pdf']
for filename in files:
    writer.append(filename)

# Write the result
with open('complete_document.pdf', 'wb') as output:
    writer.write(output)

print(f"Merged {len(files)} files")
Merge specific pages

Use writer.append(filename, pages=(0, 5)) to append only the first 5 pages (0-indexed). This lets you extract and recombine exactly the pages you need in a single script.

Method 5: ilovepdf.com (No Install, Browser-Based)

For non-sensitive documents when you need a quick merge without installing anything:

  1. Go to ilovepdf.com and click Merge PDF.
  2. Click Select PDF files or drag your files onto the page. You can upload up to 300 pages total on the free tier.
  3. Drag the file thumbnails to reorder them if needed.
  4. Click Merge PDF. The merged file downloads automatically.
Privacy

ilovepdf states they delete uploaded files from their servers within 2 hours. Still: never upload contracts, tax documents, medical records, or any document containing personal data to online services. Use PDFsam, Preview, or pypdf for those.

Tool Comparison

Tool Platform Cost Private? Page Limit
macOS Preview Mac only Free (built-in) ✓ Yes Unlimited
PDFsam Basic Win/Mac/Linux Free ✓ Yes Unlimited
pdftk Win/Mac/Linux Free ✓ Yes Unlimited
pypdf Any (Python) Free ✓ Yes Unlimited
ilovepdf.com Any (browser) Free ✗ Uploads files 300 pages

After Merging: Clean Up Metadata

Merged PDFs often retain metadata from each source file — author name, original creation date, software name. Before sharing a merged PDF professionally, clean the metadata:

# Remove metadata with pypdf
from pypdf import PdfWriter, PdfReader

reader = PdfReader('merged.pdf')
writer = PdfWriter()
writer.append_pages_from_reader(reader)

# Clear metadata
writer.add_metadata({
    '/Author': 'Your Name',
    '/Title': 'Document Title',
    '/Creator': '',
    '/Producer': ''
})

with open('merged_clean.pdf', 'wb') as f:
    writer.write(f)

On Mac, you can check existing metadata by opening the PDF in Preview and going to Tools → Show Inspector → More Info (i icon).

Need to Split, Compress, or Convert PDFs?

Convertlo's PDF tools work entirely in your browser — your files never leave your device.

JPG → PDF PDF → JPG

Frequently Asked Questions

Can I merge PDF files for free without any software?

On macOS, use Preview — it's built into the OS. Open the first PDF, show the thumbnail sidebar (View → Thumbnails), and drag the second PDF from Finder into the sidebar. No install needed. On Windows, PDFsam Basic is a free download. ilovepdf.com works in any browser with no install.

Is it safe to merge PDFs online?

For non-sensitive documents: yes, reputable services like ilovepdf.com delete files after processing. For confidential documents (contracts, financial statements, medical records), use offline tools only: macOS Preview, PDFsam Basic, pdftk, or pypdf.

Does merging PDFs reduce quality?

No — merging is lossless. PDFs are merged at the file structure level, not re-rendered. Images, fonts, and vector content remain completely unchanged. A 5MB + 3MB merge always produces an 8MB file.

What happens to bookmarks and hyperlinks when merging PDFs?

ilovepdf preserves most bookmarks. PDFsam has a bookmark handling option to keep or discard them. pypdf merges content but not outline trees by default — additional code is needed to merge bookmark trees. Cross-document hyperlinks will break after merging since they become internal-only references.