How to compress a PDF online
PDF files grow large quickly — especially when they contain high-resolution images, scanned pages, or embedded fonts. A large PDF can be hard to email, upload to a portal, or share. This tool uses Ghostscript, the same PDF engine used by professional desktop software, to genuinely re-compress the images inside your PDF.
Step-by-step instructions
- Upload your PDF. Click the upload area or drag your file onto it. Files stay in your browser — nothing is sent to a server.
- Choose a quality level. Balanced (150 dpi) suits most documents. High quality keeps more detail for printing. Maximum compression gives the smallest file.
- Click Compress PDF. Ghostscript loads once (~18 MB, takes 10–30 seconds on first use) then processes your file. You will see the before and after file sizes.
- Download and verify. Open the result before sending it to anyone. Keep the original as a backup.
Why is this different from other browser tools?
Most browser-based PDF compressors only strip metadata — they cannot touch the images inside the file, which is where most of the size lives. This tool uses Ghostscript compiled to WebAssembly, which means it runs the real Ghostscript PDF engine inside your browser. It can actually re-sample and re-compress embedded images, just like the desktop application would.
The trade-off is that Ghostscript WASM is about 18 MB, so the first load takes longer than a simple tool. After the first compression the engine stays loaded, so further compressions in the same session are much faster.
What do the quality levels mean?
- High quality (printer, 300 dpi): Images are kept at 300 dots per inch. Best if you need to print the result. Compression is modest — typically 10–30%.
- Balanced (ebook, 150 dpi): The recommended setting for most people. Images are resampled to 150 dpi, which looks good on screen and prints acceptably. Typically achieves 40–70% reduction.
- Maximum compression (screen, 72 dpi): Images are reduced to 72 dpi — screen resolution. Text and vectors remain sharp but photos will look soft. Best when file size is the only priority. Can achieve 70–90% reduction on image-heavy PDFs.
Privacy
Your file never leaves your device. Ghostscript runs entirely in your browser tab via WebAssembly. No file is uploaded, no account is required, and nothing is logged. This makes it safe for confidential documents including bank statements, contracts, and medical records.