How to compress a PDF without uploading it
Compress PDFs locally, compare measured sizes and understand when image-only output loses searchable text or makes a file larger.
To compress a PDF without uploading it, open PDFShore Compress PDF, select the file, choose a preset and download the result. Processing happens in your browser. Start with Light if you need searchable text, then compare the actual output size before replacing anything.
A smaller file is not guaranteed. Turning a compact text PDF into page images can make it several times larger. These measurements show both savings and increases, rather than a percentage you should expect for every document.
Which preset should you choose?
- Light: rewrites the existing PDF with object streams and clears common title, author, subject, keywords, producer and creator fields. It does not rasterize pages. This is not certified removal of all metadata, attachments or hidden content.
- Recommended: renders each page at 150 DPI, encodes it as JPEG at quality 0.75 and builds a new image-only PDF.
- Extreme: uses 100 DPI and JPEG quality 0.5. Fine print and thin lines can suffer. Like Recommended, it loses the searchable text layer and does not run OCR.
PDFShore uses pdf-lib to rewrite PDFs and PDF.js to render pages in a Web Worker. The browser provides the canvas and JPEG encoding. The pdf-lib save API describes serialization, not guaranteed lossless size reduction. MDN documents reading locally selected files; that capability alone does not prove that an arbitrary site avoids uploads.
Measured results: text, diagrams and a controlled scan
On November 3, 2026, we selected two public PDFs in the local PDFShore preview: the UN Universal Declaration of Human Rights (8 pages) and Attention Is All You Need (15 pages, text and diagrams). A third fixture simulated a scan: the first UN page was rendered at 300 DPI and embedded as PNG in a one-page PDF without text. It was not a physical scanner sample or a photograph-heavy benchmark.
| File | Original | Light | Recommended | Extreme |
|---|---|---|---|---|
| UN | 195,195 | 173,268 | 1,308,590 | 570,259 |
| Attention Is All You Need | 2,215,244 | 1,825,245 | 3,521,909 | 1,445,264 |
| Controlled scan (1 page) | 377,407 | 377,363 | 213,936 | 89,882 |
Light reduced the UN file by about 11% and the paper by about 18%, keeping extracted text identical. Recommended made both files larger. Extreme reduced the paper by about 35%, but made the UN file larger. The simulated scan fell by about 43% with Recommended and 76% with Extreme; Light barely changed it.
Quality and searchable text
All nine outputs retained the input page count and 612 × 792 point dimensions. PDF.js extraction returned identical text hashes after Light: 10,889 and 41,462 characters in the two text PDFs. Every rasterized output returned zero text characters. The controlled scan already had no text layer.
We visually compared the paper's third page, including its diagram, against Recommended and Extreme. Text and diagram remained visible after correcting worker canvas and embedded-font rendering. The lower-resolution versions looked softer. This was a spot check, not verification of every page, accessibility feature, signature or print requirement.
Tests used Chromium 150 on Windows, PDF.js 5.7.284 and pdf-lib 1.17.1 through the actual tool controls. Sizes are one-run observations after the local worker fix. Source revisions, browser JPEG encoders and metadata can change exact bytes.
A workflow for a file-size limit
- Keep the original. Select it in Compress PDF and try Light first.
- Compare sizes. If Light does not get under the limit, decide whether an image-only copy is acceptable before trying Recommended or Extreme.
- Open the download in a PDF reader. Check small numbers, table headings, page count and required pages. Try text selection and search when they matter.
- If only some pages are required, split the PDF locally. Removing unnecessary pages may help more than lowering every page's quality.
Need to combine files first? Merge PDF joins them locally. Also read compressing without losing quality and why some PDFs will not compress.
What no upload does, and does not, mean
Local processing avoids sending document contents to a processing provider. A server-based service is not automatically unsafe: retention, access controls and your organization's rules still matter. Scripts, fonts and navigation can cause requests during local processing. An empty Network panel is not the correct test.
Use a harmless example and inspect whether requests carry document data. A browser test is evidence for that run, not a security audit. Extensions, compromised devices and the recipient remain outside the compressor's control.
For encrypted PDFs, use an authorized unlocked copy. Large documents can exhaust browser memory. Compression is not redaction, anonymization or a guarantee that a signed document remains valid. Keep the original whenever that matters.