Optimise a PDF for the web — linearise it for fast first-page display

Drop a PDF and press Optimise for web to save a linearised copy, arranged so a browser can show the first page while the rest is still downloading.

Live demo · real result from this tool

Drop your PDF here

or paste with Ctrl+V · nothing is uploaded · add several to process them in one go

Your result appears here — processed on your device.

Processed on your device — nothing is uploaded.

How to use the PDF optimizer

  1. Drop a PDF onto the box or press Choose a file.
  2. Press Optimise for web. There are no settings.
  3. Read the summary, which shows the size before and after, and download the copy. It is named with -web added, so brochure.pdf becomes brochure-web.pdf.
  4. Upload the new file to your website in place of the old one.

What it does and when to use it

When a PDF is linked from a web page, a normal file must arrive completely before many viewers can draw anything, because the index of a PDF is stored at the end. A linearised PDF puts the first page’s content and a page index at the start. If the web server supports partial downloads (byte-range requests, which most do), the browser’s viewer can display page 1 within a moment and fetch later pages as you scroll.

This matters most for long, heavy files people open from a link: product catalogues, menus, annual reports, course packs and manuals. For a file you only send by email, linearising gives no benefit, and compressing or extracting the pages you need helps more.

How it works

The tool runs qpdf, a widely used open-source PDF toolkit, compiled to WebAssembly (the @neslinesli93/qpdf-wasm package), inside a background worker in your browser. pdf-lib is also part of the tool. The file is passed to qpdf with three instructions:

  • --linearize: write the file in linearised order with hint tables.
  • --object-streams=generate: pack small objects together into compressed object streams.
  • --compress-streams=y: make sure content streams are compressed.

qpdf then writes a new file that describes exactly the same document. Nothing is re-rendered or re-encoded, so image quality and text are untouched.

Worked examples

A 12-page report. A 5.2 KB test report made by a PDF library gives Linearised for fast web view · 5.2 KB → 5.9 KB. The hint tables cost a little space on a file this small.

A 40-page catalogue for a website. The summary shows the size before and after. Upload the -web copy in place of the old file; a viewer that loads PDFs in parts can now show page 1 before the rest has arrived.

Limits and tips

  • The benefit depends on the server and viewer supporting partial downloads. If either does not, the file simply loads as normal.
  • Password-protected files must be unlocked first with Unlock PDF.
  • Editing a linearised file later (adding pages, filling a form) usually removes the linearisation. Optimise as the last step before you publish.
  • To shrink scanned or photo-heavy files to a set size, try compress PDF to 1 MB.

Frequently asked questions

Will this make my PDF smaller?
Not reliably. Linearising adds a small index (hint tables), and streams are recompressed, so the file may end up slightly bigger or slightly smaller. A tiny 5.2 KB test file grew to 5.9 KB. To reduce size, use the PDF compressor.
What does fast web view actually change?
It reorders the objects in the file so that everything needed for the first page comes first, and adds an index that tells the reader where each page starts. A viewer that downloads in parts can then show page 1 almost at once.
Does it change how the pages look?
No. The work is lossless. Text, images, fonts, links and form fields are kept exactly; only the internal layout of the file changes.
How can I tell if a PDF is already linearised?
Many desktop PDF readers list Fast Web View as Yes or No in the document properties. Running a file through this tool again does no harm.
Does anything get downloaded?
The qpdf engine (a WebAssembly file of about 1.3 MB) is loaded from this site the first time you use the tool. Your PDF is processed in your browser and never uploaded.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close