Email

Why Attachments Have Size Limits

See why email caps attachment sizes, why files grow about a third in transit, and which sharing method to use instead.

Key takeaways

  • The limit that applies is the smallest one along the path, including the recipient's server, which you don't control.
  • Encoding binary files as text adds about 33 percent, plus a little more for line breaks and headers.
  • Compressing helps with text-heavy files but does little for photos, video and already compressed formats.
  • For large files, a shared link with an expiry date and limited access is usually better than an attachment.
  • Providers publish their own limits and change them, so check the current help page before relying on a number.

Email attachments have size limits because every message is copied, queued, scanned and stored by multiple servers, and each of them sets a maximum it is willing to handle. A file also grows by roughly a third when it is encoded for email, so a message can exceed a limit even though the file on your disk looks small enough.

The practical answer is simple. Keep attachments modest, and for anything large, upload the file somewhere and send a link. The rest of this guide explains the mechanics, so you can predict what will go through and what will bounce.

Where the limits come from

A message may be handled by your app, your provider's submission server, one or more filtering gateways, the recipient's mail server and finally the recipient's mailbox. Any of these can refuse a message as too large.

SMTP has a standard way for a server to announce its ceiling, an extension called SIZE, defined in RFC 1870. When a sending server connects, the reply can include a line like this:

250-mx1.example.com
250-SIZE 26214400
250 STARTTLS

The number is in bytes. The sender can declare the size of its message up front and be turned away before transferring it. If a server rejects a message for size, you typically get a bounce with a code such as 552 or an enhanced status like 5.3.4. See what happens when an email bounces for how to read it.

Many major consumer services cap messages somewhere in the tens of megabytes. Business systems are often configured differently, sometimes much lower, and administrators can change them.

Where a large message can be stopped
1 Your mail app May refuse to attach, or offer a cloud link instead. 2 Your outgoing server Enforces your provider's maximum at submission. 3 Filtering gateways May have their own caps for scanning. 4 Recipient's server Rejects anything over its advertised size. 5 Recipient's mailbox Delivery can fail if storage is full. Your mail app May refuse to attach, or offer a cloud link instead. 1 Your outgoing server Enforces your provider's maximum at submission. 2 Filtering gateways May have their own caps for scanning. 3 Recipient's server Rejects anything over its advertised size. 4 Recipient's mailbox Delivery can fail if storage is full. 5

Why files grow in transit

Email began as a way to move short lines of plain text. To carry a photo or spreadsheet, the MIME standards convert the bytes into safe text characters, most often with base64. Base64 takes every 3 bytes of data and writes them as 4 characters. That is a growth of one third before anything else.

Mail also wraps encoded data into lines, no longer than 76 characters under the MIME rules, and each line break adds bytes. Together the overhead is commonly around 35 to 37 percent.

A worked example, using round numbers:

File on disk Approximate size inside the message
5 MB About 6.8 MB
10 MB About 13.7 MB
18 MB About 24.6 MB
25 MB About 34 MB

So with a message limit of 25 MB, a file somewhere around 18 MB is near the practical ceiling. Some providers state their limit in terms of attached file size and handle the overhead on their side; others measure the whole encoded message. Because you can't know how the recipient measures, leave a margin.

Example: size of a file before and after email encoding
File on disk 15 MB After base64 (4 bytes for 3) 20 MB With line breaks added 20.5 MB File on disk 15 MB After base64 (4 bytes for 3) 20 MB With line breaks added 20.5 MB

Hypothetical example: the numbers are made up to show the method, not a quote or an average.

You can watch the effect yourself with the Base64 converter, and base64 explained shows how the conversion works.

Why servers care so much

Limits can feel arbitrary when storage seems cheap. The costs add up in other places.

  • Copies multiply. A 20 MB file sent to fifty people can become fifty stored copies, plus one in your Sent folder, plus copies in backups and archives.
  • Queues must hold it. If delivery is deferred, the sending server keeps the whole message and retries, re-transferring it each time a transfer fails.
  • Scanning takes work. Security systems decode attachments, unpack archives and examine the contents. Very large files take memory and time.
  • Devices have constraints. Recipients may be on phones, slow links or metered plans.
  • Abuse protection. A generous limit would let a few senders consume resources meant for everyone.

Email also has no good way to resume a half-finished transfer. If the connection drops near the end, SMTP starts over. File transfer services are built to upload in pieces and recover.

Why a message with a small file is still rejected

