You have five PDF files that need to be one. The obvious options — Adobe Acrobat, random online services, or command-line tools — all have drawbacks. There’s a simpler way.
The problem with traditional approaches
Desktop software (Adobe Acrobat, etc.): Expensive subscriptions, heavy installs, overkill for a simple merge.
Online services (iLovePDF, SmallPDF, etc.): Your files get uploaded to someone else’s server. For sensitive documents — contracts, invoices, personal records — that’s a privacy risk. Many also limit file sizes or add watermarks unless you pay.
Command-line tools (pdftk, qpdf, ghostscript): Powerful but require installation and terminal knowledge. Not practical for quick, one-off tasks.
Browser-based PDF tools
Modern browsers are capable enough to manipulate PDFs entirely on your device. Libraries like pdf-lib can parse, modify, and create PDF files using JavaScript — no server involved.
Here’s what you can do without leaving your browser:
Merge PDFs
Combine multiple PDFs into a single file:
- Drop or select your PDF files
- Drag to reorder them
- Click merge
- Download the combined PDF
The resulting file contains all pages from all input files, in the order you specified.
Split PDFs
Extract specific pages from a PDF:
- Extract a range — Pages 5-10 from a 50-page document
- Split into individual pages — One PDF per page
- Remove pages — Keep everything except specific pages
Extract content
Pull out specific content:
- Extract text — Get the text content as plain text
- Extract images — Save embedded images as separate files
How it works under the hood
Browser-based PDF tools use the pdf-lib library (for manipulation) and pdfjs-dist (Mozilla’s PDF renderer, for reading):
- Load — The PDF file is read into memory as a binary buffer
- Parse — The PDF structure is interpreted (pages, fonts, images, metadata)
- Modify — Pages are copied, reordered, or removed
- Serialize — The modified structure is written back to a new PDF binary
- Download — The result is available as a file download
No server round-trip. No upload. No waiting.
Tips for working with PDFs
- Check the file size — Merging adds up. Ten 5 MB files = one 50 MB file (roughly)
- Page order matters — Arrange your files in the correct order before merging
- Scanned PDFs — Text extraction only works on PDFs with actual text, not scanned images. For scanned documents, you’d need OCR (optical character recognition)
- Password-protected PDFs — Most browser-based tools can’t open encrypted PDFs. You’ll need the password first
When to use what
| Task | Best approach |
|---|---|
| Quick merge of a few files | Browser-based tool |
| Batch processing hundreds of files | Command-line tool (pdftk, qpdf) |
| Advanced editing (forms, annotations) | Adobe Acrobat or LibreOffice |
| Simple split or extract | Browser-based tool |
| Sensitive documents | Browser-based tool (no upload) |
For most everyday PDF tasks — merging invoices, combining reports, splitting a chapter from a book — a browser-based tool is the fastest and most private option.