To combine PDF files for free, use a program that runs on your own computer: Preview on a Mac, the free PDFsam Basic app on Windows, macOS or Linux, or the qpdf command-line tool. None of them needs an account, and none sends your documents to a website.
Many "combine PDF" search results are websites where you upload the files and download the merged result. They can work, but a PDF often holds contracts, invoices or ID scans, so it is worth keeping the work local when you can. The three methods below do that. This article does not rate any upload site, because it has not verified their limits or how they handle your files.
Which method should you pick
| Method | Runs on | Best for |
|---|---|---|
| Preview | macOS | A few files, dragging pages into place |
| PDFsam Basic | Windows, macOS, Linux | A point-and-click app with page ranges |
| qpdf | Windows, macOS, Linux (command line) | Repeating the job, or scripting it |
If you are on a Mac and only need to join two or three files, Preview is already installed. On Windows, this article found no built-in merge tool documented by Microsoft, so it does not claim one exists. Use PDFsam Basic or qpdf there.
Combine PDFs on a Mac with Preview
Apple's steps for combining PDFs in Preview:
- Open Preview, then open the PDFs you want to combine.
- In each open PDF, show the page thumbnails with View > Thumbnails.
- Drag the page thumbnails you want to copy from one PDF's sidebar into the other PDF's sidebar. To select several pages that aren't next to each other, Command-click each one first.
- Drop them at the end of the document or between existing pages. You can also drag thumbnails to reorder them.
Apple adds a shortcut: to add a whole PDF, drag its icon from the Finder into the sidebar of an open document. That is the fastest way to append a complete file.
One warning from the same page: changes you make to a Preview document are saved automatically. That means the PDF you dragged pages into is changed in place. If you want to keep the originals as well as the combined file, choose File > Duplicate on each PDF before you combine them, and work on the duplicates.
Combine PDFs with PDFsam Basic (Windows, Mac, Linux)
PDFsam Basic is a desktop app that splits and merges PDFs locally. Its own page describes it as free and open source, with "no watermarks and no size limits", and says files are never uploaded. It is released under the AGPL license, and it runs on Windows, macOS and Linux. Download it only from the PDFsam site, since it is a program you install and run on your computer.
The steps from the PDFsam merge guide:
- Open the merge tool and drag the PDF files you want to merge into it.
- Arrange the files in the order you want.
- Choose the name of the resulting PDF file.
- Click Run to combine the files.
The guide does not say where the output folder setting lives or exactly how reordering works, so look at the options in the app's merge screen the first time you use it. Check the result by opening the combined file and scrolling through it before you delete the sources.
Options that matter
The PDFsam Basic page lists several merge settings worth knowing about:
- Page ranges. You can merge whole files or only selected pages, using comma-separated intervals such as
1-10, 14, 25-, set separately for each input file. - Bookmarks. You can combine them, discard them, or create a new bookmark tree with one entry per merged file.
- Forms. For PDFs with fillable fields (AcroForms), you can discard the fields, merge them into a new form, or merge them while renaming fields whose names clash.
- Table of contents. You can add a clickable table of contents at the start of the merged file.
Combine PDFs with one qpdf command
qpdf is a free command-line program. To merge, use --empty as the input, which the qpdf manual describes as making qpdf use a dummy input file that contains zero pages. List the files after --pages and end the list with --, then give the output name:
qpdf --empty --pages a.pdf b.pdf c.pdf -- combined.pdf
The files are joined in the order you list them. Replace a.pdf, b.pdf and c.pdf with your own file names, and keep the output name different from every input. To take only some pages, put a range after a file name:
qpdf --empty --pages a.pdf 1-5 b.pdf 6-4 c.pdf r1 -- combined.pdf
In the manual's syntax, two page numbers separated by a dash are an inclusive range, a range whose first number is higher runs in reverse (6-4 gives pages 6, 5, 4), and r1 means the last page. So this command takes pages 1 to 5 of a.pdf, then pages 6, 5 and 4 of b.pdf, then the last page of c.pdf.
If you start the command with an input file instead of --empty, qpdf keeps that first file's document-level data, such as outlines and tags. With --empty, you start from a blank document. Run qpdf --help or read the manual for the options available in the version you have installed, because some syntax, such as the --file= and --range= form, needs qpdf 11.9.0 or later.
Common problems
- The order is wrong. Reorder before you save. In Preview, drag thumbnails. In PDFsam Basic, arrange the files before clicking Run. In qpdf, change the order of the file names.
- A password-protected PDF won't merge. Remove the protection first if you are allowed to, or check the qpdf manual for its
--passwordoption. This article did not test password handling in PDFsam Basic. - The merged file is large. Combining keeps each page as it was, so the result is roughly the sum of the inputs. See reducing PDF file size for ways to shrink it afterward.
- You overwrote an original. This is the Preview risk described above. Duplicate files first, and name the output of any other tool differently from the inputs.
- You need to change text inside a page. Merging only joins pages. For changing content, see how to edit a PDF without paid software.
Before you send the combined file
Open the finished PDF and page through it once. Confirm the page count equals the sum of the pages you meant to include, the order is right, and no page is missing or duplicated. If the file contains sensitive information, remember that anyone with the file can read all of it, so consider protecting it before sharing.
Frequently asked questions
- Can I combine PDF files for free without uploading them anywhere?
- Yes. Preview on a Mac, the PDFsam Basic desktop app and the qpdf command-line tool all work on your own computer. PDFsam says its files are never uploaded, and qpdf is a local program, so the documents stay on your machine.
- Does PDFsam Basic add watermarks or limit file size?
- According to the PDFsam Basic page, it has no watermarks and no size limits. It is free and open source, and runs on Windows, macOS and Linux.
- Does combining PDFs in Preview change my original files?
- It can. Apple says changes you make to a Preview document are saved automatically. To keep the originals, choose File > Duplicate on each PDF before you combine them, then work on the copies.
- Can I combine only some pages from each PDF?
- Yes. PDFsam Basic accepts page ranges such as 1-10, 14, 25- for each input file. With qpdf, put a range after each file name, for example a.pdf 1-5 b.pdf 3. In Preview, select the page thumbnails you want and drag only those.
- How do I change the order of the pages after combining?
- In Preview, drag the page thumbnails in the sidebar. In PDFsam Basic, arrange the files in the order you want before you click Run. With qpdf, the order is the order of the file names on the command line.