PDF is the universal document format — used for invoices, contracts, reports, manuals, and everything in between. But editing PDFs is notoriously difficult. The three most common operations people need are merging multiple PDFs into one, splitting a PDF into separate files, and compressing a PDF to reduce file size. Most online tools require you to upload your documents to a remote server. Here is how these operations actually work and why browser-based alternatives are better for privacy.
How PDF File Structure Works
Understanding PDF internals helps explain why these operations are possible without re-rendering the document. A PDF file contains four key components:
- Objects: The building blocks — text, fonts, images, and vector graphics are all stored as numbered objects.
- Page Tree: A hierarchical structure that organizes objects into pages. Each page references the objects it contains.
- Cross-Reference Table (xref): An index mapping object numbers to their byte positions in the file, enabling fast random access.
- Streams: Binary data (images, compressed content) stored within objects using codecs like Flate (zlib), LZW, or DCT (JPEG).
Because PDFs are object-based rather than pixel-based, you can manipulate the page tree — adding, removing, or reordering pages — without touching the actual content of each page.
How PDF Merging Works
Merging combines multiple PDF files into a single document. Under the hood, the process:
- Parses each input PDF's cross-reference table and page tree.
- Renumbers all objects to avoid ID collisions between documents.
- Combines all page trees into a single unified tree.
- Merges bookmarks, link annotations, and metadata where possible.
- Writes a new cross-reference table for the combined document.
Internal links (like table-of-contents entries) within each original document are preserved. Cross-document links may need manual updating since page numbers shift. The output file size is roughly the sum of the input files minus some deduplication of shared fonts and resources.
Try it: PDF Merge Tool — combine PDFs directly in your browser.
How PDF Splitting Works
Splitting extracts specific pages from a PDF into one or more new files. The process:
- Parses the source PDF's page tree to identify all pages.
- For each requested page range, creates a new page tree containing only those pages.
- Copies all objects referenced by the selected pages (fonts, images, vector graphics).
- Builds a new cross-reference table for each output file.
Shared resources (like fonts used across multiple pages) are included in each split file, so the total size of all split files may slightly exceed the original. Each split file is a fully independent, valid PDF.
Try it: PDF Split Tool — extract specific pages instantly.
How PDF Compression Works
PDF compression reduces file size through several techniques:
- Image resampling: High-resolution images (e.g., 300 DPI scans in a document viewed on screen) are downsampled to a lower resolution. This is the biggest source of savings, often reducing image-heavy PDFs by 40-80%.
- Font subsetting: If a PDF embeds an entire font file but only uses 50 characters, subsetting removes the unused glyphs.
- Stream compression: Uncompressed or inefficiently compressed content streams are recompressed with Flate (deflate/zlib).
- Duplicate object removal: Identical objects (e.g., the same image used on multiple pages) are stored once and referenced everywhere.
- Metadata stripping: Optional removal of editing history, thumbnails, and other non-essential metadata.
Text and vector graphics remain sharp regardless of compression since they are resolution-independent. Only raster images are affected by quality settings.
Try it: PDF Compress Tool — reduce file size with adjustable quality.
Browser-Based vs Server-Upload PDF Tools
| Feature | Browser-Based (WizlyTools) | Server-Upload Tools |
|---|---|---|
| Privacy | Files never leave your device | Files uploaded to third-party servers |
| Speed | Instant (no upload/download wait) | Limited by internet speed |
| File size limits | Limited by device memory (~100MB+) | Often 10-50MB on free tiers |
| Offline capability | Works after page loads | Requires internet connection |
| Account required | No | Often required for free tier |
| Usage limits | Unlimited | Daily/monthly caps common |
| Processing power | Uses your device's CPU | Server-grade hardware |
When to Compress vs Split for Reducing File Size
If your PDF is too large, the right approach depends on the cause:
- Image-heavy document (scans, photos): Compression is most effective. Resampling high-res images to screen resolution can cut 40-80% of file size.
- Long document where you only need part of it: Split out the pages you need. A 100-page report split to 10 pages will be roughly 10% of the original size.
- Already compressed document: If compression yields minimal savings (under 10%), consider splitting or removing unnecessary pages.
- Text-heavy document: These are usually already small. Compression gains are modest since text and vector content are inherently compact.
Complete WizlyTools PDF Toolkit
Beyond merge, split, and compress, WizlyTools offers a complete browser-based PDF toolkit:
- PDF Rotate — Fix page orientation
- PDF Protect — Add AES-256 encryption
- PDF Unlock — Remove passwords
- PDF Delete Pages — Remove unwanted pages
- PDF Reorder Pages — Drag-and-drop page arrangement
- PDF to Image — Export pages as PNG/JPG
All tools process your documents entirely in your browser using WebAssembly. Your PDFs never leave your device.