LocalPDF · Osabee

How to merge PDF files without uploading them, for free on Mac, Windows and Linux

By Osabee, the makers of LocalPDF · Updated October 20, 2026

To merge PDF files without uploading them, use a tool that runs on your own computer: Preview on a Mac (View > Thumbnails, then drag the second PDF into the sidebar), PDFsam Basic or PDF24 Creator on Windows, or a one-line command such as qpdf --empty --pages a.pdf b.pdf -- merged.pdf on any system. All of these are free, and none of them sends your file anywhere.

Online mergers such as iLovePDF, Smallpdf, Adobe Acrobat online and PDF24 online are quicker to find, but they work by uploading your documents to their servers. For a restaurant menu that is fine. For a signed contract, a payslip, a medical report or a scan of your passport, it is worth spending two extra minutes on a local method.

Below you will find each method step by step, what it keeps and what it loses (bookmarks, form fields, links), and how to deal with the problems that come up most often: wrong page order, password-protected files and very large files.

The quick answer: which method to use

Your situation Best free option Installs anything?
Mac, a few files Preview, built in No
Mac, many files in a set order Finder, Quick Actions > Create PDF No
Windows, occasional merge PDF24 Creator or PDFsam Basic Yes, a free program
Need bookmarks or forms kept PDFsam Basic Yes
Comfortable with a terminal, or scripting qpdf or pdfunite Yes, a small tool
Any computer with Chrome or Edge, no install allowed LocalPDF (browser extension, not in the stores yet) An extension
Non-sensitive file, any device An online tool No, but the file is uploaded

If you are on a Mac, stop reading after the next section: Preview does the job well.

How to merge PDF files on a Mac with Preview

Preview, the PDF viewer that comes with every Mac, can combine PDFs without any extra software. Apple documents the procedure in its Preview user guide.

Before you start, note Apple's own warning: changes made in Preview are saved automatically. Whatever you drag into a PDF becomes part of that file. If you want to keep the originals intact, select each PDF in Preview and choose File > Duplicate first, then work on the copies.

  1. Open the PDFs you want to combine in Preview.
  2. In each open PDF, choose View > Thumbnails. The pages appear as small thumbnails in the sidebar.
  3. Drag the thumbnails you want from the sidebar of one PDF to the sidebar of the other. You can drop them at the end or between two existing pages.
  4. To move several pages that are not next to each other, Command-click each one before dragging.
  5. Drag thumbnails up or down in the sidebar to put the pages in the right order.

To add an entire PDF rather than single pages, there is a faster way: drag the PDF's icon from the Finder straight onto the sidebar of the open document. All of its pages are inserted where you drop it.

Because Preview saves automatically, the combined result ends up in the document you dragged into. That is exactly why duplicating first matters: it is very easy to turn your only copy of a contract into "contract plus three annexes" without meaning to.

The Finder shortcut: Quick Actions > Create PDF

If you have several files and simply want them in one PDF, one after the other, the Finder can do it in two clicks. Apple describes it in the macOS User Guide.

  1. Open a Finder window and select the files you want to combine.
  2. Control-click the selection and choose Quick Actions > Create PDF.

According to Apple, the files appear in the PDF in the same order in which you selected them, and the new file gets a name similar to the first file you selected. So click the first file, then Command-click the others in order. The same Create PDF button also appears at the bottom of the Preview pane of a Finder window (choose View > Show Preview if you cannot see the pane).

Can you merge PDF files on Windows without installing anything?

Not really. Windows has no built-in tool that combines PDF files: there is nothing in File Explorer, and neither Microsoft Edge nor any other app included with Windows offers a merge command. Microsoft Print to PDF, the virtual printer you see in every print dialog, turns one document into a PDF; it does not join two PDFs together.

You will see tricks online that involve printing each file and reassembling them, but they produce a new PDF built from printed pages, which can drop links and bookmarks along the way. On Windows the sensible route is a free program that runs locally. Two good ones:

If you cannot install programs at all (a locked work laptop, for example), the options are an online tool, which uploads the file, or a browser-based tool that processes the file locally, which is the case LocalPDF was built for. More on that further down.

How to merge PDFs with PDFsam Basic, step by step

PDFsam Basic has been free and open source since 2006 (licence AGPL-3.0). The current version on pdfsam.org is 6.0.6, for Windows 10 or later (64-bit), macOS 11 Big Sur or later and 64-bit Linux, with installers and portable versions. Its site says your PDF files "are processed locally and never leave your computer", with no sign-up and no size limit.

The official merge guide has four steps:

  1. Open PDFsam Basic and choose the Merge tool, then drag and drop the PDF files you want to merge into the window.
  2. Arrange the files in the order you want them in the final document.
  3. Choose the name and folder of the resulting PDF.
  4. Click Run.

What makes PDFsam worth installing are the options around the merge:

If you merge forms or long documents with a table of contents more than once a year, PDFsam Basic is the tool to keep on your computer. It does more than any browser tool, including LocalPDF.

How to merge PDFs from the command line

