Menu
Advertisement

Merge PDF Files Online

Combine several PDFs into one file, in the order you choose. Nothing is uploaded.

By Nethanel Bar, Co-founder & CEO

Last updated

Advertisement

Ready to actually learn to code?

Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.

What is a PDF merger?

A PDF merger joins several PDF files into a single document. The pages of the first file come first, then the pages of the second, and so on. It is the quick way to turn a cover letter, a CV and a certificate into one attachment, or to put scanned pages back together.

Each file shows up as a card with a picture of its first page and its page count. Drag the cards, or use the arrow buttons, until the order is right. Remove a file you added by mistake, or use "Add more files" to bring in more. Pages keep their own size and rotation, so an A4 page and a landscape page stay as they were.

Your files never leave your device. The merge runs in your browser, so there is no upload, no sign-up and no watermark on the result. If a PDF needs a password to open, the tool asks for it, and the merged file is saved without a password.

What you'll learn while merging PDFs

  • A PDF is a list of pages plus shared resources such as fonts and images. Merging means copying pages from one document into another and keeping those resources attached.
  • Order is data. The merged file follows the order of the cards exactly, the same way a program processes a list from first item to last.
  • A page has its own size and rotation stored inside it. That is why a merged file can mix portrait and landscape pages without changing any of them.
  • Merging is a few lines of code in a library like pypdf. If you do this task every week, a short script can do it for a whole folder, and the Python example below shows how.

How to merge PDF files

  1. Add your PDFs

    Drop the files on the page or click "Choose PDF files". You can add more later with "Add more files". If a file asks for a password, type it and the file opens.

  2. Put them in order

    Drag a card to a new place, or use the arrow buttons on it to move it earlier or later. Use the remove button to take a file out.

  3. Merge

    Click "Merge PDF". You need at least two files. The tool joins them in your browser and shows the page count of the result.

  4. Download

    Click "Download PDF". The file is named after the first file, with "-merged" at the end.

What the merged file keeps

A quick reference for what happens to each part of your files.

Part of the fileWhat happens
Page orderFollows the order of the cards, first card first
Page sizeEach page keeps its own size, so A4 and Letter can mix
Page rotationEach page keeps its own rotation
Text, images and drawingsCopied as they are, so text stays selectable
LinksCome along with their pages
Form fields and bookmarksMay not carry over from the source files
PasswordNot needed for the result: the merged PDF has no password
File nameFirst file's name plus "-merged.pdf"

Merging examples

A job application pack

Order of the cards

1. cover-letter.pdf 2. cv.pdf 3. certificate.pdf

Result

cover-letter-merged.pdf

One attachment instead of three. The result is named after the first file, so put the one you want to name it first.

Scanned pages in the wrong order

Order of the cards

1. scan-part-1.pdf 2. scan-part-2.pdf 3. scan-part-3.pdf

If the scanner made one file per batch, merge them in batch order. Check the first-page pictures on the cards before you click Merge.

Do the same in Python

merge.py
from pypdf import PdfWriter
writer = PdfWriter()for name in ["cover-letter.pdf", "cv.pdf", "certificate.pdf"]:    writer.append(name)
writer.write("merged.pdf")writer.close()

pypdf's append adds every page of a file to the end. A loop over a list is the same idea as the cards: process the files in order.

Common mistakes

  • Merging in the wrong order. Check the order of the cards before you click Merge, because the file follows it exactly.
  • Adding a single file. Merging needs at least two PDFs. To pull pages out of one file, use the Split PDF tool instead.
  • Expecting form fields to stay fillable. Interactive fields and bookmarks of the source files may not carry over, so fill in forms before you merge.
  • Merging very large files on a phone. The browser may run out of memory when the files add up to a few hundred MB. A computer handles big files better.
  • Forgetting the result is a new file. Your original PDFs are not changed, so keep or delete them as you like.

Merge PDF FAQ

Is it free to merge PDF files here?

Yes. There is no sign-up, no watermark and no limit on the number of files built into the tool.

Are my PDFs uploaded to a server?

No. The merge runs in your browser, so your files stay on your device.

How do I change the order of the files?

Drag the cards into place, or use the arrow buttons on each card to move a file earlier or later.

How many PDFs can I combine?

You need at least two. The tool does not set a maximum, but very large totals (about 200 MB and more) can run out of memory on a phone.

Can I merge a password-protected PDF?

Yes. If a file needs a password to open, the tool asks for it. The merged PDF is saved without a password.

Will the merged PDF keep my links and form fields?

Links and page content come along. Interactive form fields and bookmarks of the source files may not carry over.

Does merging change the page size or rotation?

No. Every page keeps the size and rotation it had in its own file.

What is the merged file called?

It is named after the first file, with "-merged" added, for example cv-merged.pdf.

Can I merge PDFs with Python?

Yes. The pypdf library can append files to a PdfWriter and write one combined PDF in a few lines, as in the example above.

Other developer tools

Coddy programming languages illustration

Learn to code with Coddy

Get started