Compress PDF

Re-save a PDF with object-stream compression — smaller text-heavy files, with zero quality loss.

PDF ToolsHot Free No upload Instant

Loading Compress PDF…

Your browser is preparing the tool. It runs 100% locally.

Quick Answer

This tool shrinks a PDF by re-saving it with object streams — a PDF 1.5 feature that packs the document's many small objects into compressed blocks. It is lossless, so nothing about how the file looks changes, and it runs in your browser with pdf-lib. Expect roughly 10-25% off a text- or vector-heavy file. It does not downsample images, so scans and photo-heavy PDFs may barely shrink — and the tool tells you when that happens.

What the Compress PDF Does

A PDF is built from thousands of small objects — text runs, font data, page descriptions, metadata. When a file is saved inefficiently, each of those objects carries overhead. This tool rebuilds the file with object streams, which gather many objects into compressed blocks, so the same document is described in fewer bytes.

The key word is lossless. No pixels are discarded and no images are downscaled, so the compressed file looks identical to the original — every glyph, line, and image is the same content. The trade-off is that the savings are modest and depend heavily on what is inside the file.

How It Works

pdf-lib loads your PDF and re-serializes it with the object-streams option turned on. Object streams, introduced in PDF 1.5 and defined in ISO 32000, store a collection of indirect objects inside one stream that is then Flate-compressed — the same deflate compression used in ZIP and PNG.

Because this only reorganizes and compresses the document's structure, text and vector content can shrink noticeably while already-compressed images are left as they are. The tool compares the new size with the original and reports how much it saved — or tells you the file was already optimized.

Processing pipeline

  1. Step 1. Add a PDF. It is read into memory locally — no upload.
  2. Step 2. pdf-lib re-saves the document with object streams enabled (useObjectStreams: true).
  3. Step 3. Many small objects are packed into Flate-compressed streams, cutting structural overhead.
  4. Step 4. The new size is compared with the original to measure the saving.
  5. Step 5. The optimized file downloads as compressed.pdf, with a note on how much smaller it is.

Privacy

The PDF is compressed entirely on your device. It is read from disk, re-packed in the page's memory, and offered back as a download — no copy is uploaded to NineClip or anyone else.

There is no account and nothing is retained. Close the tab and both files leave memory, which makes this safe for confidential documents you would never want sitting on a compression service's servers.

Technical Details

Enginepdf-lib (open-source, JavaScript)
MethodObject streams (PDF 1.5), Flate-compressed
TypeLossless — no image downsampling
Typical saving~10-25% on text/vector-heavy PDFs
Image-heavy PDFsLittle to no reduction
Outputcompressed.pdf
UploadNever — runs in your browser

Standards & references

  • ISO 32000 / PDF 1.5 — object streams are defined here (clause 7.5.7). They store many indirect objects in a single compressed stream, removing the per-object overhead.
  • DEFLATE (RFC 1951) — the lossless Flate compression applied to those streams — the same algorithm behind ZIP and PNG.
  • pdf-lib — performs the re-save with object streams enabled, in the browser.

Accuracy & Limitations

This is lossless compression, which is both its strength and its ceiling. It makes the file describe the same content more efficiently; it never lowers image resolution or quality. So the result looks exactly like the original — but it can only squeeze structural overhead, not picture data.

For PDFs made mostly of text and vector graphics — reports, contracts, generated documents — object streams typically trim 10-25%. For PDFs that are mostly images, especially scans and photo pages, the images already dominate the size and are not touched, so the file may shrink only slightly or not at all. The tool says so when that is the case.

The single biggest lever for shrinking an image-heavy PDF is downsampling its images to a lower DPI — a lossy step that genuinely cuts size but changes the pixels. This tool deliberately does not do that, so if a scan must get much smaller, reduce the image resolution before converting to PDF, or use a dedicated image-compression step.

A file that was already saved with object streams — many modern PDFs are — has little overhead left to remove, so re-compressing it can save almost nothing. That is expected, not a failure.

Real-World Use Cases

Trim a generated report

Shave structural overhead off a text-and-charts PDF exported from a word processor or reporting tool.

Tidy a bloated export

Some apps write PDFs inefficiently; re-saving with object streams reclaims that wasted space losslessly.

Email a text PDF

Nudge a document-heavy file under an attachment limit without changing how it looks.

Archive without quality loss

Keep a smaller copy that is still pixel-identical to the original, with no downsampling.

When to use it — and when not to

Good for

  • Text- and vector-heavy PDFs
  • Shrinking without any quality loss
  • Cleaning up inefficiently-saved files
  • Private documents you cannot upload

Not the best choice for

  • Scans and photo-heavy PDFs (little to gain)
  • Hitting an aggressive size target
  • Files already saved with object streams
  • Reducing image resolution

To make an image-heavy PDF much smaller, downsample the images first (lower their DPI) or compress the source images, then rebuild the PDF — accepting some quality loss as the trade-off.

Frequently Asked Questions

How much smaller will my PDF get?
For text- and vector-heavy files, object streams usually trim about 10-25%. For image-heavy or scanned PDFs, often very little, because the images — which dominate the size — are not altered.
Does compressing reduce quality?
No. This is lossless: it re-packs the file's structure without downsampling images or changing any pixels. The compressed PDF looks identical to the original.
Why did my file barely shrink — or not at all?
Either it is image-heavy (the images are not downsampled here) or it was already saved efficiently with object streams, leaving little overhead to remove. The tool tells you when that is the case.
What are object streams?
A PDF 1.5 feature that packs many of a document's small objects into a single compressed stream, cutting the overhead of storing each separately. It is defined in the ISO 32000 standard and applied losslessly.
How do I compress a scanned PDF further?
Scans are images, so the real lever is downsampling — lowering the images' DPI, which is lossy. Reduce the image resolution before making the PDF, or use an image-compression step; this tool will not degrade your scan to hit a size.
Is it lossy or lossless?
Strictly lossless. Nothing is discarded; the same content is just stored more compactly. That is why the savings are modest compared with tools that downsample images.
Are my files uploaded for compression?
No. pdf-lib re-saves the PDF inside your browser. Nothing is sent to a server, and refreshing the page clears it from memory.
Will it break links, text, or fonts?
No. Object-stream compression reorganizes how objects are stored, not what they contain, so text stays selectable and links keep working.
Can I compress the same PDF twice to shrink it more?
Not meaningfully. Once it is saved with object streams there is little structural overhead left, so a second pass saves almost nothing.
Does it work on my phone?
Yes, in any modern mobile browser. Very large files lean on the device's memory, but typical documents compress quickly.

References

We document exactly what the object-stream re-save does, and say plainly where it barely moves the needle.

PopularHot

Merge PDF

Free Merge PDF that works offline-style, with no file uploads or signup.

PDFOpen Tool
Popular

Split PDF

Run Split PDF privately and instantly with browser-based processing.

PDFOpen Tool
Popular

PDF to JPG

Free PDF to JPG that works offline-style, with no file uploads or signup.

PDFOpen Tool
Popular

JPG to PDF

Free JPG to PDF that works offline-style, with no file uploads or signup.

PDFOpen Tool

Rotate PDF

Rotate PDF entirely in your browser — your documents never leave your device.

PDFOpen Tool

Delete PDF Pages

Delete PDF Pages entirely in your browser — your documents never leave your device.

PDFOpen Tool

Ready to try the Compress PDF?

It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.