Merge PDF
Combine multiple PDF files into one. Drag and drop, reorder, download. 100% browser-side.
What is merging PDFs?
Merging PDFs combines multiple PDF files into a single document. This is one of the most common PDF operations needed daily by office workers, students, lawyers, accountants, and anyone dealing with documentation. Use cases: combining scanned pages into one document, joining contract sections from different sources, assembling exam papers, creating photo books, consolidating receipts for tax filing, putting together multi-part legal filings. This tool handles the merge entirely in your browser using the pdf-lib JavaScript library – your PDFs never leave your device, ensuring complete privacy. Add files in any order, the tool preserves it. The output PDF maintains the original page sizes and quality – no compression, no re-encoding.
How to use this tool
- Add PDF files — Click the upload area or drag-drop multiple PDFs. Files appear in the list in the order added.
- Review and remove if needed — Each file shows size and order number. Click Remove next to any file to exclude it from the merge.
- Click ‘Merge PDFs’ — Once you have 2+ files added, the merge button activates. Processing takes 1-5 seconds depending on total file size.
- Download the merged PDF — Browser automatically downloads ‘merged.pdf’ when ready. File is saved to your default downloads folder.
- Optional: clear and start over — Click ‘Clear all’ to remove all files and start fresh with a new merge.
How the merge works
The tool uses pdf-lib, a powerful JavaScript library that can read, modify, and create PDFs entirely in the browser. The merge process:
- Each input PDF is loaded into memory as a
PDFDocumentobject - A new empty
PDFDocumentis created for the output - For each input PDF, all pages are copied to the output PDF using
copyPages() - Original page sizes, orientations, content, fonts, images, and annotations are preserved
- The output PDF is serialized to bytes and triggered as a browser download
Encrypted PDFs are loaded with the ignoreEncryption: true flag, allowing merge to proceed but the output preserves any original protection.
Examples
- Scanned document: 5 separate PDFs (one per scanned page) → 1 combined 5-page PDF
- Tax filing: Combine W-2, 1099, expense receipts, bank statements into one PDF for submission
- Contract assembly: Main contract + 3 appendices + signed signature page = single 30-page document
- Photo album: Pre-converted JPG-to-PDF files combined into one shareable album
- Student submission: Cover page + answers + supporting calculations = one PDF for upload
- Real estate package: Property photos PDF + inspection report PDF + appraisal PDF = complete package
Tips & best practices
- Add files in the order you want them in the final PDF – reordering after upload isn’t supported (re-add if needed)
- Test with a sample first if you have many large PDFs – browser memory limits practical use to ~100 MB total
- Encrypted (password-protected) PDFs can be merged but may retain the password on output
- If you need to reorder pages within a single PDF, use Split PDF first, then re-merge in desired order
- For very large merges (50+ PDFs), use desktop tools like PDF-Sam or Adobe Acrobat – browsers may slow down
- Output filename is always ‘merged.pdf’ – rename after download if you want something specific
- Multiple merges in one session: clear, add new files, merge again – efficient workflow
Limitations & notes
Browser-based merging is limited by available device memory. Combined input over 100 MB may slow or fail. Some heavily-encrypted PDFs (especially with DRM) may not merge cleanly. Form fields and digital signatures may not preserve correctly across merges – test with sample data. Output file size is sum of input sizes (no compression during merge) – use Compress PDF afterward if file size matters.
Frequently Asked Questions
Is my PDF uploaded to a server?
No – 100% browser-side using pdf-lib library. Your PDFs never leave your device. You can verify by disabling internet after the page loads – merge still works. We have zero access to your files.
How many PDFs can I merge at once?
Up to dozens, limited by browser memory. Total combined size up to ~100 MB works comfortably on most devices. For larger merges, do it in batches or use desktop software.
Can I reorder pages within the merged PDF?
Not directly – the merge order follows the order you add files. To rearrange pages within a single PDF, use Split PDF first to separate pages, then merge them back in your desired order.
Will my form fields, hyperlinks, and bookmarks survive the merge?
Most yes. Form fields and hyperlinks are usually preserved. Bookmarks may be repositioned or lost depending on original PDF structure. Critical: test with your specific PDFs before relying on the merged version.
Can I merge password-protected PDFs?
Yes, using the ignoreEncryption flag. The merge proceeds, but the merged output may inherit the password protection. For best results, decrypt PDFs first (using a PDF unlocker) before merging.
Does merge change page sizes or compress?
No – the merge preserves original page sizes, orientations, fonts, and image quality. No compression or re-encoding happens. The output file size is approximately the sum of inputs (slightly larger due to PDF structure overhead).
Why is my merged PDF larger than the sum of inputs?
PDF structure adds a small overhead (typically 1-5%). If significantly larger, the PDFs may contain redundant resources (fonts, images) that don’t deduplicate during merge. Use Compress PDF tool after merging to reduce file size.
