ScanPDFOnline
PDF6 min read

How to Compress PDF for Email — Fit Under 25 MB (Gmail, Outlook, Yahoo)

Your PDF is too big to email. Here is the fastest way to shrink it under Gmail's 25 MB, Outlook's 20 MB or a corporate 10 MB limit — free, no upload, works on iPhone, Android, Mac, Windows.

Compress a PDF now

You clicked Send and Gmail bounced back: “This message exceeds the 25 MB attachment size limit.” Or Outlook: The attachment size exceeds the allowable limit (usually 20 MB, sometimes 10 MB on corporate accounts). Or Yahoo: File too large. Every mail service has an attachment ceiling, and PDFs — especially scanned ones — bump into it constantly.

This guide is the fastest way to fix that, without a subscription, without uploading your document to a server you don't control, and without losing readable quality. Whole process takes 20 seconds.

Every mail service's attachment size limit (2026)

  • Gmail: 25 MB per message. Anything larger auto-uploads to Google Drive and is sent as a link.
  • Outlook (personal outlook.com): 20 MB. Larger files get pushed to OneDrive.
  • Outlook (business / Microsoft 365): configurable by the admin — usually 20–35 MB, sometimes as low as 10 MB.
  • Yahoo Mail: 25 MB.
  • iCloud Mail: 20 MB (or up to 5 GB via Mail Drop, which uploads to iCloud).
  • ProtonMail: 25 MB.
  • Corporate Exchange servers: whatever the IT team set. 10 MB is very common. Some hospitals and government agencies cap at 5 MB.

Even when the send side accepts your attachment, the recipient's server might reject it. A 22 MB PDF is a lottery — safe target for “works everywhere” is under 10 MB.

The 20-second fix — compress the PDF in your browser

  1. Open scanpdfonline.com/pdf-tools/compress in any browser (Chrome, Safari, Firefox, Edge — same on iPhone, Android, Mac, Windows).
  2. Drop the oversized PDF onto the box or tap to pick from Files / Google Drive / Downloads.
  3. Click Compress. The tool re-packs the PDF using pdf-lib's object-stream compression.
  4. The smaller PDF downloads automatically. Attach it to your email and send.

Typical size drop is 10–30% for documents with embedded fonts, unused metadata or bulky annotations — a 30 MB PDF often lands around 21 MB, comfortably under Gmail's 25 MB cap. For scanned-photo PDFs (where the pages are already JPEGs) the drop is smaller; see the “photo-heavy PDFs” section below.

Nothing gets uploaded. All the compression happens in JavaScript inside your browser tab — good if the PDF is a contract, medical record, tax return or anything else you'd rather not send through a third-party server.

What actually shrinks (and what doesn't)

A PDF is a container of objects — text streams, embedded fonts, images, annotations, form fields, metadata, XMP streams. Compression re-packs those objects into a tighter, deduplicated form. The bigger the “fat” parts, the more you save:

  • Big win (20–40% drop): PDFs with embedded fonts (Word / LibreOffice exports), lots of metadata, or huge annotation trees (form-heavy government paperwork).
  • Medium win (10–20%): Text-heavy PDFs with a few images, exports from LaTeX or a design tool.
  • Small win (0–5%): PDFs where each page is already a JPEG image at high quality — most phone-camera scans, DocuSign completed contracts.

The compressor never re-encodes the images at lower quality (that would be lossy), so a photo-heavy PDF stays the same size after compression. For those you need a different approach — read on.

If your PDF is mostly scanned photos (drops of ~0% after compression)

Phone scanner apps like CamScanner and Adobe Scan save each page as a full-resolution JPEG inside the PDF. A 20-page scan can easily be 40–80 MB. Object-stream compression can't help because there's no metadata fat to trim — the file is basically 20 JPEGs stapled together.

Fix: re-render each page at a lower resolution or quality. Use scanpdfonline.com/enhance-scanned-pdf, pick the “gentle” or “grayscale” preset, then run the output through compress. Grayscale alone typically cuts scanned-PDF sizes by half without hurting readability — most scanned pages are black text on white paper, so the RGB channels are wasteful.

If that's still not enough, split the PDF with split, send the halves separately, and let the recipient merge if they need one file.

Alternatives if you don't want to compress

  • Send a link instead of an attachment. Upload the PDF to Google Drive / OneDrive / Dropbox and paste the sharing link into the email. Zero compression, no size limit. Only downside: the recipient has to click a link and wait for a load.
  • Use Gmail's automatic Drive fallback. If you attach a >25 MB file, Gmail asks “Send with Drive?” and does exactly the above for you.
  • Zip the PDF. Doesn't work — PDFs are already compressed, so zipping typically saves <1%. Some servers also block .zip attachments.
  • Use WeTransfer / Send Anywhere. Uploads the file, sends a download link. Works, but the file lives on someone else's server.

On iPhone or Android — the same tool works

You do not need a separate app. Open the compress page in Safari (iPhone) or Chrome (Android), tap the box, pick the PDF from Files / iCloud Drive / Google Drive, tap Compress. The compressed PDF downloads to your device and can be attached to Mail, Gmail, WhatsApp — anything.

Is my PDF being uploaded to your server?

No. This is a static site that ships JavaScript to your browser and runs pdf-lib locally. Your PDF stays on your device. Verify: open your browser's DevTools (F12) → Network tab → then drop the PDF. You'll see the page load its own assets, and zero outgoing requests carrying your file. This matters when the PDF is a contract, medical record, ID copy or anything else you'd rather not hand to a random online service.

FAQ

How much can a PDF be compressed?

10–30% for typical text PDFs with embedded fonts and metadata. Less for image-heavy PDFs. Under 5% for PDFs that are just JPEGs stitched together (phone-camera scans).

Does compression reduce quality?

No. This tool is lossless — text stays as text, images keep their original resolution. It only re-packs how the PDF stores its objects internally.

What's the max PDF size Gmail can send?

25 MB as a direct attachment. Anything above that gets auto-uploaded to Google Drive and sent as a link.

Why is my “compressed” PDF the same size?

The PDF is likely a photo scan where each page is already a JPEG. Lossless object-stream compression has nothing to trim. Use enhance-scanned-pdf with the grayscale preset first, then re-compress.

Ready to try it?

Compress a PDF now

Free · No signup · Runs in your browser · Nothing uploaded