PDFLantern

← Back to tools Deutsch
PDF Compression

How to Compress a PDF to a Specific File Size

If you've ever tried to upload a PDF and hit a wall — "file too large," "must be under 5MB," "attachment exceeds limit" — you know the frustration. Here's exactly how to get your PDF under any size limit, for free, without installing anything.

Ad space — insert your AdSense unit here

Why file size limits exist in the first place

Most limits aren't arbitrary. Email providers cap attachments (Gmail: 25MB), job application portals often cap resumes and portfolios at 2–10MB, and university or government submission forms frequently set hard limits like 5MB or even 1MB. Scanned documents and image-heavy PDFs (like architecture or design portfolios) blow past these limits fast, since a single high-resolution scanned page can weigh several megabytes on its own.

The fastest way: use a target size

Most online PDF compressors give you vague options like "low," "medium," or "high" compression and make you guess which one gets you under your limit. You upload, compress, check the size, and if it's still too big, you start over with a different setting.

A more direct approach: tell the tool your actual limit, and let it estimate which setting gets you there before you commit to a full compression pass.

How this works in PDFLantern's Compress tool: upload your PDF, click "Estimate output sizes" to see an approximate result for each compression level, then enter your target size in MB and click "Pick closest" — it automatically selects the strongest setting that still fits under your limit, without guessing.

Step-by-step guide

  1. Open the Compress tool and drop in your PDF (or click to browse).
  2. Click "Estimate output sizes" to see an approximate result for each of the four presets (Low, Recommended, Medium, High), based on a quick preview of your first page.
  3. Enter your target size in the "Target size (optional)" field — for example, 5 for a 5MB limit.
  4. Click "Pick closest" — the tool selects the best-quality preset that still fits under your limit.
  5. Click "Compress & Download" and you're done.

What actually makes a PDF large?

In almost every case, it's the images — scanned pages, embedded photos, or high-resolution screenshots. Plain text takes up very little space by comparison. That's why a 200-page text-only report might be 2MB, while a 10-page scanned document can be 50MB or more.

This is also why compression affects PDFs differently: a scanned portfolio will shrink dramatically, while a text-heavy contract may barely change size at all, no matter which setting you choose. If your PDF isn't shrinking much, it's a sign there's simply not much image weight to compress in the first place — the file is already about as small as it can reasonably get.

Frequently asked questions

Will compressing my PDF ruin the quality?

Some quality loss is unavoidable with any compression — that's the trade-off for a smaller file. Lower compression settings (like "Low") keep quality very close to the original, while higher settings ("High") prioritize file size over sharpness. Estimating first lets you see the size trade-off before committing.

Is it safe to compress sensitive documents this way?

Yes — PDFLantern's tools run entirely in your browser using JavaScript. Your file is never uploaded to a server; it's processed locally on your own device and never leaves your computer.

Why is my compressed file the same size as the original?

This usually means your PDF is mostly or entirely text, with little or no image content to compress. Text-based PDFs are already compact, so there's not much room to shrink further.

What if I can't reach my target size at all?

If even the strongest setting doesn't get you under your limit, the tool will tell you plainly. At that point, consider splitting the document into smaller parts, or removing pages that aren't essential.

Ad space — insert your AdSense unit here
Try the Compress tool free →