If you are happy with a terminal, three free tools do the job in one line each. They run on your machine, so nothing is uploaded, and they are easy to put in a script when you need to merge the same kind of files every month.

qpdf

qpdf is included in most Linux distributions, and binaries for Windows and macOS are on its GitHub release page. To merge three files into a new one:

qpdf --empty --pages a.pdf b.pdf c.pdf -- merged.pdf

--empty starts from an empty document, --pages introduces the list of files, and the two hyphens on their own close the list. The files go in the order you write them.

You can also pick pages from each file by writing a range after its name:

qpdf --empty --pages report.pdf 1-3 annex.pdf -- merged.pdf

In qpdf's page range syntax, 1 is the first page, z is the last, r2 is the second-to-last, and you can add :odd or :even to a range. One thing to know: qpdf takes document-level information such as bookmarks from the primary input file, so when you start from --empty you should not expect bookmarks in the result. For files protected with a password, qpdf has a --password option.

pdfunite

pdfunite comes with poppler (on Linux, the poppler-utils package). It is the simplest of all:

pdfunite a.pdf b.pdf merged.pdf

The man page says it merges files in the order they appear on the command line, and that none of the source files should be encrypted. Be careful with the last name: it is the output, so if you type the name of an existing file there by mistake, that file is overwritten.

Ghostscript

Ghostscript can merge too:

gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=merged.pdf a.pdf b.pdf

On Windows the console program is called gswin64c. There is a catch that the Ghostscript documentation spells out: pdfwrite does not copy your pages, it rebuilds a new PDF that should look the same as the original. Clickable links and form fields (Link and Widget annotations, in PDF terms) are not preserved, although bookmarks normally are. Use Ghostscript when you also want to rewrite or shrink the file; for a plain merge, qpdf is the cleaner tool. Shrinking is covered in the guide to compressing a PDF offline.

Online PDF mergers: fast, but your file goes to a server

The online tools are popular for good reasons: nothing to install, they work on a phone, and the interface is obvious. Here is what each vendor says on its own pages (checked in October 2026):

Service Free merge Where the file goes What the vendor says about deletion
iLovePDF Up to 25 files and 100 MB per task Uploaded to its servers Deleted within two hours of processing
Smallpdf Yes "Cloud-based" Deleted from its servers after one hour
Adobe Acrobat online Up to 100 files, 500 pages each, 1,500 pages in total, no sign-in Adobe servers Deleted unless you sign in and save
PDF24 online Yes, ad-supported, no registration Its servers in Germany Deleted after one hour

These policies are reasonable, and for most everyday documents an online merger is a perfectly fine choice. The trade-off is simple: for an hour or two, a copy of your document sits on a company's server, and you are trusting that company's security and deletion process. That matters for documents with personal data about you or about other people: contracts, payslips, tax returns, medical reports, ID scans, client files. If you handle other people's data at work, your employer may also have rules on which services you can use.

The details of each policy, what GDPR says about it and a checklist for deciding are in the guide on whether online PDF tools are safe.

Merging PDFs in the browser without uploading: LocalPDF

LocalPDF is a browser extension made by us at Osabee, the publisher of this guide, so weigh this section accordingly. It exists for one case: you want the convenience of an online tool, but the file must not leave your computer, and you cannot or do not want to install a desktop program.

It works in Google Chrome and Microsoft Edge on Windows, macOS, Linux and ChromeOS. Clicking its icon opens LocalPDF as a full page in a browser tab. To merge:

  1. Choose Merge and drag your PDFs onto the page (or click to choose them). The drop zone says it plainly: nothing is uploaded.
  2. Put the files in order with Move earlier and Move later, and take one out with Remove.
  3. Click Merge PDFs. The result is saved through the browser's normal download, named after the first file with -merged at the end.

The PDF libraries (pdf-lib and pdf.js) are packaged inside the extension, and the merge happens in the tab: no network request is made while it works on your files. The extension asks for a single permission, local storage, and there is no account and no analytics.

Merging is free and unlimited, with no account, and it never counts towards any limit. The same goes for Split and JPG to PDF. Only Compress and Organise pages share 5 free runs in total, after which a one-time licence unlocks them.

What LocalPDF does not do: it does not keep the bookmarks of the original files, it is not the tool for fillable forms, it cannot open password-protected PDFs and it does not edit text. For bookmarks and forms, PDFsam Basic is the better free choice.

Availability, October 2026: LocalPDF is not yet on the Chrome Web Store or Microsoft Edge Add-ons. The LocalPDF page says when it will be available.

Common problems when merging PDFs

The pages are in the wrong order

Almost every tool merges files in the order of the list you give it. In Preview, drag the thumbnails in the sidebar; in the Finder, the order is the order in which you clicked the files; in PDFsam and LocalPDF, arrange the list before you run the merge; on the command line, the order is the order you typed. If only a few pages inside a file are out of place, fix them after merging: Preview lets you drag thumbnails, PDFsam can select page ranges, and LocalPDF has Organise pages. If you only need some pages out of a long file, see the guide to splitting a PDF and extracting pages.

