How to Merge PDF Files: Page Order, Bookmarks, and Pitfalls
To merge PDF files, you need a tool that can combine documents. That can be a desktop PDF editor, your operating system's built-in viewer, a browser-based merger, or a command-line tool like qpdf. Put the files in the order you want and save the result as a new PDF. For plain documents, that's the whole job, and the content of each page comes through unchanged.
Problems usually come from what isn't page content. Bookmarks, internal links, fillable form fields, and digital signatures are stored as document-level structures, and merge tools handle them in very different ways. The other common surprises are mixed paper sizes, sideways scans, and large output files.
This guide covers the main ways to combine PDFs, how to plan page order before you merge, what happens to each of those extras, and how to fix the problems that come up most often.
Ways to merge PDF files
Desktop PDF editors
Full PDF editors, both paid and free, usually have a combine or merge command. You get page thumbnails, drag-and-drop reordering, and often an option to add one bookmark per source file. Use one when you need precise control or when the files are confidential and shouldn't leave your computer.
Built-in operating system features
On a Mac, Preview can combine PDFs. Drag pages or whole documents into another document's thumbnail sidebar, then save. Finder can also create a single PDF from several selected files. The exact steps change a little between macOS versions.
Windows has historically not included a dedicated PDF merge command in File Explorer. "Microsoft Print to PDF" prints one document at a time, so it doesn't merge files. On Linux, many distributions ship poppler-utils, which includes a small merge command called pdfunite.
Browser-based tools
Online mergers need no installation, but they work in one of two ways. Some upload your files to a server. Others do all the processing locally in your browser. Unless the tool clearly says it works locally and you trust it, don't upload contracts, medical records, ID scans, or anything else sensitive.
Command-line tools
Command-line tools are the best choice when you merge often, need the same result every time, or want to script a batch job.
- qpdf copies pages without re-rendering them, which keeps text and images exactly as they were. To merge whole files:
qpdf --empty --pages cover.pdf report.pdf appendix.pdf -- combined.pdf - You can choose page ranges, where
zmeans the last page. This command puts the appendix after page 5 of the report:qpdf --empty --pages report.pdf 1-5 appendix.pdf report.pdf 6-z -- combined.pdf - pdfunite also copies pages without re-rendering. It works like this:
pdfunite a.pdf b.pdf out.pdf. The last name is always the output file, so check it before you press Enter. - Ghostscript can also merge files, but it rewrites the whole document. That can change fonts, images, or file size.
| Method | Best for | Watch out for |
|---|---|---|
| Desktop editor | Control over order, bookmarks, forms | Cost; features vary by product |
| OS built-in (e.g., Preview) | Quick merges with no extra software | Limited control; may rewrite links, outlines, or form fields on save |
| Browser-based tool | Occasional merges on any device | Privacy if files are uploaded; file size caps |
| qpdf / pdfunite | Batches, scripts, exact page ranges | Command syntax; no visual preview |
How to plan page order before you merge
Many visual merge tools keep the order in which you add or arrange the files, and File Explorer and Finder sort numbers naturally, so 2-summary.pdf shows up before 10-budget.pdf there. But some tools, and command-line wildcards like *.pdf, sort file names character by character, so 10-budget.pdf can come before 2-summary.pdf because the character "1" comes before "2". Adding leading zeros to the names avoids this in every tool: 01-cover.pdf, 02-summary.pdf, … 10-budget.pdf.
Before you merge, write down where each section will start. Suppose you have:
- Cover: 1 page
- Report: 12 pages
- Appendix: 5 pages
The total is 1 + 12 + 5 = 18 pages. The report runs from page 2 to page 13 (1 + 12 = 13), and the appendix starts on page 14. Having those numbers in hand makes it easy to check the result and to build a table of contents.
Planning for double-sided printing
When you print on both sides, you may want each section to start on a right-hand (odd-numbered) page. In the example above, the report would begin on page 2, which is the back of the cover. Add one blank page after the cover and the report moves to page 3. It now ends on page 14 (3 + 12 − 1), so the appendix would start on page 15, which is odd. No second blank page is needed, and the total becomes 1 + 1 + 12 + 5 = 19 pages.
Step-by-step: a reliable way to merge PDFs
- Copy the source files to a working folder. A merge creates a new file, but working on copies protects you from saving over an original by mistake.
- Rename the files with numeric prefixes (
01-,02-…) so any tool or wildcard sorts them in the order you want. - Open each file and check it. Look for password protection, sideways pages, blank scanner pages, and signatures you need to keep valid.
- Fix rotation in the source files, or plan to fix it in the merged file. Use the command that rotates pages, not one that only rotates the view.
- Merge the files with your chosen tool. If it offers an option to add bookmarks per file or keep existing bookmarks, turn it on.
- Save under a new, descriptive name, such as
2026-project-report-combined.pdf. - Check the output. Confirm the page count matches your plan (18 in the example, or 19 if you added a blank page for double-sided printing), scroll through the thumbnails, click a few bookmarks and internal links, and test one form field.
- Check the file size before you email or upload it. If it's too large, compress the heaviest source file and merge again.
What happens to bookmarks, links, forms, and signatures
Bookmarks
Bookmarks (also called the outline) belong to the document, not to individual pages. Some editors combine each file's bookmarks under a parent bookmark named after the file. Simpler tools drop them entirely. qpdf is focused on pages and doesn't combine the bookmark trees of the input files, so check the qpdf manual for your version if bookmarks matter. If yours are lost, you can add new ones afterward in any editor that supports bookmarks.
Links
Links to websites usually survive a merge because they're stored on the page itself. Internal links, the kind that jump to another page in the same document, are more fragile. If the tool doesn't update them to point to the new page positions, they can go nowhere or land on the wrong page. Click-test any table-of-contents links after merging.
Form fields
PDF form fields are identified by name, and two fields with the same name in one document are treated as one field that shows the same value. If you merge two copies of the same blank form, typing a name into the first copy fills it in on the second copy too. To prevent this, rename the fields in one copy, use a tool that renames duplicates automatically, or flatten the filled-in copies. Flattening turns fields into ordinary page content that can no longer be edited. Some forms built with Adobe's older XFA technology can't be merged in a meaningful way at all.
Digital signatures
A digital signature protects the exact bytes of the file that was signed. A merged file is a new document, so the signature either gets dropped or shows as invalid when you open the file. That's expected and you can't work around it. If the signatures need to stay valid, merge first and sign afterward. Otherwise, keep the signed originals as separate files or attach them to the combined PDF.
Accessibility tags and PDF/A
Tagged PDFs carry a structure that screen readers rely on, and PDF/A files follow rules for long-term archiving. A merge can lose or break either one, depending on the tool. If you need accessibility or archival compliance, run a checker on the merged file instead of assuming it passed through.
Mixed page sizes and orientations
Merging doesn't resize pages. Each page keeps its own dimensions, so a file that mixes US Letter and A4 pages will look a bit uneven when you scroll through it. PDF measures pages in points, where one point is 1/72 inch:
| Paper size | Inches / millimeters | Points |
|---|---|---|
| US Letter | 8.5 × 11 in | 612 × 792 |
| A4 | 210 × 297 mm | about 595 × 842 |
| US Legal | 8.5 × 14 in | 612 × 1008 |
Letter is slightly wider than A4 and A4 is slightly taller, so neither fits exactly on the other. On paper, the print dialog's "fit to page" or "shrink oversized pages" option usually takes care of this. If the PDF itself needs uniform pages, use an editor that can rescale pages to one size. Expect small margins or slight shrinking.
Landscape pages need a separate check. Scanners often save landscape pages in portrait orientation with the content turned sideways. Rotate those pages and save the file. Rotating only the on-screen view isn't saved, so the problem comes back the next time you open it. With qpdf, this command rotates page 2 by 90 degrees clockwise and writes the result to a new file:
qpdf combined.pdf rotated.pdf --rotate=+90:2
Why merged PDFs can be larger or smaller than expected
A merged PDF is usually close to the total of its parts. It can come out smaller if the tool removes duplicate resources, such as an identical logo image. It can come out larger if the tool adds bookmarks or keeps several copies of the same font. Fonts are often embedded as subsets that hold only the characters each file uses, so two files that use the same typeface can each bring their own copy.
Scanned pages usually account for most of the size. Here is an example:
- Cover (text): 0.3 MB
- Report (text and charts): 0.8 MB
- Appendix (30 scanned pages at about 0.48 MB each): 30 × 0.48 = 14.4 MB
Total: 0.3 + 0.8 + 14.4 = 15.5 MB. The appendix is 14.4 ÷ 15.5 ≈ 93% of the file. Compressing the report wouldn't make much difference. Rescanning the appendix at a lower resolution, or compressing its images, would. If you turn photos or screenshots into PDF pages yourself, the image format you start from matters too. Photos saved as JPEG are usually much smaller than the same photos saved as PNG.
Email providers limit attachment size, and the limits vary by service, so check the file size before you send.
Troubleshooting common PDF merge problems
| Problem | Likely cause | Fix |
|---|---|---|
| Files appear in the wrong order | Character-by-character sort (10 before 2) or files added out of order | Rename with leading zeros or reorder manually |
| Tool refuses a file or asks for a password | File is encrypted | Open it with the password and save an unprotected copy, if you're authorized to |
| Bookmarks are missing | Tool doesn't carry over outlines | Turn on a bookmark option, use a different tool, or add bookmarks afterward |
| Table-of-contents links go to the wrong page | Internal links weren't updated | Use an editor that preserves links, or recreate them |
| Typing in one form field fills another | Duplicate field names | Rename the fields or flatten the filled copies |
| Signature panel shows "invalid" | File changed after signing | Expected; merge before signing or attach the signed originals |
| Some pages are sideways | Scanner orientation or rotation not saved | Rotate the pages (not the view) and save |
| Text can't be selected, or looks blurry | Tool turned the pages into images | Use a tool that copies pages directly, such as qpdf |
| Output is too large | High-resolution scanned images | Compress or rescan the image-heavy source file, then merge again |
| Fonts look different after merging | Tool rewrote the file and substituted fonts, or the source didn't embed fonts | Use a tool that copies pages directly, or re-export the source with fonts embedded |
Quick reference: before you hit merge
- Work on copies, and name them
01-,02-,03-… - Add up the pages and note where each section starts.
- Add blank pages if sections must start on right-hand pages.
- Unlock protected files (if you're allowed to) and fix rotation first.
- Merge before signing, not after.
- Check for duplicate form-field names in repeated forms.
- After merging: check the page count, bookmarks, a few links, one form field, and the file size.
- Keep the original files until the merged file has been accepted.
Frequently Asked Questions
Does merging PDFs reduce quality?
Usually not. qpdf and pdfunite copy pages without re-rendering them, so text stays as text and images aren't recompressed. Most editors and Preview also keep text and images intact, but they may rewrite other parts of the file, such as links, outlines, or form fields, so check the output. Quality drops only if the tool turns pages into images or you pick a compression setting during the merge.
Will merging PDFs change my original files?
No. A merge writes a new file and leaves the sources as they were. The only risk is saving the result under the same name as one of the originals, so always give the merged file a new name.
Can I merge PDFs on an iPhone or Android phone?
Recent versions of the Files app on iPhone and iPad can turn several selected files into one PDF. On Android it depends on your device and installed apps. Some file managers and PDF apps can merge files, and browser-based tools work on any phone, but keep the privacy of uploaded files in mind.
How do I split a merged PDF back into separate files?
Most PDF editors have an extract or split command that saves a page range as a new file. With qpdf, qpdf --empty --pages combined.pdf 2-13 -- report.pdf pulls pages 2 through 13 into a new file that starts clean, without the combined file's outline or other document-level data. Bookmarks and signatures from the original files won't come back, but the page content will be the same.
Why can't I merge a PDF that opens fine in my viewer?
The file may have an owner password that allows viewing but blocks editing or assembling pages, and some merge tools respect that restriction. It could also be damaged in a way that viewers tolerate but merge tools don't. Saving a fresh copy from a viewer or editor often fixes it, as long as you're authorized to change the file.