Zashify

Workflows

How to Merge PDF Files in the Right Order

Merging is technically trivial. Deciding the order, checking the page sizes and putting the file back together without uploading it is the actual work.

Zahid Sheeraz5 min read

Merging PDF files is one of those jobs that should take ten seconds. Drop the files in, pick an order, press the button. The reason it does not is rarely the tool - it is that the order is a decision, and the decisions belong to you.

This guide is about making those decisions correctly, and about the handful of things that go wrong when you skip them.

Why the order is the whole job

Technically, merging is trivial: take the pages of file A, then the pages of file B, then the pages of file C. Every PDF file format on earth supports that.

But the result is a document, and a document has an argument: this is the cover, then this, then this. Put the invoice before the cover page and nobody can use the file, no matter how technically correct the merge was.

So before you merge, answer one question: what is the reader supposed to read first? Everything else follows from it.

The usual answers:

  • A cover letter, then a CV - the letter is the reason for the CV
  • An invoice, then the supporting receipts - the invoice is the document, the receipts are the evidence
  • A report in parts, sent separately by email - part one, part two, part three, in the order they were meant to be read
  • A signed contract plus its annexes - the agreement, then the schedules

Before you merge: four things to check

Page size and orientation. This is the one that most often produces an ugly result. A document built on A4 and a scan made on Letter will sit side by side in the merged file at different widths. Nothing is broken - it just looks careless, and it prints badly. If the sizes differ, decide which one you are standardising on, and convert the odd one out first.

Encryption. A PDF that asks for a password to open cannot be merged. Remove the protection first, and then merge. Password-protected files are also the ones most worth keeping on your own machine.

Which file has the bookmarks and the outline. When a document has a table of contents built from PDF bookmarks, the merged file usually loses it, and it sometimes picks up the bookmarks of the first file only, which then point at the wrong pages. If the outline matters, check it afterwards.

Whether the pages are landscape for a reason. A wide table that has been rotated so it fits on a portrait page is a deliberate act. Merging it back next to portrait pages restores the rotation - and if the original had the sideways table baked in, the merged file will show it sideways. A quick scroll through the first few pages of each file catches this.

How to merge without uploading

The obvious way to merge PDFs is to upload them to a website. Which means the documents - and merged documents are rarely throwaway - end up on someone else's server.

A payslip, a signed contract, a client's tax return and a tenancy agreement are exactly the kind of files people regret uploading. The Merge PDF tool combines the files on your own device instead, so the only copy that ever existed is the one you had.

What you cannot merge

Two things will not work, and it is better to know before you try:

  • Encrypted files. As above - remove the password protection first.
  • Forms with dynamic fields (XFA). A PDF that contains an interactive form with JavaScript-driven fields is a different kind of document. Merging copies the pages, but the behaviour of the fields can be lost. If the form has to keep working, do not merge it.

Everything else - scans, born-digital documents, mixed sizes, mixed years - merges fine. A merge is a copy operation, so the pages come out identical to how they went in.

The mistakes people make

Merging before checking the order, and then doing it again. The order list in the tool is editable, so there is no need to get it right the first time - but it is much less work to set the order deliberately once.

Forgetting that a file may already contain several pages. "Invoice.pdf" might be one page; "Contract-final-v3-FINAL.pdf" might be forty, and its cover page might be the last thing you want first. Check the page count of each file, not just the names.

Merging a document that was split badly. If you split a document into the wrong pieces earlier, merging it back in the wrong order reproduces the mistake, with more steps. This is the usual reason to run Split PDF and Merge PDF together: split into logical parts, then rebuild in the right order.

Expecting the file to shrink. Merging two 5 MB PDFs gives you a 10 MB PDF. The bytes of the pages are still there. If size matters, compress the merged file afterwards, not before.

After you merge: three quick checks

Open the merged document and look at three things, in this order:

  1. The first page. Is it the page you expected to be first?
  2. The seams. Look at each point where one file ended and the next began. That is where a rotated page, a different paper size or a stray blank page shows up.
  3. The last page. Off-by-one errors in ranges and a trailing blank page both hide here.

Then check the page count matches the sum of the files you merged. If it does not, a file was encrypted or something was skipped.

A short checklist

  • Decide the order before you open the tool, not after.
  • Check page sizes and standardise the odd one out first.
  • Remove passwords from any file that asks for one.
  • Merge in the browser if the documents are anything you would not want on a stranger's server.
  • Check the first page, the seams and the last page before you send it.

Frequently asked questions

Do my files get uploaded when I merge them?

No. The merge happens entirely in your browser, using local processing. The files are read from your device and written back to it - they never reach a server.

Can I merge password-protected PDFs?

Only files that are not encrypted. If a PDF asks for a password to open, remove the protection first, then merge it.

Is there a file size limit?

The practical limit is your device's memory. A page warns you when the files get large enough that a browser may struggle.

What happens if the pages are different sizes?

They are kept as they are. Merging does not resize pages, so a document can end up with A4 pages next to Letter pages - which looks wrong when printed. Check the sizes before you merge.

Try these tools

  • Merge PDFCombine up to 20 PDFs into a single document, in the order you choose.

Related guides

← Back to the blog