Compress PDF

Compress PDF files online with genuine structural object stream compaction and metadata deduplication. Reduce file size while keeping vector text sharp. 100% client-side.

Click to upload or drag and drop your PDF here

Local client-side compression — your document never leaves your device

Optimization Overview

Ready
📦

Upload a PDF document to analyze structural compaction and reduce file size.

How to use Compress PDF

Compress and optimize PDF documents directly in your web browser without uploading files to remote cloud servers. Unlike generic web compressors that aggressively downsample text into blurry low-resolution bitmap images, our engine performs genuine ISO 32000-1 structural compaction: packaging loose indirect objects into compressed object streams, stripping orphaned cross-reference tables and thumbnail caches, and deduplicating embedded font subsets. If a document is already maximally compressed, our engine transparently notifies you rather than artificially bloating the file.

  1. Select or drag and drop your PDF document into the upload dropzone.
  2. Review the document information badge displaying the original file size and page count.
  3. Choose your optimization profile: Standard (Object Streams & Cleanup), Lossless Compaction, or Maximum Compression.
  4. Click 'Compress PDF' to initiate client-side structural parsing and stream repacking.
  5. Inspect the live optimization summary showing original size, compressed size, and percentage reduction.
  6. Click 'Download Compressed PDF' to save your streamlined document instantly to your device.

ISO 32000-1 Object Stream Packing & Flate Deflation Engine

The optimization engine inspects the PDF document's internal object tree via `PDFDocument.load`. It identifies loose indirect objects (dictionaries, numbers, names, and arrays) and consolidates them into unified Cross-Reference Object Streams (`/Type /ObjStm`) under PDF 1.5+ specifications. Redundant `/Metadata` XMP streams, unreferenced annotations, and unused thumbnail objects (`/Thumb`) are pruned from the cross-reference table. The resulting structural stream is serialized with Deflate compression, yielding a compact, web-optimized document.

  • Zero Vector Degradation: Retains 100% selectable text, searchable strings, and vector hairline clarity.
  • Object Stream Compaction: Aggregates scattered indirect objects into unified compressed streams.
  • Honest Savings Reporting: Detects already-optimized files and avoids deceptive re-compression bloating.
  • Complete Client-Side Isolation: All operations execute within the client machine without network dependencies.

All PDF operations are processed entirely inside your local web browser. Your files, documents, and data are never sent to external servers or cloud services.

Practical examples

Optimizing a Multipage Financial Statement for Email Delivery

Input
12-page quarterly audit PDF (4.8 MB) containing uncompacted indirect objects and redundant font descriptors.
Result
Clean 2.1 MB PDF (56.3% file size reduction) with crisp 100% vector typography.

Packages isolated indirect objects into cross-referenced object streams, bringing the file well under standard 5 MB email attachment limits.

Sanitizing Unreferenced Thumbnail Caches from a Scanned Lease

Input
35-page commercial lease agreement generated by legacy scanner software (8.2 MB).
Result
Reduced to 4.9 MB by eliminating unreferenced page preview caches and compacted stream dictionaries.

Eliminates bloated legacy metadata caches without modifying page visual contents or legal text.

Streamlining a CAD Architecture Drawing for Web Viewing

Input
Single-sheet architectural blueprint with dense vector paths and extensive metadata (3.1 MB).
Result
Reduced to 1.8 MB (41.9% reduction) while preserving hairline vector precision at 1200 DPI.

Compacts object dictionaries and font glyph tables without converting vector geometry to lossy bitmaps.

Handling an Already-Optimized Government Contract

Input
Pre-linearized government tender document that was previously saved with aggressive Deflate compression.
Result
Engine transparently informs the user that the document is already optimal (0% false savings).

Prevents deceptive double-compression which often increases file overhead and wastes user bandwidth.

Frequently asked questions

How does client-side PDF compression work without losing text sharpness?

Standard lossy compressors achieve dramatic reductions by turning crisp text into low-resolution JPEG images, ruining readability and searchability. Our client-side engine performs structural compaction conforming to ISO 32000-1: it packs dozens of separate PDF objects into compressed Object Streams (`/ObjStm`), deflates loose content operators with standard Flate algorithms, and deletes redundant thumbnail caches, maintaining 100% vector sharpness.

Why did my PDF size barely change or say 'already optimal'?

If a PDF was generated by modern publishing tools (like LaTeX, InDesign, or modern Adobe Acrobat), its fonts are already subsetted and its streams are already Flate compressed. Applying further compression cannot magically delete text without removing content. Our tool gives you honest metrics rather than faking compression by degrading page quality.

Is it safe to compress confidential legal or medical documents here?

Yes, absolutely. All stream manipulation, object restructuring, and file assembly occur 100% inside your browser's local JavaScript sandbox. Your confidential documents are never transmitted across the network, stored on external servers, or logged by third parties.

Can I compress password-protected PDF files?

To compress an encrypted PDF, you must first decrypt it using our Unlock PDF tool. Once the encryption envelope is removed, the engine can parse the internal object graph and apply structural stream compression.

Related tools

Available

Flatten PDF

Flatten interactive PDF form fields, checkboxes, and annotations into permanent, static page content. Invalidate tampering and ensure consistent viewing. 100% private.

PDF Tools
Available

Grayscale PDF

Convert color PDF documents to true monochrome grayscale. Rewrites DeviceRGB and DeviceCMYK PostScript operators to DeviceGray. Preserves selectable text. Free & private.

PDF Tools
Available

Merge PDF

Combine multiple PDF documents into a single unified file in your chosen order. Reorder files, preview page counts, and download instantly with zero server uploads.

PDF Tools
Available

Split PDF

Split PDF files into individual pages, custom page ranges, or fixed intervals. Download single files or bulk export as a standard ZIP archive. 100% private in-browser processing.

PDF Tools