Merging PDF files into one document
How to join several PDFs into one file in the order you want, why copying pages keeps them exactly as they were, and what can stop a PDF from being merged.
Last reviewed · 1,217 words
In short
- Merging copies every page of each PDF into one new file, in the order of the list, so the first file's pages come first.
- Pages are copied, not turned into pictures, so text stays sharp and selectable and links keep working.
- Up to 50 PDFs of up to 100 MB each can be joined at a time; very large scans are kinder to a phone in two batches.
- A password-protected PDF has to be unlocked in a PDF reader before it can be merged.
- The files are read and joined in your browser tab and never uploaded.
Documents arrive in pieces. A college asks for a single PDF of your marksheets, but each year's marksheet is its own scan. A visa file needs the passport copy, the bank statement and the employment letter together. A client wants one report, and three people wrote three parts of it. Merging joins those pieces into one file without retyping or rescanning anything, and done properly it leaves every page exactly as it was. This page explains how merging works, how to get the order right, and the few things that can stop a PDF from joining the others.
How to merge PDFs here
Choose two or more PDFs with the file picker. They appear in a numbered list, each with its page count and size. The number on the left is the order the pages will follow in the merged file: every page of file 1, then every page of file 2, and so on.
Use the up and down arrows beside a file to move it, and the cross to take it out. If your files are named in a sensible order, such as 01-cover.pdf, 02-marksheet.pdf, the Sort by file name button arranges them at once. It sorts numbers the way a person would, so file 2 comes before file 10, which a plain alphabetical sort gets wrong.
You can add more files at any point; they join the end of the list. When the order is right, press Merge PDF. The tool shows how many pages the new file has, and a Download button saves it under the first file's name with -merged added, such as marksheets-merged.pdf.
If you change the order after merging, a note says the download no longer matches the list. Press Merge again to make a new one.
What merging actually does
A PDF is a set of objects: pages, the fonts and images those pages use, and a page tree that lists the pages in order. The PDF standard, ISO 32000, describes each page as an object that carries its own size, its rotation and its content, the drawing instructions that put text and pictures on it.
Merging builds a new, empty PDF and copies each page object into it from the source files, together with every font and image that page needs. The page tree of the new file lists the copied pages in the order of your list. Nothing on the pages is drawn again. A line of text that was real text in the original is still real text in the merged file: you can select it, search for it and copy it. A link that worked still works. A scanned page that was a photograph stays the same photograph, at the same resolution.
That is the difference between merging and printing several files to one PDF, or converting pages to images and back. Those routes redraw each page, which can blur small print, lose the text layer and make the file much larger. Copying avoids all three.
Page sizes are kept as they were. If one file is A4 and another is Letter, or a page is landscape, the merged file has those same sizes in the same places. A PDF reader shows each page at its own size, so a landscape page sits sideways in the scroll only if it was saved that way. If a page is the wrong way up, the rotate PDF tool fixes it before or after merging.
The first file's title, if it has one in its document properties, becomes the title of the merged file. That is the name some readers show in the window bar instead of the file name.
Getting the order right
The order of the list is the order of the pages, so it is worth a minute before you press Merge. A few habits help.
Name files before you add them. If you will merge the same kinds of documents often, number them in the name: 1 application, 2 ID proof, 3 address proof. Then the sort button puts them in order in one press.
Put the cover or index first. A reader who opens the file sees page 1. If the form asks for a covering letter or an index, it belongs at the top of the list.
Check page counts. The list shows each file's pages. If a file you expected to be one page shows three, open it before merging: it may contain blank pages or a duplicate scan, which you can take out with the delete PDF pages tool first.
Merge in stages for very long sets. Ten files can be merged in one go. With dozens of large scans, merging them in groups and then merging the groups is easier on a phone's memory, and the result is the same.
Size of the merged file
Because pages are copied rather than redrawn, the merged file is roughly the sum of its parts. Three scans of 400 KB, 600 KB and 1.2 MB make a file of about 2.2 MB. It can come out slightly smaller when two files share the same font, since that font is then stored once, and slightly larger because of the small amount of structure every PDF carries.
That matters when a form sets an upload limit. If the merged file is over the limit, the compress PDF tool brings it down to a size such as 200 KB or 500 KB by saving its pages again as pictures at a quality that fits. Do that last, after merging, because compressing first and merging afterwards adds the files' sizes back together.
| Files merged | Their sizes | Merged file, about |
|---|---|---|
| 2 typed documents | 80 KB + 120 KB | 200 KB |
| 3 phone scans | 400 KB + 600 KB + 1.2 MB | 2.2 MB |
| 10 one-page scans | 300 KB each | 3 MB |
The figures in the last column are what simple addition gives; the exact size is shown after merging.
Files that cannot be merged
Password-protected PDFs. A PDF can be encrypted so that it needs a password to open, or locked so that it opens freely but forbids changes. In both cases its pages cannot be copied into another file, and the list marks that file and says it will be left out. Open it in a PDF reader with the password, use the reader's option to save or print a copy without security, and add that copy. Bank statements and some government downloads are often protected this way; the password is usually stated in the email or on the page you downloaded it from.
Damaged files. A PDF that was cut short while downloading, or is not really a PDF at all, cannot be read. The list says so. Download it again, or open it in a reader to check it.
Files that are not PDFs. A photo or a Word document has to become a PDF first. For photos, the JPG to PDF tool makes one PDF from several pictures at once; for a Word file, save or export it as PDF from Word itself.
Very large files. Each file can be up to 100 MB. A phone with little memory may still struggle with several files near that size; if the tab closes or the merge fails, merge fewer at a time.
Sources
- ISO 32000-2:2020 — Portable document format, Part 2 (PDF 2.0), which defines pages and the page tree
- pdf-lib — the JavaScript library that copies the pages between documents
- Mozilla — PDF.js, used in our tests to re-open every merged file and read its pages back
- Adobe Acrobat Help — remove a password from a PDF you are allowed to open