This page's code did not start.

Opening index.html directly from a folder blocks JavaScript modules, so nothing will happen when you choose a PDF. Serve the folder over http instead:

powershell -ExecutionPolicy Bypass -File serve.ps1

Then open http://localhost:8080/.

Compress PDF — make a PDF smaller

Shrink a document without sending it anywhere.

Language: English
View source
Your documents are processed in your browser. No processing upload.

The document is opened, taken apart and written back out in memory on this machine, by code served from this address. Nothing here can make an upload, and there is no server on the other end of this page to receive one.

Live check: checking…

Offline: checking…

Don't take our word for it: open DevTools, watch the Network tab, and compress a file. Not one request carries a page, a picture, or a filename. Or unplug from the internet and compress one anyway.

1 Choose a PDF

2 See where the size is

"Compress a PDF" is two different jobs sharing one name. A scan is a stack of photographs, and re-encoding them is worth most of the file. A contract is text and fonts, which whatever made it already compressed — there is no eighty per cent hiding in it, and no tool can find one. Which of the two you have is not a matter of opinion, so here it is before anything is touched.

    3 Say how hard to squeeze

    A PDF records how large each picture is drawn, so this tool can measure what the page actually uses rather than guess. A 4000-pixel scan placed across eight inches of paper is carrying 500 pixels to the inch; at 150 it prints the same and looks the same on screen. Pixels nobody can see are spent first, because they cost nothing.

    Take out what the file remembers about where it came from The name and version of the program that made it, when it was made and last edited, the XMP packet, and the private blob a layout application leaves behind so it can re-import its own work — which is occasionally megabytes. None of it is needed to display the document.

    How much quality may be spent
    Set the two numbers yourself
    DPI — 0 leaves every picture at its full size
    68

    4 Compress

    View as Markdown

    How to make a PDF smaller

    1. Choose a PDF. Drop it on the picker or select it by hand. It is read straight off your disk by the browser; nothing is sent anywhere while you do it.
    2. Look at where the size is. The breakdown is the point of the second step. If the bar is mostly images, this tool has something to work with. If it is mostly fonts and page content, it will say so, and the honest saving is a few per cent — better to know that before you spend a minute on it.
    3. Say how hard to squeeze. The named settings are resolutions, not vague grades: 96 DPI for reading on a screen, 130 for emailing, 220 for something that still has to print. Each one is measured against how large the picture is actually drawn on the page, so a photo placed as a thumbnail is not treated like a full-page scan.
    4. Compress it, and check the line that says it was checked. When the rewrite is done the finished file is opened again by the same reader on this page and its pages counted. If that disagrees with the original, the run is reported as failed and no download is offered.

    The longer version

    How to make a PDF smaller, and why some will not shrink Where a PDF's size actually is, why a scan compresses 80% and a contract barely moves, what DPI means here, and what a compressor should never do to your document.

    Questions

    Is my PDF uploaded anywhere?

    No. The file is read, recompressed and written by your own browser on your own hardware. There is no server side to this tool, and the page's Content-Security-Policy names every address it may contact — none of them belongs to this site. This tool has no optional network feature at all.

    How much smaller will my PDF get?

    It depends entirely on what is in it, which is why the tool measures and shows you before it compresses anything. A scanned document is almost all photographs and commonly comes out ⁦60–90⁩% smaller. A contract or a thesis is text, vector drawing and embedded fonts, all of which were already compressed by whatever produced them; there the saving is usually a few per cent, from repacking the file and dropping what is no longer referenced. Any tool promising a fixed percentage without looking at your file is guessing.

    Does compressing a PDF lose quality?

    The pictures in it are re-encoded, so yes, for those. Nothing else is touched: the text stays text, selectable and searchable, the fonts are kept whole, and the vector drawing is copied across exactly. The tool also refuses to make a picture worse for nothing — if a re-encode does not come out smaller than the original, the original bytes go back into the document untouched.

    What is DPI here, and why does it ask?

    A PDF records how large each picture is drawn on the page, so the tool can work out its effective resolution: a 4000-pixel scan placed across eight inches of paper is carrying 500 pixels to the inch. Nothing on a screen and very little on paper can use that, so the pixels above the setting you choose are thrown away first — they cost quality nobody can see. That measurement is why a logo placed small is not treated the same as a full-page scan.

    Can it open a password-protected PDF?

    No, and that is deliberate. An encrypted document is refused with a message saying so, even when the password is blank — which is how a lot of scanners and copiers save. Taking the protection off a file is a different job from compressing it, and a tool that did it silently would be doing something you did not ask for.

    Are there PDFs it cannot compress?

    Some images inside them, yes. JPEG 2000, JBIG2 and fax-coded (CCITT) images have no decoder in any browser, so they are passed through untouched and reported as such — the last two are bilevel codecs and are usually near their smallest anyway. CMYK images are left alone too, because re-encoding them risks shifting the colours a printer would produce. Everything the tool skips is named on the results, with the reason.

    Will the compressed file still open everywhere?

    Yes. The output is written as PDF 1.5, which every reader shipped since 2003 understands, and the tool proves the point on your own machine: it opens the finished file again and counts its pages before offering it to you. Forms, links, bookmarks, the accessibility structure and any embedded attachments are carried across; what is left behind is the material nothing in the document referred to any more.

    Is it free, and do I need an account?

    It is free, and there is no account, no sign-in, no trial and no file size limit beyond what your own machine's memory allows. The site carries advertising, which is what pays for it; the ads are not given anything about your document.

    Does it work offline?

    Yes. Load the page once, then disconnect from the internet and it keeps working. That is also the simplest way to prove nothing is being uploaded: a tool that sent your document away to be compressed would stop the moment you unplugged.