Skip to content
comprimirunpdf
100% private and local

Compress a PDF without uploading it to any server: why it matters and how to check

Most online compressors upload your document to someone else's server and ask you to trust that they'll delete it. There's another way to do it, and you don't have to take anyone's word for it: you can check it in thirty seconds.

By Robert Bzia7 min read

When a form rejects your PDF for being too large, the solution seems obvious: search for “compress PDF” and use the first result. What almost nobody asks at that moment is what they've just done with their document. And the document in question is often the most sensitive thing on your hard drive: a scan of an ID card, a payslip, a signed contract, a medical report.

This article explains what happens technically in the two models that exist, how to tell one from the other in any tool —not just this one— and how to check it yourself in under a minute, without relying on what the home page says.

In a hurry? The tool on this site compresses to the exact size you need without the file ever leaving your device.

Compress a PDF now

What really happens when you upload a PDF to an online compressor

In the classic model, pressing “compress” triggers an upload: your file travels over the internet to a server, often in another country, where a program processes it and sends back the result. Between those two moments several things happen that the interface doesn't show.

None of this implies bad faith. It's simply the unavoidable cost of a model where the work is done by a computer that isn't yours. And in most cases —compressing a holiday photo— it's a perfectly acceptable cost. The problem arises when the file is precisely the one you wouldn't want to hand to a stranger.

The alternative: let your own browser do the work

A modern browser is a complete runtime environment. It can read a file from disk, decode a PDF, draw each page onto an in-memory canvas, recompress those images and reassemble the document. All of that happens inside the tab, with your device's CPU and memory.

When a tool works like that, the phrase “we don't upload your file” isn't a privacy policy: it's a description of the architecture. There's no server that could see the document because there's no network request that carries it. The server only delivers the app —the HTML, the JavaScript, the styles— just as it would deliver any web page, and from then on it plays no part.

Diagram comparing a server-based PDF compressor, where the document is uploaded to someone else's server, with a browser-based one, where it's compressed inside the tab without traveling over the network.
With a server-based compressor your PDF travels and is copied outside your computer; with one that runs in the browser, the server only delivers the app. Enlarge image
Diagram comparing a server-based PDF compressor, where the document is uploaded to someone else's server, with a browser-based one, where it's compressed inside the tab without traveling over the network.

Swipe to see the whole image

What it takes technically

Two pieces make this model possible. The first is a library that can interpret the PDF format inside the browser, which is what lets the file be drawn without outside help. The second is a Web Worker: a thread of execution running in parallel to the interface. Without it, compressing a twenty-megabyte document would freeze the whole page for seconds; with it, the progress bar moves smoothly while the work happens in the background.

How to check it yourself in under a minute

This is the important part, and it works for any tool that claims to process locally, this one included. You don't have to believe anything: you look.

Infographic with three ways to check whether a compressor uploads your PDF: airplane mode, the definitive test; the browser's Network tab, very reliable; and the privacy policy, which only gives hints.
Three tests to tell whether an online compressor uploads your document, from the most conclusive to the one that only gives hints. Enlarge image
Infographic with three ways to check whether a compressor uploads your PDF: airplane mode, the definitive test; the browser's Network tab, very reliable; and the privacy policy, which only gives hints.

Swipe to see the whole image

Method 1: the Network tab (30 seconds)

  1. Open the browser's developer tools: F12 on Windows and Linux, Cmd + Option + I on Mac.
  2. Go to the Network tab and leave the list visible.
  3. Compress a file as usual and watch the requests that appear meanwhile.

What to look for: any POST or PUT request whose upload size resembles your document's. If your PDF is 4 MB and you see an outgoing request of about 4 MB, your file has been uploaded, whatever the page says. If, when compression finishes, there's no new request of that size, nothing has left.

Two lists from the browser's Network tab: one shows a 4.1 MB POST request, the size of the PDF; the other shows no request at all when compressing.
Illustrative example of what the Network tab shows: a POST request the size of the document gives away that it has been uploaded. Enlarge image
Two lists from the browser's Network tab: one shows a 4.1 MB POST request, the size of the PDF; the other shows no request at all when compressing.

Swipe to see the whole image

Method 2: airplane mode (the definitive test)

It's the most conclusive check, and it doesn't require knowing how to read a list of requests. Load the page as usual, then turn off Wi-Fi or mobile data, and compress a file.

If it works offline, there can't possibly be a server involved. A service that uploaded files would throw a network error immediately. On this site, moreover, the app stays saved in the browser after the first visit, so you can install it and use it on a plane, in a basement or in a village with no coverage.

Method 3: read the fine print of the privacy policy

Less conclusive, but revealing. In a tool that uploads files, the privacy policy has to talk about retention periods, data processors, international transfers and security measures for the documents. In one that processes locally, those sections simply don't apply to the files, because they never come to exist on the server.

What does get logged, even here

Being honest about this is part of the argument. The document not being uploaded doesn't mean the visit is invisible:

The substantial difference is that none of those logs contains the content of your documents, because your documents are never sent. What can be known is that someone visited the site; not what they compressed.

The trade-offs, stated plainly

Local processing isn't free. It has three real limits worth knowing before you choose:

Checklist for evaluating any PDF compressor

If tomorrow you use another tool, these five questions tell you in a minute which model you're dealing with:

  1. Does it work with Wi-Fi turned off? If yes, it processes locally. If not, it uploads your files.
  2. Does any large request appear in the Network tab when compressing?
  3. Does the privacy policy mention file deletion periods? That gives away that it stores them.
  4. Does it force you to sign up or give an email address to download the result? That's a sign the file is on their server and they control delivery.
  5. Can you choose the exact final size, or only “low / medium / high”? It's a question of usefulness, not privacy, but it makes the difference when a form demands less than 2 MB.
Infographic with five questions for evaluating a PDF compressor and the answer that's a good or bad sign for each: whether it works offline, whether an upload shows up in the Network tab, whether the policy mentions deletion periods, whether it requires sign-up and whether you can choose the exact size.
Five questions to find out in a minute what kind of compressor you're dealing with. Enlarge image
Infographic with five questions for evaluating a PDF compressor and the answer that's a good or bad sign for each: whether it works offline, whether an upload shows up in the Network tab, whether the policy mentions deletion periods, whether it requires sign-up and whether you can choose the exact size.

Swipe to see the whole image

Frequently asked questions

Is it safe to compress a PDF online?

It depends on where it's processed. If the tool uploads the file to a server, a copy of your document exists outside your control for a while, and its deletion is a promise you can't verify. If it's processed in the browser, the document never leaves your device. To tell them apart, turn off Wi-Fi and compress: if it keeps working, nothing is uploaded.

How can I tell if a PDF compressor uploads my file?

Open your browser's developer tools (F12), go to the Network tab and compress a file. A POST or PUT request about the size of your document means it has been uploaded. The simplest test is airplane mode: a service that uploads files stops working offline.

Do you lose quality by compressing in the browser instead of on a server?

Not because it happens in the browser: with the same method, the result is equivalent. What changes is privacy. That said, to reach a specific size the pages are turned into images, so the text is no longer selectable, although it reads just the same.

Next step

If you've made it this far because a form rejected a file, what you need is a specific size. These are the pages for the most requested limits, and each one opens the tool with that target already set:

To understand where a PDF's size comes from, read why a PDF is so large; and if you're going to email it, this guide explains how much really fits in an attachment.

And if you want to compress without installing software, this guide compares what each system has built in —iPhone, Android, Mac and Windows— with a browser-based compressor.

Other guides you may find useful

See all guides · Go to the PDF compressor