Email Says the Attachment Is Too Large: Why 25 MB, and What to Use Instead

By ShareDrop.org Engineering · Published 2026-08-13

You attach a 22 MB file to an email with a “25 MB limit” and it is rejected. The number was not a lie; it was measuring something different from what you were. This article explains where the ceiling comes from, why it is smaller than it looks, and what to do when the file will not fit.

Email cannot carry binary files, so it dresses them up

Email was designed in the era of 7-bit text. Every byte of a message had to be a printable character. Attachments came later, bolted on by MIME, and the way MIME carries a binary file is Base64 encoding: every 3 bytes of the file become 4 characters of text. That is a fixed 33% size increase before anything else happens. MIME then breaks the text into lines of at most 76 characters, each ending in a two-character line break — another 2–3%. A file grows by roughly 37% between your disk and the message.

Bar chart comparing file size on disk to its size once Base64-encoded inside an email: a 5 MB file becomes 6.9 MB, 10 MB becomes 13.7 MB, 18 MB becomes 24.7 MB (just under a 25 MB limit), and 25 MB becomes 34.3 MB (rejected)
What a “25 MB limit” really admits. Provider limits apply to the encoded message, so an 18 MB file is the practical maximum; a 25 MB file becomes 34 MB on the wire and is refused.

The limits are on the message, not the file

Providers publish a maximum message size, and the message includes the encoded attachment, the headers, and the text. So the practical attachment ceiling is the published limit divided by about 1.37:

Provider (published limit)Real attachment ceilingWhat happens above it
Gmail (25 MB)≈ 18 MBAttachment is uploaded to Google Drive and replaced with a link
Outlook.com (20 MB)≈ 14 MBPrompted to upload to OneDrive and send a link
iCloud Mail (20 MB)≈ 14 MBMail Drop uploads to iCloud and inserts a link (up to 5 GB)

Two more constraints hide behind the sender's limit. The recipient's provider has its own cap — a message that leaves Gmail can still be bounced by a corporate server with a 10 MB rule. And mail is store-and-forward: the encoded message is copied to the sender's Sent folder, the recipient's inbox, and every relay in between, so a 20 MB attachment costs the system many times that in storage. The small limits are not stinginess; they are what keeps mail cheap and fast.

Base64 by hand: three bytes in, four characters out

The encoding takes each group of three bytes, 24 bits, and rewrites it as four characters of six bits each, drawn from an alphabet of 64 printable characters. The word “Man” is three bytes; encoded it becomes TWFu, four characters. Every three bytes of a file cost four characters, which is the 33.3%. MIME then insists on lines no longer than 76 characters, each ended by a two-character line break: 78 characters transmitted for every 76 of content, another 2.6%. Multiply the two and a file grows by a factor of about 1.37 on its way into a message. A 20 MB attachment is 27.4 MB of email.

The limits, at more providers

ProviderPublished message limitPractical attachment ceiling
Gmail25 MB≈ 18 MB
Outlook.com20 MB≈ 14 MB
iCloud Mail20 MB≈ 14 MB
Yahoo Mail25 MB≈ 18 MB
Proton Mail25 MB≈ 18 MB
Exchange Online (work)25 MB by default; administrators can raise it≈ 18 MB unless IT says otherwise

Figures are the providers' published limits at the time of writing; check the help page for yours. Corporate systems are the wild card: a company can set its limit anywhere from a few megabytes up, and the recipient's company may have set a smaller one than yours.

Where the seven-bit rule came from

The email standards of the early 1980s defined a message as lines of US-ASCII text, seven bits per character, because that was what the networks and terminals of the day carried reliably. Attachments arrived a decade later, in 1992, with MIME: a way of labelling parts of a message and encoding binary content into that seven-bit text world. The design was deliberately backwards compatible: an old mail server that knew nothing of MIME could still pass the message along, because it was just text. That compatibility is why the encoding overhead is still with us thirty years on, and why “why can't email just send the bytes?” has the answer it does.

The recipient pays too

An attachment counts against the sender's storage in Sent and against the recipient's in their inbox, encoded size and all, for as long as either keeps the message. On a free Gmail account the 15 GB is shared with Drive and Photos; a habit of emailing 15 MB files fills it faster than people expect. Inline images and logos in signatures are attachments as far as the size limit is concerned, which is why a short reply in a long thread can be rejected: the thread has accumulated a dozen copies of a company logo.

What providers do instead: the automatic link

When you exceed the limit, modern mail clients do not fail: they upload the file to the provider's cloud storage and put a link in the message. It is convenient, and it changes the deal in ways worth knowing: the file now lives on a server, under the provider's retention rules; the link is often accessible to anyone who has it; and it counts against your storage quota. For a holiday video that is fine. For a contract or a medical record, decide deliberately rather than by default (a checklist for sensitive documents).

Alternatives when the file will not fit

What compression can and cannot do

File typeTypical size reduction when zippedWorth it?
Word, Excel, PowerPoint (modern .docx etc.)10–30% — they are already compressed internallySometimes
Plain text, CSV, source code, logs70–90%Yes
PDF0–20%, depending on how much is imagesRarely
JPEG, HEIC, PNG photos0–5%No
MP4, MOV video~0%No

Photos and videos are the attachments that hit the limit, and they are the ones compression cannot shrink. Zipping a folder of photos makes one file out of many, useful, but not a smaller one. For those, the choice is a link or a direct transfer; for a spreadsheet that is just over the line, a zip may be all it takes.

If you are the one receiving the automatic link

When a sender's attachment was silently converted into a cloud link, download it promptly. Mail Drop links from iCloud expire after 30 days; links into a sender's Drive or OneDrive last until the sender deletes or reorganises the file, which they may do without thinking of you. A link is not an attachment: the message in your inbox holds a pointer, not the file, and a pointer can go stale. Save the file where you keep files, then treat the email as the receipt it is.

Quick rules of thumb

Standards referenced