Home PDF tools Compress PDF

Compress PDF

Reduce a PDF's file size in your browser with two clearly labelled modes: Lossless, which re-saves the file and keeps text selectable, and Strong, which rasterises every page to JPEG. You get the original size, the output size and the percentage saved — measured on your file. Nothing is uploaded.

FileNo file loaded
Pages
Original size
Compressed size
Saved
No PDF loaded yet.

Lossless mode re-saves the file and strips metadata. Text stays selectable and quality is untouched, but most files change only a little.

Choose a PDF file to begin.

The sizes and the percentage shown after a run are counted from your own file: the tool reads the bytes you loaded and the bytes it wrote, then divides them. Nothing here is an estimate, and the page makes no promise about how much your file can lose. If a run does not make the file smaller, you are told so and no download is created.

What this PDF compressor does

This page reduces the size of a PDF in your browser. You pick a file, choose one of two clearly labelled modes, press Compress PDF, and the tool reports the exact original size, the exact output size and the percentage that was saved — counted on your document, not copied from anybody else's. Then you download the new file. Your original PDF on disk is never modified or overwritten.

The two modes do genuinely different things, which is why they are named rather than presented as one slider. Lossless re-saves the document with object streams instead of plain cross-reference tables and drops the document information dictionary and any XMP metadata. Not a single page is redrawn, so text stays vector text and images keep their original pixels; the gain comes only from overhead the file was carrying. Strong renders each page with the pdf.js renderer at 72, 100 or 150 DPI, encodes that render as a JPEG at the quality you set, and rebuilds the document from those images. Page dimensions are preserved, but the page content is now a picture. The warning sits next to the DPI and quality controls, because that is the moment the trade-off matters.

Nothing is uploaded. The file is read from your disk with the browser's file API, processed inside the page by pdf-lib and pdf.js, and handed back to you as a download. There is no server, no account, no queue and no copy of your document anywhere except your own device. Once the page has loaded you can disconnect from the network and both modes still work.

How to use this PDF compressor

  1. Press Choose a PDF file and pick the document. The page shows the file name, the page count and the original size, and nothing leaves your browser.
  2. Choose a mode. Lossless keeps text selectable and only removes overhead; Strong redraws each page as a JPEG image, and the warning beside those controls spells out what that costs.
  3. If you chose Strong, set the render resolution (72, 100 or 150 DPI) and drag the JPEG quality slider. In Lossless mode there is nothing to tune, because there is no quality decision to make.
  4. Press Compress PDF. Strong mode works through the document one page at a time and reports its progress as it goes.
  5. Read the readout: original size, compressed size and the percentage saved, all measured from the file you loaded. If the run produced something bigger, the page says so and offers no download.
  6. Press Download to save the result under a new name, for example report-compressed.pdf or report-strong.pdf. Your original stays exactly as it was.

Worked example

The test files used here were built for this page. The first is site-report.pdf: 6 A4 pages of text, 13,693 bytes (13.37 KB), carrying a full set of document metadata. Every number below is what this page reported in a browser on that file.

The second test file is the case rasterising is actually for. scan-bundle.pdf is 3 A4 pages totalling 310.53 KB, and each page is one large JPEG — what a scanned bundle looks like:

One more control, because it is the honest counterpart to the headline number: the same lossless mode on a 6-page file that was already written with object streams (7,408 bytes, 7.23 KB) returned 7,066 bytes — a 4.6% saving, 342 bytes, all of it metadata. Two files of the same page count, and lossless had almost nothing left to do once the structural overhead was already gone. That is exactly why no percentage is printed in advance anywhere on this page: the number depends on the file, and the tool measures it during the run.

Who is this PDF compressor for?

Why browser-side compression has limits

A desktop command-line tool such as Ghostscript can do something a browser page cannot easily do here: it opens the internals of the PDF, re-encodes the embedded images at a lower resolution or as JPEG, subsets fonts so only the used glyphs remain, drops unused objects, and converts colour spaces that cost more bytes than they are worth. The two libraries this page uses do not include that pipeline. pdf-lib can restructure a file — object streams, cross-reference streams, metadata — but it does not recompress the images inside it, because re-encoding an image is exactly the operation that destroys information. pdf.js can render a page faithfully, but the only way to write that render back into a document from the browser is to store it as a picture.

That leaves the two honest options on this page: restructure the file without touching a page, or render the pages and accept that they become images. There is no middle setting that quietly recompresses your photos at 60 percent and keeps your text, because nothing in the browser can do that without a full PDF image pipeline.

Lossless gains are naturally modest. Metadata is usually a few hundred bytes; object streams and a compressed cross-reference table save what the plain tables cost. If your file came from an application that already writes object streams — most modern PDF writers do — the re-save can come out the same size, or even a little larger, and this page will say so instead of handing you a pointless download. A file that carries no bloat has nothing to lose.

