Loona Automation logoLoona PDF Tools
Home › PDF Tools › Compress PDF to Size

Compress PDF to a Specific Size

In short: ten target sizes, one honest method: lossless first, then only as much compression as your target needs.

Portals name a number — this hub matches it. Each target page runs the same two-step method tuned to stop the moment your file fits.

Private by design: your files are processed 100% in your browser with JavaScript. They are never uploaded to a server, never stored and never seen by us - close the tab and everything is gone.

How it works, step by step

  1. Choose the target your portal or app demands.
  2. Open that page and add your PDF.
  3. Download the fitted file and check the reported size.

Popular PDF Tools

Choosing a custom target size

Most portals use round numbers, but not all: limits like 150 KB, 300 KB, 750 KB or 4 MB appear on real forms, and none of them deserve a dedicated page. This tool takes any target you type and works the same way the fixed-size pages do — lossless repack first, then a ladder of quality settings, stopping at the first one that fits your number.

One practical tip: aim slightly under the stated maximum — enter 98 KB for a 100 KB limit, or 1.9 MB for a 2 MB limit. Portals do not all measure size the same way (some count in kilobytes of 1,000 bytes, others in kibibytes of 1,024), and a file that lands exactly on the boundary can be rejected by the stricter counter. A small safety margin costs almost no quality and saves a failed submission.

Frequently Asked Questions

Why a separate page per size?

Because the advice differs: 20 KB is for single-page ID scans, 2 MB is a CMS cap, 16 MB is about WhatsApp deliverability. Each page carries the context and worked example for its number, not just a different preset.

What if no target fits my document?

The tools report the smallest achievable size honestly. Splitting the PDF is then the practical route — the Split PDF tool is linked on every target page.

Should I aim exactly at the limit or slightly under it?

Slightly under. Systems disagree about what a kilobyte is (1,000 vs 1,024 bytes) and some measure the upload rather than the file, so a PDF that is exactly at the stated maximum can still be refused. Targeting about 2% under the limit — 98 KB for 100 KB, for example — avoids the edge case entirely.

Under the hood

Every target page shares one engine: a lossless pdf-lib re-save first (text stays selectable), then a PDF.js render ladder that stops at the first setting under the target. No page ever degrades a document further than its number requires.

Related PDF Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear.