Explainer 5 min read

Email Attachment Too Large Under 25 MB? How Encoding Adds 33%

Why an 18 or 20 MB file can bounce from a 25 MB email limit: Base64 encoding adds about a third. Work out the real maximum file size and what to do instead.

email attachment too largegmail attachment size limitbase64 increases file sizewhy is my attachment too bigemail size limit 25 mbattachment encoding overhead

The short answer

Email sends attachments as Base64 text, which makes them about one third larger in transit. So an 18 MB or 20 MB file can be rejected by a mail system whose 25 MB limit applies to the encoded message. As a rule of thumb, keep attachments under about 18 MB for a 25 MB limit, and use a cloud link for anything bigger. The Data Storage Converter helps you turn the byte count from your file's properties into MB so you know where you stand.

What the limits actually say

Limits differ by provider and by account type, and they change, so check the current help page for the service you use. As of November 2026:

  • Gmail: Google's help page says that for personal Gmail accounts "the limit is 25 MB". For work or school accounts, the administrator sets the sending and receiving limits. If your attachments go over the limit, Gmail removes them and inserts a Google Drive link instead.
  • Microsoft Exchange: Microsoft's documentation for Exchange administrators says Base64 encoding "increases the size of the message by approximately 33%", and advises setting a limit about 33% higher than the size you want to allow. Its example: a 64 MB limit gives a realistic maximum of about 48 MB.

Google's page does not say whether the 25 MB is measured before or after encoding. The Microsoft guidance shows why it matters: a limit counted on the encoded message lets through far less than its headline number.

Why encoding adds about a third

Email was built to carry text. A photo, PDF or ZIP file is binary data, so before it is sent, your email app converts it into plain characters using Base64:

  • Every 3 bytes of the file become 4 text characters. That alone is 4 ÷ 3 = 1.33, a 33% increase.
  • Email also breaks Base64 text into lines of at most 76 characters, each followed by a 2-character line break. That adds another 78 ÷ 76, so the total is about 1.37 times the original.

The receiving app decodes the text back into the original file, so the person you send it to gets a file of the original size. Only the message in transit is bigger.

For a deeper look at how Base64 works, see what is Base64 encoding.

How big is your file after encoding?

These figures multiply the file size by 1.33 (Base64 only) and 1.37 (Base64 with line breaks). The message text and headers add a little more.

File sizeEncoded at 1.33×Encoded at 1.37×
5 MB6.7 MB6.8 MB
10 MB13.3 MB13.7 MB
15 MB20.0 MB20.5 MB
18 MB24.0 MB24.6 MB
20 MB26.7 MB27.4 MB
25 MB33.3 MB34.2 MB

Working backwards, a 25 MB encoded limit allows about 18.3 to 18.8 MB of attachments. A 20 MB limit allows about 14.6 to 15 MB.

Check the exact size of your file

File managers round sizes, and they do not all use the same MB. To get an exact figure:

  • Open the file's properties. On Windows, right-click the file and choose Properties. On a Mac, select it and choose Get Info. Both show the size in bytes as well as the rounded figure.
  • Open the Data Storage Converter.
  • Set From to Byte (B), type the number of bytes, and set the target to Megabyte (MB).
  • Multiply the result by about 1.37 to estimate the encoded size.
  • For example, a file of 19,500,000 bytes shows as 18.59664917 MB in the converter. Encoded, that is roughly 25.5 MB, which is over a 25 MB limit if the limit counts the encoded message.

    Which MB is this?

    The converter uses binary units: 1 MB = 1,048,576 bytes (1,024 × 1,024). Windows File Explorer reports sizes the same way. macOS Finder uses decimal units, where 1 MB = 1,000,000 bytes. The two differ by about 5%: 25,000,000 bytes is 25 MB in decimal but 23.84 MB in binary. Email providers rarely say which they use, which is one more reason to leave a margin. The same split explains why a 1 TB drive shows 931 GB.

    What to do when a file is too big

  • Share a link instead. Upload the file to cloud storage and send the link. Gmail does this automatically with Google Drive when you go over the limit.
  • Reduce photos before attaching. Photos from a modern phone camera can be several megabytes each. Resizing it to a normal screen size, or compressing it, can cut that substantially. Use Compress Image and check the result before sending.
  • Split a set of files across several emails. Each email has its own limit. Send a few attachments at a time.
  • Zip files that compress well. Text documents, CSV files and uncompressed images often shrink a lot inside a ZIP. JPG photos, MP4 videos and most PDFs are already compressed and barely shrink, so zipping them mostly adds a step for the recipient.
  • Check the recipient's limit too. A message that leaves your account can still be rejected by the receiving server if its limit is lower.
  • Common mistakes

    • Comparing the file size directly with the limit. The limit may apply to the encoded size, which is about a third larger.
    • Forgetting that several attachments add up. Limits usually apply to the whole message, not each file.
    • Trusting rounded sizes. A file shown as "18 MB" may be closer to 19 MB once you check the byte count.
    • Assuming Base64 text inside a web page is the same. The same 33% growth happens when images are embedded as Base64 data URIs in HTML or CSS, which is why large images should not be embedded that way.

    Related reading

    If you are converting connection speeds rather than file sizes, see Mbps vs MB/s.

    Frequently asked questions

    What is the Gmail attachment size limit?

    Google's Gmail help page says the limit for personal Gmail accounts is 25 MB. For work or school accounts, the administrator sets the sending and receiving limits. When attachments go over the limit, Gmail replaces them with a Google Drive link.

    Why does email make attachments bigger?

    Email was designed for text, so attachments are converted to Base64 text before sending. Base64 turns every 3 bytes into 4 characters, and email adds a line break every 76 characters, so the attachment grows by roughly 33 to 37 percent.

    What is the largest file I can attach under a 25 MB limit?

    If the limit is applied to the encoded message, the practical maximum is roughly 18 to 19 MB of attachments, because 25 divided by about 1.33 to 1.37 is 18.3 to 18.8 MB. Leave room for the message text as well.

    Does zipping a file help it fit?

    Only if the file compresses well. Text, spreadsheets and uncompressed images often shrink a lot. JPG photos, MP4 videos and most PDFs are already compressed and usually shrink very little.

    Is MB in my file manager the same as MB in an email limit?

    Not always. Some systems use 1 MB = 1,048,576 bytes and others 1,000,000 bytes, a difference of about 5 percent. Providers rarely say which, so keep a safety margin.

    Try this tool on Lazyblink

    Put this guide into practice with our free online tool — no signup required.

    Open tool