PDF Compressor

Pick one of three browser-side modes: rewrite the file structure, re-encode every page as a JPEG, or search for the settings that land your PDF under an exact size like 200 KB. No uploads, no registration, no watermark.

Advertisement
Advertisement

NeatForge compresses PDFs in your browser with three modes. Basic rewrites the file structure without touching any page content, so it stays lossless but only recovers redundant overhead. Aggressive renders every page and re-encodes it as a JPEG at a quality you set. By target size searches over quality and resolution until the file lands under the number you type — 200 KB, 500 KB or 1 MB. Nothing is uploaded, and the result card tells you the truth when a mode fails to make the file smaller.

Compress PDFs without sacrificing privacy

Three browser-side modes, including a target-size search that lands your file under 200 KB, 500 KB or 1 MB. No uploads, no sign-up, no watermarks.

100% private
Fast & local
Free forever

How to use

  1. 1

    Upload PDF

    Drop the PDF into the upload area. It is parsed in your browser and never leaves the device.

  2. 2

    Pick a mode

    Basic for a lossless structural pass, Aggressive for image-heavy pages with a quality you control, By target size when a form demands a number.

  3. 3

    Compress and read the result

    The card puts the original and the new size side by side. If the mode made nothing smaller, it says that in the same place.

  4. 4

    Preview, then download

    Open the preview and check the smallest text before you hand the file over.

Three modes, one honest result

Shrink a PDF for an email, a portal limit, or an archive without sending it anywhere.

Zero uploads

Parsing, rendering and writing all happen in the tab. Nothing is stored and nothing waits in a server queue.

Hit an exact target

Type 200 KB, 500 KB, 1 MB or any number, and the tool searches quality and resolution until the file lands under it.

A genuinely lossless option

Basic copies every image and text stream unchanged, so pages stay pixel-identical and text stays searchable.

Quality you set

Aggressive puts the JPEG quality slider in your hands, from 10% to 100%, instead of hiding it behind preset levels.

Warns when a mode backfires

Re-drawing a text-heavy PDF can make it larger. The card reports the real difference instead of a made-up percentage.

Free with no limits

No watermark, no daily cap, no registration, no account, and free for commercial use.

Advertisement

Understanding PDF compression

What makes a PDF file large?

A PDF holds two very different kinds of bytes. The first is content: text streams, embedded font programs, images, vector paths. The second is bookkeeping: the cross-reference table or object streams that say where every object lives, the resource dictionaries each page carries, and the document information dictionary with its title, author, creator, producer and timestamps. Which kind dominates decides what any compressor can do for you.

In a scanned document the content is the images — usually one full-page JPEG per page — and the bookkeeping is negligible, so re-encoding those images is the only lever that moves the file. In a document exported by a word processor the images are small or absent, fonts are embedded, and the bookkeeping may or may not be tidy: an export that stores its streams uncompressed and writes a classic cross-reference table leaves real, recoverable slack, while a file that has already been through an optimizer leaves almost none. That is why one compress button produces wildly different percentages on different files, and why an honest tool reports the number it got rather than promising a range.

Lossless rewrite, lossy re-encode, and searching for a number

Basic is the lossless pass. It parses the document, keeps the objects that are reachable, and saves again, so cross-reference data that used to be a plain table comes out as compressed object streams and orphaned objects disappear. Images and text are copied verbatim, so nothing visible changes and the pages stay selectable and searchable. What it cannot do is shrink content: if the bytes are inside a JPEG, that JPEG comes along unchanged.

Advertisement

Aggressive and By target size are lossy in a particular, predictable way. Each page is rendered to a bitmap at 1.5x its point size and re-encoded as a single JPEG, and the new document is a stack of those images laid over the original page geometry. Everything the page used to do as text — selecting, searching, text to speech, copying into a form field — stops working. In exchange the pages shrink to whatever the quality allows. On a text-heavy PDF the trade goes the other way: re-drawing twenty pages of black type produced a file over a hundred times larger than the original in our test run, and the tool surfaces that outcome rather than hiding it.

Which mode for which job

Use Basic when the document has to stay a text document — contracts, certificates, filings, anything someone will search or copy from. Use Aggressive when the pages are pictures and you want to pick the size-to-legibility point yourself. Use By target size when a portal states a limit: the search runs until the delivered file is at or under that number, and if no setting reaches it, the card reports the smallest size reached and tells you to raise the target instead of handing you an over-limit file.

How browser-side PDF compression works

