The short version

Drop the PDF and press the button. The tool works in three stages, cheapest first, and stops at the first one that gets the file under 20 MB.

Images are recompressed in place first, so text, links and forms stay exactly as they were. Only when a file still will not fit are the pages rebuilt as images, and even then an invisible text layer keeps the words searchable. A file already under the cap is handed back untouched.

Twenty megabytes is a lot of document. A hundred colour pages, a hundred and fifty greyscale ones, or five hundred pages of text. Files that pass it are usually carrying something beyond their page count: embedded attachments, a full set of unsubsetted fonts, the same image stored once per page, or scans made at a resolution nobody chose deliberately.

Where the 20 MB limit comes from

Who asks for itPlaces that cap uploads at 20 MB
  • Mail gateways and distribution lists20 MB per message
  • Document management and archive intake20 MB per file
  • Regulatory submissions and returns20 MB per bundle
  • Tender and bid document portals20 to 50 MB
  • Learning platforms and course uploads20 MB per resource

Twenty megabytes is the practical ceiling for anything that travels as an attachment, which is why it recurs across mail systems and any portal whose back end eventually mails the file to somebody. If the 20 MB you are aiming at is specifically an email attachment, compressing a PDF for email covers the part this page does not: encoding overhead means a 20 MB file does not arrive as a 20 MB attachment.

How the tool hits 20 MB

1

Add the PDF

Drop it or browse. It is read into browser memory; nothing is uploaded, so a slow connection makes no difference.

2

Stages one and two: tidy, then the images

Unused objects, thumbnails and stale metadata go first, which costs nothing at all. Then the pictures inside the file are recompressed in place, starting at 200 ppi, while your text, links and form fields are left exactly as they were.

3

Stage three, only when it is needed

If the images were not where the weight was, the pages are rebuilt as pictures with an invisible text layer behind them, so the words stay searchable. It probes at 150 dpi, works out the resolution that should fit, and will not go below 60 dpi.

4

Download, and read the result line

It shows the final size and which stage produced it. If none fitted, you still get the smallest attempt, labelled honestly, rather than a file that silently missed the target.

The image ladderSeven rungs, from 200 ppi down to 60
200q82150q75120q66100q5880q5072q4260q36Rung 1: images barely touched (ppi above, JPEG quality below)Rung 7: visibly softYour text, links and form fields are untouched at every rung
Stage two walks down this ladder, recompressing the pictures inside the file and leaving everything else alone. It stops at the first rung under 300 KB, and abandons the ladder early when the images are not what is making the file big.
Stages
Three

Structure, then the images in place, then the pages as pictures. It stops at the first stage that fits.

Text after compression
Kept

Untouched at the first two stages. If the pages do get rebuilt, an invisible text layer keeps them searchable.

Bytes uploaded
0

The IDs, forms and statements people compress for portals never leave the device.

What fits in 20 MB, and what does not

Page count alone rarely explains a file of this size. Text costs about forty kilobytes a page and colour scanning about two hundred and forty, so five hundred text pages and eighty colour pages weigh roughly the same. When the arithmetic does not account for the file in front of you, the extra weight is structural.

Try it

Will your file fit in 20 MB?

Enter the page count and what the pages contain. The estimate shows the attempt that is likely to succeed and what that attempt looks like.

Typical sizesCommon documents against the 20 MB line
120-page greyscale scanabout 16 MB80-page colour scanabout 19 MB60 full-page photosabout 23 MB100-page colour scanabout 24 MB20 MB
Estimates before any quality is traded away. A file heavier than its page count suggests is carrying something these figures do not include.

When it cannot reach 20 MB

Some documents will not fit legibly, and the tool says so rather than pretending. When the result line reports a miss, three moves usually solve it:

  • Split first. Use Split PDF to break the file into parts and compress each. Most portals accept several attachments even when each one is capped at 20 MB.
  • Rescan the source. A fresh 150 dpi greyscale scan compresses far better than a colour scan that has already been through one compressor. Every pass costs quality, and the first pass should start from the cleanest source.
  • Check the real limit. Portals sometimes state one number and accept another. Read the fine print, or try a slightly larger file before compressing harder than you need to.
