Skip to content
Intera Tools

Tutorials

How to Merge PDF Files Safely Without Uploading Them

Most online PDF mergers upload your files to a server, merge them there and send the result back. That's fine for a menu or a flyer, but not for a signed contract, a payslip or a copy of your ID. This guide explains how merging in the browser avoids the upload, how to get the page order right, and what a merge keeps and drops, based on how the underlying PDF library actually behaves.

Intera Tools5 min read

Key points

  • Uploading confidential PDFs leaves copies on computers you don't control. In-browser merging keeps the files on your device.
  • Merge PDF uses the open-source pdf-lib library inside your browser tab. Pages are copied as they are, not re-rendered, so text stays sharp and searchable.
  • Page content, annotations and links to websites carry over. Bookmarks, working form fields, links within the document and document properties don't.
  • Password-protected PDFs have to be unlocked first. Use Organize PDF afterwards to delete, rotate or reorder individual pages.

Why uploading confidential PDFs is a risk

When a website merges PDFs on its server, your files are transferred to, and at least temporarily stored on, machines you don't control. A privacy policy may promise deletion after an hour, but you can't check when that happens, who can access the files in the meantime, whether they end up in logs or backups, or which country the server is in. For documents with ID numbers, bank details, signatures, medical information or client data, that's a real exposure.

At work there is a second issue: uploading company or client documents to an unapproved online service can break your employer's data-handling rules or a confidentiality agreement, even if nothing ever leaks.

How merging in the browser works

When you open Merge PDF, your browser downloads the page's code, including the open-source pdf-lib library. When you click Merge PDF, pdf-lib reads each file from your device's memory, copies its pages into a new document, and the browser offers that document as a download. The PDFs are never sent anywhere, and the result exists only in your browser tab until you download it or close the tab.

You can check this yourself. Open your browser's developer tools (F12 on most desktop browsers), switch to the Network tab and then add your files. You'll see the site's scripts, small anonymous usage events, page analytics and ad requests, but never a request carrying your PDFs. The guide to browser-based file tools explains what each request contains.

Step by step

  1. 01

    Add your PDFs

    Open Merge PDF and drop your files onto the page or choose them. You can add up to 50 files of up to 200 MB each. Every file shows a thumbnail of its first page and its page count.

  2. 02

    Set the order

    Drag the tiles into place or use the arrow buttons on each tile. Sort A–Z sorts by file name with numbers in natural order, so scan-2 comes before scan-10. The Merge order list in the options shows the final sequence.

  3. 03

    Check for problem files

    Files that need a password to open, or that are damaged, are flagged with a warning, crossed out in Merge order and left out of the merge. You need at least two valid files.

  4. 04

    Merge and download

    Click Merge PDF. The result is named merged-N-files.pdf, where N is the number of files merged. Download it, or under Continue with, send it straight to Organize PDF, Split PDF or another PDF tool without adding it again.

ToolMerge PDFCombine PDFs in your browser. Nothing is uploaded.Open tool

Getting the order right

Merge PDF arranges whole files: every page of the first file, then every page of the second, and so on. If your files are named in the order they belong (01-contract.pdf, 02-annex-a.pdf), Sort A–Z gets it right in one click. If you need to mix pages from different files, for example inserting a signed signature page into the middle of a contract, use Organize PDF instead (see below).

What a merge keeps and what it drops

pdf-lib copies each page together with everything the page refers to: its text, fonts, images and the annotations attached to it. It doesn't copy the parts of a PDF that belong to the document as a whole rather than to a single page. We checked this by merging a test PDF that contained a bookmark, a filled-in form field, an internal link and a web link, then inspecting the output.

ItemAfter merging
Page content: text, images, vector graphics, embedded fontsKept as is; not re-rendered or recompressed, and text stays selectable and searchable
Page size and rotationKept; files with mixed page sizes stay mixed
Annotations such as comments, highlights and stampsKept on their pages
Links to websitesKept and still work
Links to other pages in the same document, such as clickable tables of contentsMay stop working, because they point at pages in the original file
Bookmarks (the document outline)Not kept
Fillable form fieldsEntered values usually remain visible, but the fields may no longer work as an editable form
Title, author and other document propertiesNot carried over
File attachments, page labels and accessibility tagsNot kept; they are stored at document level
Digital signaturesNo longer valid; a signature only certifies the exact original file
What survives a merge with pdf-lib

Because pages are copied rather than recompressed, the merged file is roughly as large as the originals combined. Merging doesn't shrink files. If the result is too big to attach, compression has to happen in a separate step.

Password-protected PDFs

pdf-lib can't open encrypted PDFs, so Merge PDF shows "This PDF is password-protected. Remove the password first, then try again." This also applies to PDFs that open without a password but restrict printing or editing; those are encrypted too. Such a file may look normal in the list, and the message appears when you click Merge PDF. If you know the password, save an unprotected copy in a PDF app you trust and merge that copy; A PDF won't open, merge or split lists three ways to do it. Delete the unprotected copy once you no longer need it.

Tidy up the result with Organize PDF

Organize PDF works page by page. Drag pages into a new order, use Rotate page or Delete page on individual pages (Reset changes undoes all your edits), Insert blank page where you need a separator, and Add PDF to bring in more files. When several files are loaded, each page is marked with its source file's letter and color. Click Save PDF to get the new document. Organize PDF copies pages the same way as Merge PDF, so the same list of kept and dropped items applies.

For interleaving, such as putting front and back scans in the right order or slotting a page into the middle of another file, you can skip Merge PDF entirely: load all the files into Organize PDF and arrange the pages there. If some of your pages are photos or scans saved as images, turn them into a PDF first with JPG to PDF.

ToolOrganize PDFReorder, rotate, delete or insert pages, and combine files page by page.Open tool

Questions

Are my PDFs really not uploaded?

No, they aren't. The merge runs in your browser with pdf-lib, and the files stay in your device's memory. You can confirm it in the Network tab of your browser's developer tools while you merge.

Does merging reduce quality?

No. Pages are copied without re-rendering or recompressing text and images. The merged file is about as large as the originals combined.

Why did my bookmarks disappear after merging?

Bookmarks belong to the document as a whole, not to individual pages, and pdf-lib only copies pages. Internal links and interactive form fields may stop working for the same reason.

Can I merge password-protected PDFs?

Not directly. Encrypted files are flagged and left out, or stop the merge with a message if they only restrict printing or editing. Open them with the password in a PDF app, save an unprotected copy and merge that.

Can I merge PDFs on my phone?

Yes, Merge PDF works in mobile browsers too. Very large files may be slow, or fail on phones with little memory, because everything is processed on the device.

Sources

  1. pdf-lib: encryption handling (README)
  2. pdf-lib API: PDFDocument.copyPages

Related tools