Two libraries do the work in the tab. pdf.js parses the document and renders pages onto a canvas; pdf-lib builds the output, embeds the JPEGs and serializes the result. The browser's own JPEG encoder turns each rendered page into an image, and what it produces is what gets embedded. Nothing is transmitted: the file goes from one JavaScript object to another, and the download is generated locally.

That architecture sets the ceiling. There is no server to hand a huge document to, so the practical limit is the memory your tab can get, and a rasterizing pass holds both the parsed document and the bitmaps it is encoding. There is no server to run OCR on either, which is why flattened pages stay flattened. The upside is the reason people ask for this at all: a contract, a medical report or an unreleased filing can be shrunk on the machine it is already on, and after the page loads, the work needs no connection.

Perfect for

The four jobs people open this page for.

Email attachments

Get under the attachment ceiling Gmail, Outlook and Apple Mail enforce, without sending the recipient a link they have to log in to open.

Government & web forms

Immigration, tax, grant and application forms often refuse anything over 200 KB or 512 KB. Type that cap as your target and let the tool search to fit it.

Scans & archives

Re-encode full-page scans at a quality you can still read, so years of invoices take less room on disk and in backup.

Website downloads

A smaller PDF on a product page or knowledge base arrives faster for visitors on a phone or a poor connection.

Upload and compress in one click

Drop the file in, choose a mode, press Compress PDF. The tab parses the structure, renders the pages and writes a new file with no server in the loop, then shows the original and compressed size side by side. If the mode you picked could not make the file smaller, that same card says so instead of handing you a green tick and a negative number.

Upload a PDF and compare original and compressed file sizes

Rewrite the structure, or re-draw the pages

Basic and Aggressive solve different problems. Basic works on the container: objects nobody references go, and the cross-reference data comes back as compressed object streams, while every image and text stream is copied byte for byte. Aggressive works on the content: each page is rendered and re-encoded as one JPEG, which is the only way to shrink a scan, and the price is that text becomes picture. By target size runs the second approach over and over until your number fits.

PDF structure before and after optimization

How the compression works

Two different jobs get called compressing a PDF, and this tool does both.

Structure rewrite

Basic keeps the objects a document actually references and writes cross-reference data as compressed object streams, recovering the overhead a PDF picked up on the way out of an office suite.

Page re-encoding

Aggressive renders every page and re-encodes it as one JPEG at your quality, which is the only way to shrink a scan.

Target-size search

By target size works through quality and resolution in sequence, keeps the best result that fits your number, and reports the floor when nothing fits.

Flattening, stated plainly

Rasterized pages stop being text. The mode description and the result card both say so, so nobody finds out after submitting a form.

Metadata you can predict

Basic carries the information dictionary across; the rasterizing modes rebuild the document and leave authoring metadata behind.

Local, and then offline

pdf.js renders, pdf-lib writes, the canvas encodes. Once the page is loaded, the work itself needs no connection.

How does this compare to other PDF compressors?

What changes when the compressor runs in your browser instead of on a server.

FeatureNeatForgeILovePDFSmallPDF
Privacy (no upload)100% local — the file never leaves the tabUploaded for processingUploaded for processing
Works without a connection once the page is loaded
How you choose the strengthThree modes: lossless rewrite, JPEG quality slider, exact targetThree preset levelsPreset levels
Compress to an exact size such as 200 KBType any numberLevels onlyLevels only
Cost of the free tierNo sign-up, no watermark, no capLevels are free to useUsage limits apply; Moderate and Strong compression are Pro features

The NeatForge column describes what the code in this tab does. The two right-hand columns are what each vendor's own compress-PDF page stated when this page was last updated; hosted tools hold your file while processing it, and their free-tier terms change.

FAQ

