All articles
How-to7 min2 March 2026

How to Reduce PDF Size Locally in the Browser

You can reduce the size of a PDF file directly in your browser without uploading it to any external server. Minifiles.io processes PDF compression locally using a WebAssembly-based worker, so your document stays on your device throughout the entire process. This guide covers how it works, which preset to choose, what results to expect, and how it compares to other approaches.

Why PDF files are often too large

PDF files produced by document editors, scanners, or export tools are often larger than necessary. A PDF exported from a design tool may embed high-resolution images at print quality even when the document will only ever be viewed on screen. A scanned PDF can easily reach 10–50 MB per page when the scanner is set to high DPI. Word and LibreOffice documents exported to PDF often retain uncompressed image data. These sizes are impractical for email attachments (typically limited to 10–25 MB), cloud storage quotas, or web uploads with size restrictions.

How local PDF compression works in the browser

Minifiles.io uses a Web Worker running a WebAssembly-based compression engine inside the browser. When you add a PDF, the worker reads the file into browser memory, analyses the document structure, and applies the selected compression preset. The preset controls how embedded images are resampled and how content streams are compressed. Once compression is complete, the browser offers the output as a direct download. No network request is made to compress the file — the PDF never leaves your device during compression.

Understanding the compression presets

Minifiles.io compresses PDFs with Ghostscript compiled to WebAssembly and offers four presets, which map internally to Ghostscript's /screen, /ebook, /printer and /prepress settings. Maximum: the smallest file. Images are downsampled to 72 DPI — ideal for web sharing and email (an estimated ~90% smaller). Balanced: the default, targeting 150 DPI images for a good balance between size and quality (an estimated ~80% smaller). High Quality: 300 DPI images, suitable for printing (around 50% smaller). Lossless: 300 DPI, preserving maximum quality for professional use (around 45% smaller). Produces the largest output among the four presets but retains the most detail. Free users and guests get Balanced; all four presets require Pro.

What compression results to expect

Results depend heavily on the PDF's content. A scanned PDF with large embedded images may compress to 10–20% of its original size using the Maximum preset (Pro) — a 20 MB scan could become 2–4 MB. A PDF containing mostly text and vector graphics compresses very little because text and vectors are already compact. A PDF exported from a design tool with high-resolution photos can typically be halved in size using the Balanced preset with no visible quality degradation on screen. Password-protected PDFs cannot be processed and will be flagged by Minifiles.io.

How to reduce PDF size with Minifiles.io: step by step

  1. Open minifiles.io in your browser on desktop or mobile. 2. Select the PDF tab. 3. Drag your PDF onto the upload zone, or click to browse. 4. Keep the default Balanced preset, which suits most use cases (Pro unlocks Maximum, High Quality and Lossless). 5. Click Compress. 6. Use the comparison panel to see the original and compressed file sizes. 7. Click Download to save the smaller PDF. The entire process runs in your browser — no account, no upload, no installation required. If you need a specific target size, try our dedicated compress PDF to 100 KB or compress PDF to 1 MB tools.

Comparing local compression to online PDF compressors

Most online PDF compressors — including iLovePDF, Smallpdf, and Adobe's online tools — require you to upload your PDF to their servers. The file is processed remotely and a download link is returned. This is convenient but means a third-party service receives and temporarily stores your document. For personal documents this may be acceptable. For contracts, medical records, financial statements, or any document containing personal data, uploading to a third-party server creates a data transfer that may have GDPR, HIPAA, or other compliance implications. Minifiles.io avoids this entirely: compression happens on your device.

Compressing very large PDFs (1–2 GB)

Because compression runs inside your browser, the limit is your device's memory rather than an upload cap. PDFs of a few hundred megabytes usually compress fine on a desktop or laptop with a current browser. For files of 1–2 GB, close other tabs and use a desktop browser; if the tab runs out of memory, split the PDF into smaller parts, compress each one, and merge them back together. Huge PDFs are almost always scans or image-heavy exports, so the Balanced preset (150 DPI) typically shrinks them dramatically. It's free — no payment is needed to compress a PDF, large or small.

Compressing and then protecting a PDF

A common workflow is to compress a PDF to reduce its size and then add a password to protect it before sharing. Minifiles.io supports both operations locally. Compress the PDF first using the PDF tab, then switch to the Protect tab to add a user or owner password. Both operations run on your device — no upload required at any stage.

When local browser compression may not be sufficient

Browser-based PDF compression has limitations. Very large PDFs (above 100–200 MB) may exhaust browser memory, particularly on devices with limited RAM such as smartphones. PDFs with complex interactive elements or embedded video may not compress predictably. If the PDF is already optimised (e.g. previously compressed), further compression will yield little reduction. For these cases, desktop tools such as Ghostscript or Adobe Acrobat Pro offer more control, though at the cost of installation and, for Acrobat, a subscription.

Privacy implications of PDF size reduction

PDFs often contain metadata — author name, software used, revision history, and sometimes tracked changes or comments. Compression does not remove metadata. If you need to share a PDF without revealing metadata, consider using a PDF editor to clean metadata before or after compression. Minifiles.io focuses on file size reduction and does not currently strip PDF metadata.

Key takeaways

  • Minifiles.io compresses PDFs locally in the browser using WebAssembly — no upload to any server.
  • Four presets: Maximum (smallest, 72 DPI), Balanced (default, 150 DPI), High Quality (300 DPI), Lossless (300 DPI, maximum quality); free users get Balanced, Pro unlocks all four.
  • PDFs with many images can be reduced by 60–90%; text-heavy PDFs compress by 10–30%.
  • Password-protected PDFs cannot be processed — the password must be removed first.
  • Local compression avoids GDPR and HIPAA data transfer concerns associated with uploading to third-party servers.
  • After compression, PDFs can also be password-protected locally using Minifiles.io's Protect tab.

Frequently asked questions

Which compression preset should I use for email?

The Balanced preset (the default, and the one included on the free plan) is recommended for most email use cases. It balances file size reduction with readable image quality. Use Maximum (Pro) only if the file is still too large after Balanced compression and the recipient will only read it on a screen.

How much smaller will my PDF get?

It depends on the content. PDFs with many high-resolution images can be reduced by 60–90%. PDFs with mostly text and vector graphics typically compress by 10–30%. The comparison panel in Minifiles.io shows the exact reduction before you download.

Does Minifiles.io upload my PDF to a server?

No. All compression runs locally in your browser using WebAssembly. Your PDF never leaves your device.

Can I compress a password-protected PDF?

No. Password-protected PDFs cannot be processed by Minifiles.io. You would need to remove the password first, compress the PDF, and then reapply protection if needed.

Can I compress a PDF on my phone?

Yes. Minifiles.io works in mobile browsers on iOS and Android. Very large PDFs may be limited by the available memory on your device.

Does compression reduce PDF quality?

Compression always involves trade-offs. The Maximum and Balanced presets reduce image resolution inside the PDF, which is visible when printed at large sizes but imperceptible when reading on screen. The High Quality and Lossless presets (Pro) preserve higher image quality at the cost of less size reduction.

Try it now — free

Compress PNG, JPEG, and PDF files in your browser. No upload, no installation.

Compress PDF