Published July 23, 2026 · 7 min read

Your PDF is 22 MB. Gmail's limit is 25 MB. You hit send and get: “The file you tried to attach is too large.”What gives? The answer is base64 encoding — the way email transmits binary files — and it inflates your attachment by roughly 33%. That 22 MB file becomes ~29 MB in transit, blowing past the limit. Here are the exact numbers, what happens when you exceed them, and the workarounds that actually work.

The exact limit: 25 MB (but really ~18 MB)

Gmail's stated attachment limit is 25 MB per message. That has not changed in 2026. But email does not send raw binary. It encodes every attachment in base64, a text-safe format that expands data by about 33%. So the actual file you can attach is closer to:

25 MB ÷ 1.33 ≈ 18.7 MB

In practice, Gmail's own compose UI measures the raw file size and blocks anything over 25 MB before encoding even happens. But if you are sending via SMTP (a script, an app, or a mail client like Thunderbird), the 33% overhead applies and your effective ceiling is ~18 MB.

What happens when you exceed the limit

Gmail handles oversized attachments differently depending on how you send:

  • Gmail web/app compose: Files over 25 MB are blocked immediately. Gmail offers to insert a Google Drive link instead. The file never sends as an attachment.
  • SMTP / third-party clients: The message may be accepted by your outgoing server, then bounced by Gmail's inbound server. The sender gets a delivery failure notification hours later.
  • Recipient on a different provider: Even if Gmail accepts your 24 MB attachment, the recipient's server (Outlook, Yahoo, a corporate Exchange) may reject it. Their limits can be lower.

The worst case is the silent bounce: you think the email sent, but the recipient never gets it. This is why aiming well under the limit matters.

Common file types and their typical sizes

File type, Typical size, Fits Gmail?
File typeTypical sizeFits Gmail?
Text-only PDF (5–10 pages)100–500 KBAlways
PDF with charts/images (10 pages)2–8 MBUsually
Scanned PDF (20 pages, 300 DPI)15–40 MBOften not
PowerPoint presentation5–50 MBDepends on images
ZIP archiveVaries widelyDepends on contents
High-res photo (single JPEG)3–12 MBOne or two fit; a batch does not

Workaround 1: Compress to 5 MB (the universal fix)

For PDFs — which account for the majority of “attachment too large” complaints — compression is the cleanest solution. A 20 MB scanned document typically compresses to 2–5 MB with no visible quality loss on screen. LoveMyFile's Compress PDF tool lets you set a 5 MB target and processes the file entirely in your browser. No upload, no account, no third party seeing your document.

Why 5 MB? It clears every major provider's limit with massive headroom, downloads in seconds on mobile, and still leaves room for the email body and other small attachments. It is the “never think about it again” size.

Workaround 2: Google Drive link (and its privacy trade-off)

Gmail's built-in suggestion is to upload the file to Google Drive and insert a sharing link. It works for any file size. But consider what happens:

  • Your file is uploaded to Google's servers and stored in your Drive.
  • The recipient gets a link, not the file. If they forward the email, the link travels with it.
  • Google scans Drive content for malware and (per their policy) may use metadata for service improvement.
  • The link can break if you change sharing permissions or delete the file later.

For a vacation photo album, this is fine. For a client contract, a legal filing, or medical records, you may prefer the file to travel as an attachment that only the recipient receives — which means compressing it to fit.

Workaround 3: Split the file

If compression does not get you under the limit (rare, but possible with 100+ page scans), split the PDF into two or three parts and send them as separate emails. LoveMyFile's Split PDF tool handles this locally. Label the emails “Part 1/3” so the recipient knows to expect more.

Workaround 4: ZIP it (marginal gains for PDFs)

Zipping a PDF rarely helps much — PDFs already use internal compression (Flate/ZIP for streams, JPEG for images). You might shave 5–10% off a text-heavy PDF, but image-heavy PDFs will not shrink meaningfully in a ZIP archive. This workaround is more useful for collections of uncompressed files (BMP images, WAV audio, CSV data).

Limits for other providers (for context)

Provider, Stated limit, Effective limit (after base64)
ProviderStated limitEffective limit (after base64)
Gmail25 MB~18 MB via SMTP
Outlook.com20 MB~15 MB via SMTP
Yahoo Mail25 MB~18 MB via SMTP
iCloud Mail20 MB~15 MB via SMTP

Bottom line

The 25 MB number on Gmail's support page is not the number you should plan around. Aim for 5 MB or lessand you will never hit a limit on any provider, regardless of encoding overhead or the recipient's mail server. For PDFs, that means one pass through a compressor. Ten seconds of work, zero privacy trade-offs, and the confidence that your email actually arrived.