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.
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.
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.