Skip to content
TrueScalers

Merge PDF files

Merging PDF files combines several documents into one by copying every page from each source into a new file, in the order given. Merging a 12-page contract with a 4-page appendix produces a single 16-page document. Page dimensions, embedded fonts and image quality are all preserved exactly, because content streams are copied rather than re-encoded.

Loading tool…

How to merge PDF files

  1. 01

    Add your PDF files

    Drag two or more PDFs onto the drop zone, or click it to choose them from your device. Files are listed in the order they will be merged.

  2. 02

    Check the order

    The list shows each file with its size. Clear the list and re-add the files if the order is wrong, since pages are copied in exactly the sequence shown.

  3. 03

    Merge the documents

    Press Merge PDFs. Each source is parsed and its pages are copied into a new document that is built entirely in this page.

  4. 04

    Download the result

    Press Download to save the merged file. Nothing was uploaded, so closing the tab is all that is needed to discard everything.

The formula

output pages = Σ pages(fileᵢ)     output size = Σ size(fileᵢ) − shared resources
pages(fileᵢ)
The number of pages in the i-th source document.
output pages
The total page count of the merged file, in the order the sources were added.
shared resources
Fonts, colour profiles and images that appear in more than one source and are stored once in the output.
object streams
A PDF 1.5 compression feature that packs many small objects into one compressed stream, shrinking the merged file further.

Merging is a structural operation, not a re-encode. Page content streams are copied verbatim, so text stays selectable, images keep their original compression, and a merged file is never blurrier than its sources. Interactive form fields and digital signatures are the exception: signatures cover a specific byte range and are invalidated by any change to the file.

Worked example

File 1
contract.pdf — 12 pages, 840 kB
File 2
appendix.pdf — 4 pages, 260 kB
File 3
signatures.pdf — 1 page, 95 kB
Result
merged.pdf — 17 pages, about 1.1 MB

The three documents contribute 12 + 4 + 1 = 17 pages, assembled in the order listed. Raw input totals 1,195 kB, but the merged file lands near 1,100 kB because the three sources share an embedded font subset that is stored once rather than three times, and because the output is written with object streams enabled. Every page keeps its original dimensions, so an A4 contract and a US Letter appendix remain their own sizes inside one file.

Frequently asked questions

How do you combine multiple PDF files into one?

Add every file to the tool, confirm the order shown in the list, then press Merge. Each source document is parsed and its pages are copied page by page into a new PDF, which is assembled in the browser and offered as a download. Page order follows the file order exactly, so arranging the list correctly before merging is the only step that matters.

Does merging PDFs reduce quality?

No. Merging copies each page's content stream verbatim rather than re-rendering it, so text remains selectable, vector graphics stay sharp at any zoom, and images keep the exact compression they arrived with. A merged file is never blurrier than its sources. Quality loss only happens when a PDF is compressed, which is a separate operation.

Is there a limit on how many PDFs can be merged?

The tool imposes no count limit, and each file may be up to 100 MB. The practical ceiling is the memory available to the browser tab, since every document is held in memory during the merge. Merging a few dozen ordinary documents is comfortable; combining several hundred-megabyte scanned files may exhaust a low-memory device.

Are the PDF files uploaded to a server?

No file is uploaded at any point. Merging runs on the pdf-lib library executing as JavaScript inside the page, so documents are read from local disk into browser memory, rebuilt there, and written back out as a download. This site has no server-side code capable of receiving a file, which is what makes the tool safe for contracts and medical records.

Will bookmarks, links and form fields survive a merge?

Page content, embedded fonts and images are preserved exactly. Document-level structures behave differently: outline bookmarks and the document-wide form dictionary belong to the source file rather than to any individual page, and are not carried across. Digital signatures are always invalidated by merging, because a signature covers a specific byte range that any edit changes.

Can password-protected PDFs be merged?

A PDF with an owner password restricting permissions can usually be read, but one encrypted with a user password cannot be opened without that password and will be rejected. Remove the password in a PDF reader first, then merge the unprotected copy. No password is ever transmitted, since the whole operation happens locally.

Why is the merged file smaller than the sum of its parts?

Two effects shrink the output. Resources duplicated across sources — most often an embedded font subset or a shared colour profile — are written once in the merged document instead of once per file. The output is also saved using PDF object streams, which pack many small structural objects into a single compressed stream.

Sources

Last reviewed: · Formula and sources verified by Syed Aqeel Ahmad Gillani. See the methodology for how every calculation is derived.