Compress PDF on Linux
The Ghostscript pipeline, without memorising the flags.
About compress pdf on linux
The canonical Linux answer is a Ghostscript incantation with a -dPDFSETTINGS flag that nobody remembers, offering four coarse presets and no way to hit a specific size without scripting a loop. This tool runs a comparable optimization pipeline compiled to WebAssembly, adds a genuine target-size search, and works identically on Ubuntu, Fedora, Arch, Debian and any distribution with a modern browser — including on machines where you have no sudo rights.
- No apt install, no sudo, no package manager at all
- Distribution-agnostic — identical behaviour everywhere
- Target size mode, which the Ghostscript CLI cannot do directly
- Visual before-and-after comparison instead of guessing at flags
- Works on locked-down workstations without administrator access
How to compress pdf on linux
- 1
Drag your PDF into the drop zone, or click to browse for a file. You can add several files at once.
- 2
Confirm the compression level. This page already applies the Recommended preset, so you can usually leave it as is.
- 3
Press the Compress button. Processing runs on your own device and a progress bar tracks each file.
- 4
Download the optimized PDF. Use Download All when you have compressed a batch.
Frequently Asked Questions
How does this compare to the Ghostscript command line?
It runs a comparable optimization pipeline with a graphical interface. Ghostscript gives you four coarse -dPDFSETTINGS presets; this adds an exact target-size search and shows the resulting size immediately. For scripted batch jobs on a server the CLI remains the right tool — for interactive one-off compression, this is considerably faster.
Which Linux browsers are supported?
Firefox, Chrome, Chromium, Brave, Vivaldi and Edge for Linux all work. Any browser with WebAssembly support is fine. Chromium-based browsers tend to be somewhat faster on very large documents due to their memory allocation behaviour.
Can I use this without installing anything?
Yes, and that is the main advantage on a managed system. There is no package to install, no dependency to resolve and no root access required — useful on shared workstations, university lab machines or hardened corporate Linux builds.
Are my files uploaded to a server?
No. Compression runs entirely inside your browser using WebAssembly. Your PDF is read into local memory, processed on your own CPU and written straight back to your downloads folder. No network request ever carries the file.
Does compression remove metadata from my PDF?
Yes, and this is usually desirable. Author names, the originating software, revision history, comment threads and XMP blocks are stripped. That reduces file size and removes information you may not want to share — a genuine privacy benefit when sending documents externally.
Does this work on mobile phones and tablets?
Yes. The interface is fully responsive and the engine runs on iOS and Android. Bear in mind that mobile devices have less memory, so very large files (over roughly 50 MB) may be slow or fail on older phones.
Does this work on a slow or metered connection?
Very well, because the file itself is never transmitted. Only the page and the compression engine are downloaded, once, and they are then cached. Uploading a 100 MB PDF to a server-based tool would consume 100 MB of your data allowance; here it consumes none.
Do you keep bookmarks, links and form fields?
Yes. Bookmarks, the table of contents, internal cross-references, hyperlink annotations and interactive form fields all survive compression. Only the encoding of images and content streams is altered — the document's structural and navigational layers are preserved.
Can I compress multiple PDFs at once?
Yes. Drop in as many files as you like — they are queued and processed one after another so memory stays under control. Each file gets its own progress bar and download button, plus there is a Download All option.
Does compressing twice make the file even smaller?
Rarely, and it is usually counterproductive. The first pass already removes structural waste and downsamples images; a second pass mostly re-encodes already-degraded JPEGs, which loses more quality for negligible gain. Prefer a stronger preset on the original file instead.
Related PDF Tools
Compress PDF on Android
No app install and no storage permissions to grant.
Compress PDF on Chromebook
Built for ChromeOS — no extension, no Android app.
Compress PDF on Mac
Better results than Preview’s Quartz filter — no install needed.
Compress PDF on Windows
No Acrobat licence, no installer, no admin rights required.
Compress PDF on iPhone & iPad
Straight from Safari — no App Store download required.
Compress PDF to 800KB
Reduce any PDF to 800KB or smaller — entirely inside your browser.
Compress PDF to 1MB
Reduce any PDF to 1MB or smaller — entirely inside your browser.
Compress PDF to 2MB
Reduce any PDF to 2MB or smaller — entirely inside your browser.