Size is not the only reason an attachment fails.

  1. Many small files count together against the same limit.
  2. Inline images and signature logos add to the total. A pasted screenshot can be large.
  3. Quoted history in a long reply chain can carry repeated attachments if you forward with files included.
  4. Blocked file types. Programs, scripts and some installer or disk image formats are commonly refused regardless of size.
  5. Password-protected archives may be blocked because scanners can't inspect them.
  6. Full mailbox at the other end.

Renaming an extension or hiding a program inside an archive to get past a filter is a poor idea. It looks exactly like malware behavior and puts your sending reputation at risk. Use a file sharing method meant for that content.

Shrinking files the sensible way

Compression works well on text, spreadsheets saved as CSV, logs and uncompressed images. It does little for JPEG photos, most video and audio, and modern office documents, which are already compressed packages.

Better approaches by file type:

  • Photos: export a smaller copy with reduced pixel dimensions. Phone mail apps often offer a size choice when you attach.
  • PDFs: re-export with images downsampled, or use a "reduce file size" option. Check that small text stays readable.
  • Presentations: compress embedded pictures and link to video instead of embedding it.
  • Video: use a link. Re-encoding enough to fit in email usually costs too much quality.

Splitting a file into many parts across several emails technically works but is awkward for the recipient and still consumes their mailbox.

Cloud storage and file transfer services avoid the problem: the file is uploaded once, and the email carries only a short address. Large providers often do this automatically when you try to attach something too big.

Do it with some care:

  • Share with specific people when the content is sensitive, rather than "anyone with the link".
  • Set an expiry date, and remove access when the job is done.
  • Remember that a link can stop working later. If the recipient needs a permanent record, tell them to save a copy.
  • Say in the message what the file is and roughly how big, so the link doesn't look like phishing.
  • Don't send the password in the same email as a protected file.

Sharing files safely with links goes further into permissions, and the data rate and transfer time planner estimates how long an upload will take on your connection.

How should you send this file?
Is it small, and an ordinary document or image? YES Attach it, leaving a margin under the limit. 1 NO Is it sensitive or something you may need to revoke? YES Share a link limited to named people, with expiry. 2 NO Is it large, such as video or a folder of photos? YES Upload to cloud storage or a transfer service. 3 NO Does the recipient's organization block outside links? YES Ask them which transfer method they accept. 4 NO Compress, then check size Reduce the file and confirm it is still usable. Is it small, and an ordinary document or image? 1 IF YES Attach it, leaving a margin under the limit. NO Is it sensitive or something you may need to revoke? 2 IF YES Share a link limited to named people, with expiry. NO Is it large, such as video or a folder of photos? 3 IF YES Upload to cloud storage or a transfer service. NO Does the recipient's organization block outside links? 4 IF YES Ask them which transfer method they accept. NO Compress, then check size Reduce the file and confirm it is still usable.

Troubleshooting a rejected attachment

When a message with a file comes back, work through it in this order.

  1. Open the bounce and find the status code. Wording about size, a 552 reply or 5.3.4 points to a limit. Wording about content or policy, often 5.7.1, points to a blocked file type or a filter.
  2. See which server refused it. The notice usually names the remote host. If it is the recipient's system, changing your own settings will not help.
  3. Check the real size. Look at the message in your Sent folder or Outbox, where many clients show the encoded size.
  4. Remove extras. Delete signature images and old attachments carried along in a forward.
  5. Switch methods. Send a link, and mention that the attached version bounced so the recipient knows to expect it.

Do not keep resending the same oversized message. It will fail the same way, and on slow connections each attempt can tie up your outbox for a long time. If your client is stuck trying to send, switch it to offline mode, delete or edit the message in the Outbox, then reconnect.

What the recipient experiences

A large attachment is not free even when it arrives. It takes space in the recipient's quota, may be slow to open on a phone and often lingers for years in a thread. Replies and forwards inside a team can duplicate it again and again.

For documents that several people will edit, attachments also create version confusion: three people return three different copies, and someone has to merge them. A single shared document with edit permissions avoids that. Attachments still make sense when you want a fixed copy, such as a signed form or an invoice, that the recipient can keep regardless of what happens to your storage account later.

A good rule of thumb is to attach what the reader should own, and link what the reader should work on or only glance at.

If you administer a mail system

Raising your own limit only affects what you accept and send; it cannot force other servers to take large messages. When you change it, update every layer consistently: client policy, submission server, gateways and mailbox store. A mismatch produces confusing cases where mail is accepted at one hop and bounced at the next. Remember to set the value with encoding overhead in mind, and tell users what file size that really allows.

Consider mailbox quotas and backup growth too. Offering a supported large-file sharing tool usually reduces pressure for higher limits and keeps your archives smaller. For the basics of how messages travel between those layers, see how email works from send to inbox.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Email →

Latest news on this topic