Tutorial

How to Merge PDF Files Online: A Complete Guide

Step-by-step guide to merging multiple PDF files into one. Learn when to merge vs. keep separate, how to control page order, and why browser-based merging is safer for sensitive documents.

LuraPDF Team
LuraPDF Team

Editorial & Technical Team · May 2, 2026 · 6 min read

Merging PDFs sounds simple — and it is — but the details matter more than people expect. Page order, file size, bookmarks, metadata conflicts, and what happens to interactive form fields after merging all affect whether the result works the way you intend.

This guide covers the full picture: how to merge PDFs correctly using LuraPDF, how to control page order, what happens to bookmarks and forms, and — importantly — when merging is the wrong choice.

How PDF Merging Works

When you merge PDFs, you're combining the page trees of multiple PDF documents into a single PDF object structure. At the technical level, pdf-lib (the library powering LuraPDF) reads each document's page dictionary, normalizes shared resources (fonts, images, color spaces) to avoid naming collisions, then assembles them into a new PDF with a unified page tree.

This matters for one practical reason: resource deduplication. If three input PDFs all embed the same font, a naïve merger includes that font three times. A smart merger detects the duplicate and includes it once, reducing the output file size. LuraPDF handles this automatically.

Step-by-Step: Merging PDFs with LuraPDF

  1. Open the merge tool: Navigate to LuraPDF Merge PDF.
  2. Add your files: Drag and drop multiple PDFs onto the drop zone, or click to browse. You can add files from multiple drag-and-drop operations.
  3. Set the page order: Your files appear as a list. Drag to reorder them. The final PDF pages will appear in this sequence.
  4. Click "Merge PDF": Processing happens in your browser — no upload required.
  5. Download: The merged PDF is ready immediately. The filename defaults to merged.pdf.

Controlling Page Order

The most common merge mistake is not thinking about page order before clicking merge. LuraPDF shows a drag-and-drop list of your files, not individual pages. If you need to interleave pages from multiple documents (e.g., alternating pages from two scanned document sides), use the Reorder Pages tool on the merged output.

For complex ordering requirements:

  1. Merge the files in rough order
  2. Use Reorder Pages to fine-tune the sequence
  3. If needed, use Extract Pages to split out and recombine specific sections

What Happens to Bookmarks After Merging?

PDF bookmarks (also called outlines) are document-level navigation aids. When you merge PDFs:

  • LuraPDF preserves bookmarks from each source document, nesting them under a top-level entry named after the source file
  • Each source document's internal bookmark hierarchy is preserved intact
  • Cross-document bookmarks (bookmarks in document A that link to pages in document B) become invalid after merging because the page numbers change

If the source documents have no bookmarks, the merged PDF has no bookmarks — which is fine for most use cases.

What Happens to Form Fields?

Interactive PDF form fields present a complication. If two documents contain a form field with the same name (e.g., both have a field called "Signature"), PDF specification requires that fields with identical names share the same value. This means filling the field in one location fills it everywhere with that name.

The safest approach when merging documents with forms:

  • Flatten the forms first using LuraPDF's Flatten PDF tool, then merge. Flattening converts interactive fields to static visual content.
  • Alternatively, merge first, then flatten the result.

Never merge two filled interactive forms expecting them to remain independently editable — the field name collision will cause unexpected behavior.

When to Merge vs. Keep Separate

Merging is not always the right answer. Consider these scenarios:

Merge when:

  • You're sending a single submission that requires one attachment (job application with CV + cover letter + portfolio)
  • You need a combined document for archival or filing
  • A client or system requires a single file
  • You're creating a report from sections prepared by different people

Keep separate when:

  • Documents need to be referenced independently (you'll search for one by name)
  • Individual documents will be updated over time
  • Signatories need to sign specific documents, not a combined one
  • File permissions differ per document (some confidential, some not)

The most common merge mistake in professional contexts: merging documents that will later need to be separated. Once merged, separation requires splitting the PDF by page range — which works, but requires you to remember where each section starts.

Merging Large Files

If you're merging many large PDFs (e.g., 10 × 20 MB files = 200 MB total), browser-based processing works but requires sufficient RAM. Modern browsers can handle this, but:

  • Close other tabs to free memory
  • Process in batches if your system is RAM-constrained (merge 5 at a time, then merge the results)
  • After merging, consider compressing the result — individual document images may contain duplicates that compress well after merging

Privacy: Why LuraPDF's Approach Matters for Merging

You often need to merge documents precisely when they contain sensitive content — contracts, medical records, financial statements. Every cloud-based PDF merger you've used received a copy of those files.

LuraPDF uses pdf-lib entirely in your browser tab. Zero bytes are transmitted to any server. The merge operation runs in JavaScript within your browser's sandboxed memory. The only copy that exists is the one you download.

Frequently Asked Questions

Can I merge PDFs of different page sizes? Yes. LuraPDF preserves each page's original dimensions. The merged PDF may have mixed page sizes (e.g., A4 pages followed by US Letter pages). This is valid PDF and renders correctly in all viewers.

Is there a file count or size limit? No server-side limits — the constraint is your browser's available RAM. In practice, merging dozens of files up to several hundred MB total works on most modern computers.

Can I merge password-protected PDFs? Remove passwords first with Unlock PDF, then merge.

The merged PDF is much larger than the sum of inputs — why? This usually means the source files contained many unique embedded images that couldn't be deduplicated. Compress the merged PDF after merging for a second round of size reduction.

Can I add a specific page range from one PDF to a merge? Extract the pages you need first using Extract PDF Pages, then merge the extracted portion with other documents.

Merging PDFs is a five-second operation when the inputs are clean. When they're not — mixed page sizes, conflicting form fields, bookmarks, large sizes — spending a minute understanding what you're working with saves time troubleshooting the result.

About the author

LuraPDF Team
LuraPDF Team

Editorial & Technical Team · May 2, 2026 · 6 min read

The LuraPDF team consists of document processing experts, software engineers, and technical writers dedicated to making professional PDF editing free, private, and accessible.