Skip to content
100% private — files stay on your device

Compress a PDF to an exact size

Upload portals are brutal: "maximum 100 KB", "under 500 KB" — and normal compressors won’t tell you what you’ll get. This tool works backwards from your limit: type the target size and it automatically searches for the best quality that fits under it. If your file already fits (or a lossless clean-up gets it there), it won’t touch your quality at all. And if the target is physically impossible, it says so honestly and gives you the smallest it could make.

Select a PDF file
or drag & drop here — files never leave your device
    1 MB = 1024 KB. Common limits: 100, 200, 500, 1024.

    How to use the Compress to size tool

    1

    Select or drag your PDF.

    2

    Type the target size in KB (e.g. 100, 200, 500).

    3

    Click “Compress to size” and download a file that fits your limit.

    Your files stay on your device

    This tool runs entirely in your browser using JavaScript and WebAssembly. There is no upload step and no server processing — open your network panel and check: zero document data is transmitted. It even keeps working offline once the page has loaded.

    Frequently asked questions

    How does it hit the exact target size?

    It tries a lossless clean-up first (no quality change). If that doesn’t fit, it renders the pages and automatically steps down quality and resolution until the file fits under your limit — always keeping the highest quality that fits.

    What if my target is impossible for this document?

    Some content simply can’t fit extreme targets (e.g. a 50-page colour scan under 100 KB). The tool then gives you the smallest version it could produce and tells you clearly the target wasn’t reachable, instead of silently failing.

    Will text stay selectable?

    If your file fits the target losslessly, yes — nothing is re-encoded. If it needs the strong compression path, pages become optimized images (like every to-size compressor), which is fine for portals and email.

    Is it safe to use this tool with confidential documents?

    Yes — and verifiably so. PDFAgent has no upload step: your file is processed by JavaScript running in your own browser and never leaves your device. You can open your browser’s network panel (or even go offline after loading the page) and confirm that no document data is transmitted.

    Related tools

    Popular size limits

    Preset pages for the limits upload forms ask for most: