What is this calculator for?
You exported a slide deck to PDF and it came out 24 MB — too big to attach to the client's email portal, which caps uploads at 10 MB. Or your accounting software produces statements that bloat to 8 MB per page because every page embeds the same logo, the same fonts, and a bunch of metadata. Or you scanned a packet and the resulting PDF is large enough that your CRM rejects it. Compressing a PDF is the third-most-common PDF chore after merging and splitting, and most people reach for whichever online tool comes up first on Google.
This tool runs entirely in your browser using pdf-lib. It does three things to shrink the file: strip embedded metadata (author, producer, creation timestamps, title fields, custom XMP data), remove unused PDF objects that editing software often leaves behind, and re-serialize the file using object streams — a more compact storage format introduced in PDF 1.5. For office-generated PDFs (Word exports, Google Docs PDFs, Excel reports, slide decks), typical savings land in the 5-30% range. For scan-heavy PDFs where most of the file size is embedded image data, savings are usually smaller — and the tool tells you so honestly rather than faking a compression number.
Important caveat that most marketing copy hides: this tool cannot recompress embedded images. The reason is technical, not a defect — JPEG and JPEG2000 image decoding/re-encoding inside a browser is slow and CPU-heavy, and pdf-lib doesn't ship that capability. Desktop tools like Adobe Acrobat and server-side tools like Ghostscript can downsample images from 300 DPI to 150 DPI or 72 DPI, which is the single biggest lever for shrinking scan-heavy PDFs. If your PDF is mostly scans or photos and you need aggressive compression, a desktop tool will outperform any browser-side approach.
How to use this calculator
Step 1: upload your PDF. Click the upload area and pick a file. The tool accepts any PDF up to 100 MB and reports the original size after upload. You'll see the same upload box go from "Click to choose a PDF file" to the filename and size of what you picked.
Step 2: read the disclosure. The orange info panel explains exactly what the tool does — strip metadata, remove unused objects, re-serialize with object streams — and what it doesn't do (recompress images or downsample). This sets expectations honestly. If the PDF is mostly scans, you'll see small savings; that's the truth, not a bug.
Step 3: click compress. The operation is usually fast — a few hundred milliseconds for office PDFs, a few seconds for very large or complex files. pdf-lib loads the source, applies the cleanup steps, and produces a re-saved version.
Step 4: review the results. Three numbers appear: original size, compressed size, percent saved. If the savings are under 5%, the tool surfaces a separate warning explaining that the source PDF is already well-optimized and recommending desktop tools for further reduction. There's no false claim of huge savings on already-optimized files; the goal is to be useful when it can be and honest when it can't.
Step 5: download the result. The green download button gives you the compressed file with -compressed appended to the original filename. Open it once to confirm it looks right (the visual content should be unchanged), then use the smaller version wherever you need it.
Understanding your results
The compression effort produces three categories of outcomes depending on what's in your source PDF.
Strong wins (15-40%): office PDFs created by tools that pack in heavy metadata or leave behind orphaned objects — particularly older versions of Word, OpenOffice, certain corporate template generators, and PDF editors that don't garbage-collect on save. These files have lots of "low-hanging fruit" — strippable XMP metadata, unused fonts, duplicate object references — and the re-save with object streams meaningfully tightens the encoding.
Modest wins (5-15%): well-formed PDFs from modern Office, Google Docs, LaTeX, or browser print-to-PDF. These files were already reasonably compact when they came out of the source software. Stripping metadata and re-serializing recovers a few percent, which can matter at the email-size threshold (going from 11 MB to 9.5 MB matters; going from 9 MB to 8 MB doesn't).
Minimal wins (under 5%): scan-heavy PDFs where most of the file size is JPEG image data, image-PDFs from camera apps, PDFs that have already been compressed by a previous tool, and PDFs from professional production workflows that already use object streams. For these files, the tool surfaces a transparent message: it's already optimized, browser-side cleanup can't shrink it further, use a desktop tool with image downsampling if you need aggressive compression. This honest reporting is the main editorial difference between this tool and most "miracle" online compressors that always claim to save 50%+ — the math doesn't actually support that on every file.
The compressed PDF behaves identically to the original for reading. Text is still searchable and selectable. Images render at the same resolution. Forms still display correctly (interactive behavior is preserved). Fonts render with the same hinting. The visible content is unchanged — only the invisible plumbing has been tidied. If you want to verify byte-for-byte that the visible content matches, open both files side-by-side and zoom in; you should not be able to tell them apart.
A worked example
Aisha works at a small architecture firm. The firm uses an older drafting-export workflow that produces PDFs with a lot of embedded metadata — every drawing has the project name, lead architect's email, drafting software version, internal review timestamps, and a custom XMP block for the firm's document management system. A typical floor plan PDF clocks in around 18 MB.
The city's permit portal caps uploads at 10 MB per file. Submitting any drawing requires shrinking it first. Aisha used to rely on Smallpdf, but the firm's IT policy now blocks third-party file uploads — design documents and project metadata can't leave the firm's network even briefly.
She uploads a floor plan to the browser compress tool. Original: 18.3 MB. Compressed: 12.7 MB — about 30% saved. Still over the 10 MB cap, so she opens the original file in the drafting software, lowers the image-export DPI from 300 to 200 (a one-time setting change), re-exports, then runs that 11 MB output through the compress tool again. Final size: 8.4 MB. Submitted to the permit portal in under five minutes total, no files leaving the firm's network.
Variation: Marcus is a freelance copywriter sending a 28-page proposal to a prospective client. The PDF was exported from Google Docs and weighs in at 4.2 MB — the client's spam filter quietly drops attachments over 4 MB. Marcus runs the file through compress; the metadata cleanup and stream re-encode bring it down to 3.4 MB. He attaches the compressed version to the email and it lands in the client's inbox the first try. Total time: 15 seconds.
Variation that doesn't work: Helen has a 60-page scanned contract PDF that weighs 95 MB. She runs it through compress hoping to email it. The tool processes the file in about 8 seconds and reports: original 95 MB, compressed 94 MB, saved 1.1%. The honest-results message appears explaining that the bulk of the file size is embedded scanned-image data and that browser-side cleanup can't recompress those images. Helen opens the original PDF in Adobe Acrobat, uses File → Save As Other → Reduced Size PDF, picks the "Acrobat 10 and later" compatibility setting, and the same file comes out at 18 MB after Acrobat downsamples the embedded images. That's the right tool for that specific job — and the compress tool was right not to pretend otherwise.
Related resources
To combine PDFs after compressing them individually, see PDF Merge. To extract specific pages from a compressed PDF (the savings on a smaller subset are often much bigger), the PDF Split tool handles range and per-page modes. To build a PDF from photos (which then benefits from compress), the Image to PDF tool accepts JPG and PNG. For aggressive image-aware compression, Ghostscript (open-source, command-line) and Adobe Acrobat Pro's Reduce File Size feature are the standard tools.