One pass, from the original
Compressing an already-compressed file compounds the quality loss without much further saving. If the first result is not right, run the original again rather than the output. And keep the original: the compressed copy is for the portal, not for your records.

The result line tells you what was heavy

When the tool finishes it prints one sentence naming the stage that produced the file you are downloading. It is easy to skim past and it is the most useful thing on the page, because each of the three stages attacks a different kind of weight. Knowing which one succeeded tells you what your document is actually made of.

Reading the resultWhich stage won, and what it means
"lossless"Stage one was enoughThe weight was structure:stale metadata, thumbnails,private application dataNothing visible changed"images at N ppi"Stage two was enoughThe weight was in pictures,and they came down to N ppiText, links and forms intactThe common case"pages rebuilt"Stage three was neededThe weight was somewherethe engine cannot reach:vectors, fonts, attachmentsWorth investigating
Same file, same cap; which stage got there is the diagnosis. Stage three succeeding is not a failure of the file, but it does mean the weight was not in the images, and that is usually worth knowing.

A file that reaches the cap at stage one was carrying dead weight. Editors leave behind page thumbnails, private application data and old metadata, and on a large document that can run to megabytes with nothing visible attached to it. Nothing about the document changed and nothing needs checking.

Stage two is the ordinary case. The pictures came down to a stated resolution and everything else was left alone. The number in the message is worth reading: 200 or 150 ppi means the images were barely touched, while 72 or 60 means they were already marginal and the document is worth a look before it goes anywhere important.

Stage three is the interesting one. It means the images were not where the weight was, which leaves a short list: heavy vector artwork such as a map or a CAD drawing, a full set of embedded fonts that were never subsetted, or files attached inside the PDF. That last case deserves saying plainly, because this tool will not touch it: embedded attachments are not removed. Silently deleting part of a document is not compression, and a contract that loses its attached spreadsheet on the way to a size cap has been damaged rather than shrunk. If you suspect attachments, open the file's attachments panel in a reader and decide for yourself.

Where people use the 20 MB target

Typical jobsWhat gets compressed to this size
  • Regulatory returns and filings80 to 200 pages
  • Tender and bid bundles100 to 300 pages
  • Archive and records intakeany length
  • Technical documents with drawings40 to 120 pages

Why this runs in your browser

A twenty megabyte PDF is usually a complete bundle: a bid, a return, a case file, an archive. Uploading one to a compression service means sending the whole bundle to somebody with no reason to have it, and waiting on a slow connection while it goes.

Two ways to compressOne of them never transmits the document
Your devicePDFin memoryBrowser enginecompressDownload0 bytes leavethe machineTypical online toolPDFon diskuploadServercopies filedownloadA full copy now sits on hardware you do notcontrol, under a policy you cannot audit
PDF.js renders the pages and pdf-lib rebuilds the file inside the tab. The document is read into memory, compressed there, and offered as a download.

The tool is right above

Everything on this page runs in your browser. Scroll up, drop the file, and keep it on your machine.

Jump to the tool

Common questions

The questions people have when a 20 MB cap refuses a file.

01What does the result line mean?

It names the stage that got the file under the cap. Stage one means the weight was structural, stage two means it was in the images, and stage three means it was somewhere else.

02Does this tool remove files attached inside the PDF?

No. Deleting part of a document without being asked is not compression. If a PDF carries attachments, open its attachments panel and decide for yourself.

03Why is my file bigger than its page count suggests?

Usually embedded fonts that were never subsetted, heavy vector artwork, the same image stored once per page, or files attached inside the PDF.

04Is this the same as compressing for email?

Related but not the same. An email attachment grows by about a third in transit, so a 20 MB file does not arrive as a 20 MB attachment. The email page covers that.

05What fits in 20 MB?

Around five hundred pages of text, a hundred and fifty greyscale pages, or eighty colour pages.

06Will the text still be selectable?

In nearly every case, yes. Even at stage three an invisible text layer goes behind the rebuilt pages so the words stay searchable.

07Are my files uploaded anywhere?

No. Rendering and compression run in your browser, which also means no waiting for a twenty megabyte upload.

08Is it free?

Free. Every tool, unlimited use, no signup.