How does PDF compression work?
Most of a PDF's size is images and embedded fonts, not text. Optimisers combine several techniques: re-encoding images at a lower resolution or quality (JPEG for photos, lossless Flate for line art), subsetting fonts to the glyphs actually used, removing unused objects, duplicate resources and metadata, and linearising the file so a browser shows the first page before the download finishes. Not every tool uses all of them. These techniques keep the text layer, links and structure; rasterising whole pages into images, the most aggressive option, turns text into pixels and loses them.
Read the guide: PDF Compression Explained
How to use Optimize PDF for Web
- Drop a PDF.
- Keep "Re-compress streams" on for the smallest output.
- Click "Optimize for web".
- Download the linearised file.
Optimize PDF for Web features
- True linearisation (Fast Web View) with qpdf 12 in WebAssembly
- Object streams and deflate recompression
- Unused objects and incremental history dropped
- Result states whether the file is linearised
- Honest fallback when WebAssembly is unavailable
- Local processing
Optimize PDF for Web example
A 40 MB manual for a website
Input:
manual.pdfOutput:
manual-web.pdf — Fast Web View: yes; size 31 MB; the first page displays before the download completesOrdinary PDF
Start of file → end
- 1Header
- 2Objects in any orderPage 1’s objects can sit anywhere
- 3Cross-reference table and trailerWhere each object starts
- Fast Web View:
- No
Linearised (this tool)
Start of file → end
- 1Header and
/LinearizeddictionaryWith the hint stream and page 1’s cross-reference - 2Page 1’s objectsPage 1 can show
- 3The other pagesFetched later, with HTTP range requests
- Fast Web View:
- Yes
Simplified: each list shows the main parts of the file in the order they are stored, not to scale.
Frequently asked questions about Optimize PDF for Web
What is a linearised PDF?
A file whose objects are ordered so a viewer can render the first page from the beginning of the download and fetch later pages with HTTP range requests — "Fast Web View" in Acrobat. It matters for large documents served on the web.
Is it really linearised, or just re-saved?
Really linearised: the output starts with a /Linearized dictionary and hint tables produced by qpdf 12, the reference implementation. The result page confirms it; if the WebAssembly engine cannot load, the tool says the file is not linearised.
Does it reduce the file size?
Slightly — streams are re-compressed and unused objects dropped — but that is a side effect. Use Compress PDF for size.
Is my PDF uploaded to a server?
No. The file is opened and processed by your browser with WebAssembly and JavaScript; nothing is sent to Mutqan Soft or anyone else. Close the tab and the file is gone. Downloading the result needs a free account, and right now this tool also asks you to sign in before it runs — no subscription, no payment.
Can I use it on a password-protected PDF?
Yes, if you know the password: the file list asks for it once and every operation then works on the decrypted pages. The output is saved without a password unless you protect it again.
Technical notes
The file is first rewritten by pdf-lib (object streams, fresh xref), then passed to qpdf with --linearize --object-streams=generate --recompress-flate --compression-level=9. qpdf writes the linearisation dictionary, hint stream and first-page cross-reference at the start of the file. The tool verifies the /Linearized marker in the output before calling it Fast Web View.
References
- ISO 32000-2:2020 — Document management — Portable document format — Part 2: PDF 2.0The current PDF standard: file structure, objects, pages, fonts, annotations, forms and encryption.
- PDF Reference — ISO 32000-1:2008 (PDF 1.7), Adobe copyThe freely readable PDF 1.7 specification: page trees, content streams, metadata, permissions and the standard security handler.