Compress a PDF
Shrink a PDF so it fits an email or an upload form. Choose how much quality you are willing to trade for size; the tool shows the size before and after, and keeps your original if it cannot do better.
Loading the tool…
Files are processed on this device and never uploaded.How to check
How it works
This tool runs Ghostscript, a long-established open-source PDF engine, inside your browser. It has been compiled to WebAssembly, so it runs on your own processor like any other part of the page. Ghostscript reads your PDF and writes a new one, re-compressing images at the resolution you picked, removing duplicate images and compressing fonts.
The engine is about 15 MB. To keep the page light it is not loaded until you press Compress, and the page tells you the size before it starts. After the first time your browser usually serves it from its cache.
What to expect
Results vary a lot, and it is better to know that up front:
- Scanned documents and photo-heavy PDFs usually shrink the most, because their size comes from large images that can be stored at a lower resolution.
- Text-only documents, such as exports from a word processor, are often already compact. They may shrink a little or not at all.
- Some files get bigger. If the output is not smaller than the input, the tool says so and offers your original file instead of a worse one.
Text and vector graphics stay sharp at every setting. The quality levels mostly change how photos and scanned pages are stored, so if a scan becomes hard to read, try a higher level.
Privacy and limits
Your PDFs never leave your device; only the engine is downloaded, from this site. Files that need a password to open cannot be compressed. Very large files need a lot of memory, so on phones it can help to compress one file at a time. Interactive form fields and some document extras may be flattened or dropped when Ghostscript rewrites the file, so keep your original. To shrink images before they go into a PDF, Compress image can help.
Frequently asked questions
How much smaller will my PDF get?
It depends on what is inside. Scans and documents with large photos often shrink a lot. Files that are mostly text, or that were already compressed, may barely change, and occasionally the output is larger. The tool always shows both sizes and offers the original when compression did not help.
Are my files uploaded?
No. Compression runs in your browser using Ghostscript compiled to WebAssembly. The only download is the engine itself, which comes from this website and is then cached by your browser. Your PDFs stay on your device.
Which quality level should I choose?
Smallest file reduces images to about 72 dpi, fine for reading on screen. Balanced uses about 150 dpi and is a good default for sharing. High quality keeps about 300 dpi for printing. Text and vector graphics stay sharp at every level; the levels mostly affect photos and scans.
Why does the first compression take longer?
The compression engine is about 15 MB. Your browser downloads it the first time you press Compress and keeps it in its cache, so later visits start faster. It is not downloaded until you ask to compress a file.
Can I compress password-protected PDFs?
Not if the file needs a password to open. Save an unprotected copy in your PDF reader first, then compress that copy.