What are the three modes and which one do I need?
Basic rewrites the PDF's internal structure — it keeps only reachable objects and writes the cross-reference data as compressed object streams — and copies every content and image stream byte for byte, so nothing visible changes. Aggressive renders each page at 1.5x and re-encodes it as a JPEG at the quality you set with the slider, 75% by default. By target size repeats that render-and-encode cycle at lower quality and resolution until the file comes in at or under the size you enter. If a portal needs a specific number, use By target size. If the pages are scans, use Aggressive. If you only want to trim overhead and keep the text selectable, use Basic.
How much smaller will my PDF get?
It depends entirely on where the bytes are. On the image-heavy files we measured, Aggressive at 75% quality took a 3-page photo scan from 66.05 KB to 45.11 KB and a 2-page noisy scan from 1.52 MB to 896.73 KB. Basic recovers only structural slack: on documents already optimized by whatever produced them it returns the same byte count, and on a deliberately verbose test file — uncompressed streams, classic cross-reference table, duplicated font dictionaries — it recovered 3.5%. A text-only PDF put through Aggressive usually gets bigger, because twenty A4 pages of black type as high-resolution JPEGs cost far more than the text they replace; ours went from 24.17 KB to 4.11 MB. When that happens the result card says so instead of reporting a saving.
Will compressing reduce the quality?
Basic is lossless: images, fonts, vector paths and text streams are copied unchanged, so the output looks identical and stays selectable and searchable. Aggressive and By target size are lossy in one specific way — every page becomes a single image, so text can no longer be selected, searched or copied, and small print softens as you lower the quality. In By target size the pages may also be rendered at a lower resolution than usual, and the card tells you when they were.
Can I compress a PDF to exactly 200 KB?
Choose By target size and enter 200, or tap the 200 KB, 500 KB or 1 MB preset. The tool searches quality and resolution until the file is at or under that number, then reports the size it delivered. Two honest exceptions: a PDF that is already smaller than your target is delivered unchanged rather than flattened for nothing, and if no setting reaches your number we show the smallest size we did reach and tell you to raise the target.
Does compression remove metadata like author or title?
Basic keeps the document information dictionary as it is, so Title, Author, Subject, Keywords, Creator, Producer and the creation and modification dates all survive. Aggressive and By target size rebuild the document from rendered pages, so authoring metadata does not carry over — which is what you want when a file was exported under your own username. There is no separate strip-metadata switch, because the mode you choose already decides it.
Are my files uploaded to your server?
No. pdf.js parses and renders the document and pdf-lib writes the new one, both inside your browser tab. Open DevTools on the Network tab and run a compression to confirm: no request carries any part of your PDF. It also means that once the page is loaded, the compression itself needs no connection.
Can I compress a password-protected PDF?
Not directly. All three modes refuse an encrypted file before doing any work, because opening it needs the password and we are not going to guess it. Unlock it first with our Protect PDF tool in unlock mode, which also runs locally, then compress the unlocked file here.
Does this work on scanned PDFs?
Yes, and scans are the best case for Aggressive and By target size: a scan is usually one full-page JPEG per page, and re-encoding that JPEG is where the real savings come from. Basic has nothing to remove from a scan, because its size sits in image data that Basic copies verbatim.
Is there a file size limit?
There is no artificial cap, and there is no server to impose one. The limit is the memory your browser tab can get: a rasterizing mode holds the parsed document plus a rendered bitmap of each page it is encoding, so a very large PDF can exhaust the tab before it finishes. If that happens, split the document with our Split PDF tool, compress the parts, and join them again with Merge PDF.
Can I compress several PDFs at once?
This tool handles one file at a time, so the numbers on screen always belong to the file you are looking at. For a batch, run them in sequence — or run one file twice: once in Aggressive to find the quality you can live with, then in By target size to hit the number the form asks for.
Will the compressed PDF open everywhere?
Yes. The rasterizing modes write a standard PDF 1.7 document, and Basic keeps the version of your input file. Output opens in Adobe Acrobat, Foxit, Preview on macOS, the built-in viewers in Edge, Chrome and Firefox, and iOS and Android readers. Nothing is a proprietary format and no DRM is added.
Can I get the selectable text back after Aggressive compression?
No. Turning flattened pages back into text is OCR work, and this tool does not run OCR. Keep the original file, or compress a copy, so a searchable version always exists to go back to.
How is this different from ILovePDF, SmallPDF, or Adobe Acrobat Online?
Those services upload your PDF to their servers, where a queue and a plan decide what you get. Ours never transmits the file, needs no account, and adds no watermark or daily cap. The trade-off runs the other way: a hosted suite has a server, so it can offer OCR, page editing and finer optimization of the original streams, while our rasterizing modes flatten every page and we do not run OCR at all.
Is the compressor free for commercial use?
Yes — client work, invoices, contracts, product sheets, with no attribution and no watermark. There is no API and no paid tier; the page is the product. The library underneath it, pdf-lib, is open source if you want the same logic in your own build.

Your Privacy is Our Priority

This tool runs entirely in your browser.

  • We do not upload, store, or analyze your files.
  • Everything you process stays on your device.
  • There is no server-side processing and no cloud storage.
  • Analytics counts outcomes as numbers only — the mode you chose, the file size, the delivered size, the page count. No filename, no document text, no content.
  • You can use it on confidential contracts, financial statements, medical records and legal filings, because there is no pipe for them to travel down.
  • If the connection drops mid-compression, nothing happened anywhere but your device.

You might also like

Helpful guides

Advertisement