When two PDFs become one, their internal structures have to be combined, and many tools simply copy the pages and drop the rest. Outcomes differ by tool: PDFsam Basic lets you merge or rebuild bookmarks and merge form fields; qpdf keeps the bookmarks of the primary input only; Ghostscript keeps bookmarks but drops clickable links and form fields; LocalPDF copies the pages without the original bookmarks. If the bookmarks or a fillable form matter, use PDFsam Basic and check the result before you delete the originals.

One of the files is password-protected

A PDF that asks for a password when you open it is encrypted, and most mergers will refuse it: pdfunite's documentation says the input should not be encrypted, and LocalPDF tells you to save a copy without the password first. The fix is the same everywhere. Open the file in your PDF reader with the password, save or export a copy without protection (only if you are entitled to), merge the copy, and protect the merged file again if needed. qpdf has a --password option and PDFsam says it handles encrypted files, if you prefer to skip the extra copy.

The files are huge

Large scans are the usual cause: a 40-page scanned contract at high resolution can easily weigh more than a hundred megabytes. Free online plans have caps (iLovePDF's free merge allows 100 MB per task, for example). Desktop tools and the command line have no such cap and are the safest choice for big jobs. In the browser, memory is the limit: LocalPDF shows a message if the files are too large to handle and suggests fewer or smaller files. If the merged file is too heavy to email, compress it afterwards, as explained in the guide to compressing a PDF offline.

The merged file is much bigger than expected

Merging should produce a file roughly the size of the inputs added together. If it is much bigger, the tool probably rewrote the pages instead of copying them (Ghostscript can do this with its default settings), or it embedded the same fonts several times. Try qpdf or PDFsam, which copy the pages as they are.

Which method should you choose?

On a Mac, use Preview or the Finder: no download, no upload. On Windows, install PDF24 Creator or PDFsam Basic once and you are covered for years, both free. If you merge documents with bookmarks or fillable forms, PDFsam Basic is the one. If you like scripts, qpdf is fast and precise. For a non-sensitive file on a borrowed computer or a phone, an online tool is fine. And if you want to merge in the browser on any desktop without uploading or installing a program, that is what LocalPDF is for.

Frequently asked questions

How do I merge PDF files without uploading them?

To merge PDF files without uploading them, use a tool that runs on your computer. On a Mac, Preview combines PDFs through View > Thumbnails and drag and drop. On Windows, PDF24 Creator and PDFsam Basic are free programs that work offline. On any system, the command qpdf --empty --pages a.pdf b.pdf -- merged.pdf merges files locally. None of these sends the file to a server.

Can Windows merge PDF files without extra software?

Windows does not include a tool that merges PDF files. Microsoft Print to PDF turns one document into a PDF but cannot join two PDFs together. To merge PDFs on Windows for free and offline, install PDF24 Creator (Windows only) or PDFsam Basic (Windows, macOS, Linux). If you cannot install programs, an online merger works but uploads the files.

How do I merge PDFs on a Mac for free?

A Mac merges PDFs for free with Preview. Open the PDFs, choose View > Thumbnails in each one, and drag thumbnails from one sidebar to the other, or drag a PDF's icon from the Finder onto the sidebar. Preview saves changes automatically, so use File > Duplicate first to keep the originals. In the Finder, Quick Actions > Create PDF also combines selected files.

Is it safe to merge PDFs online?

Merging PDFs online is reasonably safe for ordinary documents: iLovePDF, Smallpdf, Adobe and PDF24 all say on their own pages (October 2026) that uploaded files are deleted after one or two hours, or unless you save them. The file still goes to a third-party server. For contracts, payslips, medical records or ID scans, a local method avoids that step entirely.

Why did the bookmarks disappear after merging my PDFs?

Bookmarks often disappear after merging because many tools copy only the pages and leave out each file's bookmark tree. PDFsam Basic lets you merge the bookmarks of all input files or create a new bookmark for each merged file. qpdf keeps the bookmarks of the primary input file only. If bookmarks matter, merge with PDFsam Basic and check the result.

How do I merge a password-protected PDF?

A password-protected PDF usually has to be unlocked before merging. Open it in your PDF reader with the password, save a copy without protection if you are entitled to, merge the copy, then protect the merged file again if needed. pdfunite and LocalPDF do not accept encrypted input; qpdf has a --password option and PDFsam Basic says it handles encrypted files.

Is there a limit to how many PDFs I can merge?

The limit on merging PDFs depends on the tool. iLovePDF's free plan allows 25 files and 100 MB per task, and Adobe Acrobat online allows 100 files and 1,500 pages in total (October 2026). Preview, PDFsam Basic, qpdf and pdfunite run on your computer and are limited only by its memory and disk. LocalPDF merges without a usage limit.

Is LocalPDF free for merging PDFs?

Merging PDFs in LocalPDF is free and unlimited, with no account, and merges are never counted. Split and JPG to PDF are free in the same way; only Compress and Organise pages have 5 free runs in total before a one-time licence. In October 2026 LocalPDF is not yet in the Chrome Web Store or Edge Add-ons, and its product page says when it will be.

More guides