Guide

Get a PDF Under Gmail's 25 MB Limit

By the Smol team9 min read

To compress a PDF for email, target 18 MB, not 25. Mail servers measure the encoded message, and encoding an attachment inflates it by roughly a third. That is why a 24 MB PDF that Gmail happily attaches can still bounce off a 25 MB cap at the other end.

Almost every page on this topic quotes the sticker number and stops there. The sticker number is not the number your file is measured against. Below are the limits each provider actually publishes, what each one is measured on, the arithmetic that turns a cap into a target, and the honest fallback for when compression cannot get you there.

What are the actual email attachment limits?

Every figure here is quoted from the provider’s own documentation, checked in September 2026. Note the third column. It is the one that matters and the one nobody prints.

ServicePublished limitWhat the limit is measured on
Gmail (personal)25 MBThe attachments you add. Over the limit, Gmail strips the file and inserts a Google Drive link instead.
Gmail / Google Workspace (receiving)50 MB (Enterprise Standard), 70 MB (Enterprise Plus)The encoded message. Google’s footnote: “These values are the limit after encoding, which adds about a 37% increase.”
Outlook.com25 MB per file; OneDrive attachments up to 2 GBThe attached file.
Outlook desktop, internet email accounts20 MBMicrosoft is explicit: “This limit includes both the size of the attachment and the size of the email.”
Microsoft 365 / Exchange OnlineDefault 35 MB sending, 36 MB receiving; admins may set anything from 1 MB to 150 MBThe message. Mail leaving Microsoft datacenters takes "an additional 33% translation encoding increase, in which case the maximum message size is 112 MB".
iCloud Mail20 MB in and out; up to 5 GB with Mail DropThe message.

Two things fall out of that table immediately. Corporate limits are a moving target, because a Microsoft 365 administrator can set anything between 1 MB and 150 MB and you have no way to know which. And the default you are most likely to hit is not the headline 25 MB: it is a 20 MB message limit on an Outlook desktop client or an iCloud mailbox.

Why does a 24 MB PDF bounce off a 25 MB limit?

Email was designed to carry text. A PDF is binary, so before it can travel it gets re-written into printable characters using Base64, and Base64 is not free. RFC 2045 §6.8 puts it plainly: “the encoded data are consistently only about 33 percent larger than the unencoded data.”

The real figure is a little worse, because the same section requires that “the encoded output stream must be represented in lines of no more than 76 characters each.” Do the arithmetic: 76 Base64 characters carry 57 bytes of your PDF, and each of those lines ships with a carriage return and a line feed. So 57 bytes on disk become 78 bytes on the wire. That is 36.8% of pure overhead, which is exactly why Google’s own documentation says about a 37% increase rather than 33%.

Microsoft says the same thing from the administrator’s side. Its Exchange message size limits guidance tells admins to set the number roughly a third high on purpose: “if you specify a maximum message size value of 64 MB, you can expect a realistic maximum message size of approximately 48 MB.”

Now put the two halves together, because this is the failure nobody explains. Your sending client usually counts the file on disk. The receiving server almost always counts the encoded message. Attach a 24 MB PDF in Gmail and Gmail accepts it, because 24 is under 25. It leaves as roughly a 33 MB message. It arrives at a mailbox with a 25 MB receive limit, and it is rejected.

The file never changed size. The measurement did.

What size should I actually compress to?

Divide the cap by 1.37 and round down. That is the whole method, and it is the number you should be aiming your compression preset at.

Cap you are aiming atTarget on diskSanity check
25 MB (Gmail, Outlook.com)18 MB18 × 1.37 = 24.7 MB encoded
20 MB (iCloud Mail, Outlook desktop)14 MB14 × 1.37 = 19.2 MB encoded
10 MB (common corporate gateway default)7 MB7 × 1.37 = 9.6 MB encoded
Unknown recipient at an unknown company7 MBClears every default in the table above

If you only remember one line from this page, make it the last row. When you do not know what is on the other end, 7 MB is the size that gets delivered. A CV, a signed contract, a 40-page report with a handful of figures: all of these compress well under that without anyone noticing.

Smol’s five PDF presets (tiny, small, medium, large, original) exist for exactly this decision, and the app shows you the resulting size per file before you send anything. Small is the email preset. Large is the one you want when the PDF is going to a printer and the file size is someone else’s problem.

How do I get the PDF under the limit on a Mac?

Three routes, in increasing order of control. Our guide to compressing a PDF on Mac walks through every method in full; this is the short version for when you have an email open and a bounce message in front of you.

Preview. Open the PDF, File → Export, set Quartz Filter to Reduce File Size. It is free and it is already installed. It is also a single fixed recipe with no controls: we read the filter definition at /System/Library/Filters/Reduce File Size.qfilter on macOS 27.0, and it re-encodes every image as JPEG at quality 0.70, resamples to 144 DPI, and caps the longest edge at 2,400 px. Whatever your document is, that is what it gets. Sometimes that is fine. Sometimes it is far too aggressive for a scan you need to stay readable, and on one of our test files it produced a PDF nearly twice the size of the input.

Ghostscript. If you have Homebrew, brew install ghostscript then:

gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook \
   -dNOPAUSE -dQUIET -dBATCH \
   -sOutputFile=small.pdf original.pdf

On our test file (a four-page letter-size scan at 200 DPI, 1,596,556 bytes) that command returned 117,859 bytes, a 92.6% reduction, on an M2 Pro running macOS 27.0 with Ghostscript 10.07.0. Swap /ebook for /screen if you need to go further and the document is screen-only.

