The fastest way to combine PDFs depends on what you already have
You can merge two PDF documents using free software that's already on your computer, or through a web tool that requires no installation. On Windows, the built-in Microsoft Print to PDF feature works if you open both files and print them together. On Mac, Preview (the default image viewer) lets you drag pages from one PDF into another. If you want a dedicated tool that handles this in seconds, free programs like PDFtk or Ghostscript do the job from the command line, though they require a bit of typing. Web-based mergers like ILovePDF or Smallpdf work in any browser but upload your files to their servers.
The choice comes down to three things: whether you mind uploading files to the internet, whether you want to install software, and how often you'll need to do this. For a one-time merge, a web tool is fastest. For regular merging, a desktop program saves time. For maximum privacy, use what's built into your operating system.
Key Takeaways
- Windows users can merge PDFs by opening both files in Microsoft Edge or another PDF viewer and printing them to a single PDF using Print to PDF.
- Mac users can open both PDFs in Preview, then drag and drop pages from one document into the other using the sidebar.
- Free desktop programs like PDFtk (command line) and Ghostscript handle merging without uploading files to the internet.
- Web-based tools like ILovePDF and Smallpdf merge PDFs in a browser but send your files to their servers during the process.
Using Preview on Mac
Preview is the simplest method if you use a Mac. Open the first PDF in Preview (the default when you double-click a PDF file). Then open the second PDF in a new Preview window by going to File > Open and selecting the second file.
In the first Preview window, click the sidebar icon (it looks like two rectangles) at the top left to show the page thumbnails. Now drag the thumbnail pages from the second PDF window into the sidebar of the first window. The pages will insert at the position where you drop them. When you're done, go to File > Export As, choose a name and location, and save the merged file.
Using Print to PDF on Windows
Windows doesn't have a built-in merge tool like Preview, but you can use the Print to PDF feature to combine documents. Open the first PDF in Microsoft Edge, Google Chrome, or another PDF viewer. Go to File > Print (or press Ctrl+P). In the print dialog, change the printer to "Print to PDF" or "Microsoft Print to PDF".
Print the first document. When the save dialog appears, give it a temporary name like "merged-temp.pdf" and save it. Then open the second PDF, print it the same way, and when prompted, choose "Append to the existing file" if that option appears. If it doesn't, you'll need to use a desktop program or web tool instead, since Windows Print to PDF doesn't have a native append feature in all versions.
PDFtk and Ghostscript for command line users
If you're comfortable typing commands, PDFtk and Ghostscript are free, open-source tools that merge PDFs instantly without uploading anything. PDFtk is simpler: download it from pdftk.com, then open your terminal or command prompt and type a command like pdftk file1.pdf file2.pdf cat output merged.pdf. Replace the filenames with your actual PDF names, and the merged file appears in the same folder.
Ghostscript is more powerful but requires a longer command. On Mac or Linux, type gs -q -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile=merged.pdf file1.pdf file2.pdf. On Windows, the command is similar but you may need to navigate to the Ghostscript installation folder first. Both tools work on Windows, Mac, and Linux.
Web-based tools like ILovePDF and Smallpdf
ILovePDF and Smallpdf are browser-based tools that require no installation. Go to ilovepdf.com or smallpdf.com, click the merge option, and drag your two PDF files into the upload box. The tool combines them in seconds and lets you download the merged file. The process is visual and straightforward, making it the easiest option for people who don't use the command line.
The trade-off is that your files are uploaded to the company's servers during merging. Both ILovePDF and Smallpdf say they delete files after a few hours, but if your PDFs contain sensitive information, this method carries more privacy risk than desktop tools. For non-sensitive documents, these tools are fast and require no setup.
Choosing the right method for your situation
Use Preview if you're on Mac and merging occasionally — it's built in and takes 30 seconds. Use Print to PDF on Windows if you only need to do this once or twice. Use PDFtk or Ghostscript if you merge PDFs regularly and want to keep files on your computer. Use a web tool if you want the fastest visual interface and don't mind uploading files.
If you're merging PDFs that contain passwords or encryption, most free tools won't work until you remove the password first. Some PDF viewers let you do this; others require a separate tool. Check whether your PDFs are encrypted before choosing your method, since this can change which tool works best.
What to do if the merge doesn't work
If Preview or Print to PDF doesn't produce the result you want, the PDFs may be in a format that doesn't merge cleanly — for example, scanned images embedded as PDFs rather than text-based PDFs. In this case, desktop tools like PDFtk usually work better because they handle a wider range of PDF types.
If a web tool fails to merge your files, try downloading and installing PDFtk or Ghostscript instead. If those also fail, your PDFs may be corrupted or use an unusual encoding. You can test this by opening each PDF separately in your viewer to confirm they display correctly. If they do but won't merge, the issue is with the merge tool, not the files themselves.
Frequently Asked Questions
Can I merge more than two PDFs at once?
Yes. Preview on Mac lets you drag as many pages as you want from multiple PDFs into one document. PDFtk and Ghostscript accept multiple files in a single command. Web tools like ILovePDF let you upload 20 or more files and merge them in order. Print to PDF on Windows is slower for multiple files but works if you print and append one at a time.
Will merging PDFs reduce the file size or quality?
Merging itself doesn't reduce quality — you're combining the files as-is. However, some web tools compress PDFs during upload to speed up processing, which can reduce image quality slightly. Desktop tools like PDFtk and Ghostscript preserve the original quality. If quality matters, use a desktop tool instead of a web tool.
What if one PDF is in a different format or orientation?
Most merge tools handle different formats and orientations without problems — they simply place pages next to each other. If one PDF is landscape and another is portrait, they'll stay that way in the merged file. You can rotate pages after merging using Preview on Mac or by opening the merged file in any PDF editor.
Do I need to install software to merge PDFs?
No. Preview on Mac and Print to PDF on Windows are built in. Web tools require no installation at all. You only need to install software like PDFtk or Ghostscript if you want command-line speed or plan to merge PDFs regularly.
Is it safe to upload PDFs to a web-based merger?
Web tools like ILovePDF and Smallpdf use encryption during upload and say they delete files after a few hours. For non-sensitive documents, this is generally safe. For PDFs containing personal information, financial data, or confidential content, desktop tools keep everything on your computer and carry no upload risk.