Rasterising trades text for size, and it has a floor. At 150 DPI an A4 page is roughly 1,240 by 1,754 pixels, and a JPEG of that size cannot go below a certain number of bytes no matter how low the quality setting goes. So the smallest file you can reach is governed by the page count, the DPI and the JPEG quality — not by anything this page can promise. And the trade cannot be undone afterwards: the output is a set of images, and no later tool can turn it back into a searchable document.

This is why nothing on this page says "up to 90% smaller", or any other figure. Every number you see after a run was produced by that run, on that file, a second earlier. If you need the compression that only a full image-recompression pipeline gives, a desktop tool is still the right answer for that job; what this page offers is the part of the job a browser can honestly do, done privately.

 Lossless — keeps text selectableStrong — rasterises pages
What happens to a pageNothing. It is copied as it is.It is drawn, then stored as a JPEG image.
TextStill text: selectable, copyable, searchable.Pixels. No selection, no search, no screen-reader text.
Images inside the fileOriginal pixels, original resolution.Replaced by one render per page, at your DPI and quality.
Links and form fieldsKept.Lost.
What sets the savingHow much metadata and structural overhead the file carried.Page count, DPI and JPEG quality.
When it is the right choiceAny file that must stay a document you can read, quote or search.A file that only has to look right — a scan, a printer proof, a preview.

Both columns describe what the code on this page does. Nothing in the table is a claim about results: the sizes after a run are printed next to the sizes before it, and that is the only measurement the page offers.

Common use cases

Pro tips

FAQ

Are my PDFs uploaded to a server?

No. The file is read from your disk by your own browser and the smaller file is written back to your device by pdf-lib. Nothing is uploaded, no copy is stored on a server, and no account or email address is needed.

Which compression mode should I choose?

Start with Lossless if the text has to stay selectable, copyable or searchable — it cannot damage the page content. Switch to Strong only when you need a substantially smaller file and can accept that every page becomes a JPEG image.

Does Lossless mode change anything on the pages?

No. Lossless mode does not redraw, re-compress or re-sample a single page. Text stays vector text, images keep their original pixels, and links and form fields stay where they were. All it changes is how the file is stored and which metadata it carries.

Why did my file barely change size?

Because the bytes were mostly page content, not overhead. Lossless mode removes metadata and rewrites the cross-reference tables as object streams, so it only helps when a file carries that kind of bloat. A PDF that was already written this way can lose almost nothing. In that case use Strong mode, which redraws each page as an image.

What exactly does Lossless mode remove?

The document information dictionary — title, author, subject, keywords, producer, creator, creation date and modification date — and the XMP metadata stream when the file has one. It also re-saves the PDF with object streams, which replaces the plain cross-reference table with a compressed one.

Why does Strong mode sometimes shrink a file far more than Lossless?

Because it throws away the internals of each page and keeps only a picture of it. Anything invisible in the original — fonts embedded for characters the file never uses, unused resources, hidden layers, duplicate images — disappears, and the picture is stored as a single JPEG. How much you gain depends entirely on how much of the original file was that kind of overhead, so the tool reports the measured number for your file instead of promising one.

Will my text still be selectable in Strong mode?

No. Strong mode draws each page onto a canvas and re-encodes the result as a JPEG, so the output contains no text at all: no selection, no copy and paste, no search, no screen-reader text. Links and form fields are gone too, and zooming in shows the pixels of the raster image.

Can I compress a scanned PDF?

Strong mode is built for scans, because a scan is already a picture of a page. Choose a DPI that matches the detail you need and a JPEG quality you can live with, then read the reported before-and-after sizes. Lossless mode will normally do nothing useful for a scan, since there is no text in it to keep and the image inside is already compressed.

Can I choose the resolution and the JPEG quality?

Yes, in Strong mode: 72, 100 or 150 DPI for the page render, and a JPEG quality slider from 0.40 to 0.95. Higher DPI keeps small print readable but stores more pixels; lower quality makes a smaller JPEG with more visible blocking around text and thin lines.

Can I compress an encrypted or password-protected PDF?

No. An encrypted file cannot be read by the tool, and the page says so instead of producing a broken download. Open the file in a PDF reader, remove the password or print it to a new PDF, then compress the unlocked copy.

Is there a page or file size limit?

There is no fixed limit, but everything is processed in your browser's memory, so very large documents are bound by the RAM and the processor of your device. Strong mode is the heavy one because every page is rendered on a canvas at the chosen DPI. For big files, use a desktop browser and close other tabs first.

Is this PDF compressor free, and does it add a watermark?

Yes, it is free, with no sign-up, no email gate and no limit on how many files you compress. Nothing is added to your document: no watermark, no stamp, no extra page. The only thing the output loses is what the mode you picked removes.

Related searches

compress pdf, reduce pdf file size, shrink pdf, compress pdf online free, pdf size reducer, reduce pdf size online, compress pdf without losing quality, make pdf smaller, compress pdf free, pdf compressor online, reduce scanned pdf size, compress pdf for email

Related tools