Smol. Drop the PDF in, pick a preset, read the output size, send. The reason we built the preset ladder rather than one button is that “small enough to email” and “still legible when the recipient prints it” are different targets, and you should get to choose which one you are optimizing for. Nothing uploads, which matters more than usual here: the PDFs people compress for email are contracts, medical records, and tax documents.

Whichever route you take, check the output size before you attach it. PDF compression is not monotonic. A tool can and does return a larger file than it was given.

"File too large to email" — what the bounce actually means

Two different failures wear the same phrasing, and telling them apart saves you from compressing a file that was never the problem.

If your own client refuses before sending, you hit a client-side limit: the 20 MB or 25 MB ceiling in the table above, measured on the file. Compression fixes this.

If the message sends and a bounce arrives minutes later, a server rejected it. RFC 3463 defines the two codes you will see in the bounce. X.3.4 is “Message too big for system… The message is larger than per-message size limit”, a limit belonging to the whole mail system. X.2.3 is “Message length exceeds administrative limit… A per-mailbox administrative message length limit has been exceeded”, which means that one recipient has a stricter cap than their colleagues do. The second one is why the same attachment reaches four people at a company and bounces off the fifth.

The same arithmetic covers the other phrasings of this problem. “Photo too big to email” and “attachment too large” are the same encoding overhead applied to a different file type, and the same 7 MB safe target applies. For images specifically, format choice moves the number further than any quality slider, which we cover in the guide to compressing images on a Mac.

Send a link. This is the right answer more often than the internet admits, and all three major providers have built it in already.

Gmail does it without asking. Google’s documentation states that when your attachments exceed the limit, “Gmail automatically removes the attachment and adds it as a Google Drive link in the email.”

iCloud Mail has Mail Drop, which is genuinely generous and genuinely underused. Apple’s Mail Drop limits page puts it at attachments up to 5 GB, with recipients given 30 days to download, and the attachments do not count against your iCloud storage. It works from Mail on the Mac, from iPhone and iPad, and from iCloud.com.

Outlook.com raises the ceiling to 2 GB for files shared from OneDrive rather than attached.

The catch with all three is the same: the recipient needs to click out to a web service, which corporate firewalls and skeptical clients sometimes object to. If a real attachment is required, splitting a long PDF into two messages is less elegant and more reliable.

When compressing the PDF is the wrong move

The PDF is already text-only and small. A 40-page contract with no images is typically a few hundred kilobytes. If that document is somehow 8 MB, the weight is embedded fonts or a scanned page hiding in the middle, and a compression preset is treating the symptom. Find the heavy page first.

The document is digitally signed. A signature covers the exact bytes of the file. Re-writing the PDF to make it smaller invalidates it. Compress before signing, never after.

It is going into a legal, medical or archival record. Resampling images in an evidentiary document changes the document. Send the original by link.

You do this twice a year. Preview’s Reduce File Size and Mail Drop are free, installed, and completely adequate for an occasional oversized attachment. We are not going to pretend otherwise. Smol earns its one-time $29 when this is a weekly problem, when you need a predictable target size rather than one fixed recipe, or when the files arrive in batches, which is a different job covered in batch compressing PDFs on a Mac.

Frequently asked questions

What size should a PDF be to email it?

Aim for 18 MB or less for a 25 MB cap such as Gmail or Outlook.com, and 14 MB or less for a 20 MB cap such as iCloud Mail. If you do not know the recipient’s limit, target 7 MB, which clears every common default. The reason the target is lower than the cap is that mail servers measure the encoded message, which is roughly 37% larger than the file on disk.

Why does my 24 MB PDF fail to send even though Gmail’s limit is 25 MB?

Because the two numbers measure different things. Gmail checks the file you attach, but the receiving server checks the Base64-encoded message, which RFC 2045 describes as about 33 percent larger than the original. With the required 76-character line wrapping the real overhead is closer to 37%, so a 24 MB PDF arrives as roughly a 33 MB message and is rejected by a 25 MB receive limit.

What is the Outlook attachment size limit?

It depends on the account. Outlook.com allows 25 MB per attached file. Outlook desktop configured with an internet email account caps the email at 20 MB, and Microsoft notes that limit includes both the attachment and the message. Microsoft 365 and Exchange Online default to 35 MB for sending and 36 MB for receiving, but an administrator can set anything from 1 MB to 150 MB.

What is the iCloud Mail attachment limit?

Apple lists the size of incoming and outgoing iCloud Mail messages as 20 MB. With Mail Drop turned on you can send attachments up to 5 GB, recipients have 30 days to download them, and those attachments do not count against your iCloud storage. Mail Drop works from Mail on Mac, iPhone and iPad, and from iCloud.com.

Does compressing a PDF make it unreadable?

Not if you pick the right preset. Compression works on the images inside the PDF; text and vector graphics stay sharp because they are not pixels. Problems start when a tool resamples a scanned page too far, since a scan is entirely image. For scans, use a preset around 150 DPI rather than 72 DPI and check the result at 100% zoom before sending.

Can I email a PDF that is 100 MB?

Not as an attachment on any mainstream consumer service. Use a link instead: Gmail converts oversized attachments to Google Drive links automatically, iCloud Mail Drop handles up to 5 GB, and Outlook.com supports OneDrive attachments up to 2 GB. A Microsoft 365 administrator can raise the message limit to 150 MB, but that only helps if both ends are configured for it.

Keep reading