Attachments
Enter each file's size as shown by your computer.
This calculator estimates how large your email really is after attachments are Base64 and MIME encoded, then checks it against the Gmail, Outlook.com, Yahoo Mail, or a custom size limit. Encoding adds about 37 percent, so a 20 MB file can bounce from a 25 MB limit. Everything runs in your browser.
Enter each file's size as shown by your computer.
Fits Gmail (personal)
14.40 MB of 25.00 MB · 10.60 MB headroom
Recommended maximum raw attachments
18.24 MB
Largest combined size for 2 files that still fits Gmail (personal) with the current body size and conservative assumptions.
Up to 25 MB total attachments. Larger files are offered as Google Drive links. Official Gmail (personal) help page Estimates use 20,480 bytes of raw body content.
Enter a name and size for each file, choosing KB, MB, or GB. Add or remove rows as needed.
Choose Gmail, Outlook.com, Yahoo Mail, or set a custom limit for your own mail server.
Review the Base64 and MIME overhead, total encoded estimate, remaining headroom, and recommended maximum raw size.
SMTP was designed for text, so binary files are converted to Base64. Every 3 bytes become 4 ASCII characters, and the last group is padded with =. The exact size is 4 × ceil(bytes ÷ 3), so a 3 MB file becomes 4 MB.
MIME limits Base64 lines to 76 characters, and each line ends with a 2-byte CRLF. That adds 2 bytes for every 76 encoded characters, bringing the combined encoding overhead to roughly 36.8 percent.
Each attachment gets its own MIME part with Content-Type, Content-Disposition, and Content-Transfer-Encoding headers, separated by boundary lines. The message also carries routing and DKIM headers, and the body itself counts toward the limit.
In practice, divide a provider's limit by about 1.37 to get the largest raw attachment total that is likely to send. For a 25 MB limit that is roughly 18 MB. When a message is too large, the sending or receiving server rejects it, often with an SMTP 552 5.3.4 message size exceeded bounce.
Gmail personal accounts allow up to 25 MB of attachments per message. Because attachments are Base64 encoded, the practical raw limit is closer to 18 MB. Larger files are shared as Google Drive links instead.
Outlook.com has a 25 MB file attachment limit. Microsoft 365 and Exchange administrators can set different limits for work accounts, so check with your admin if you send from a company mailbox.
Email is a text format, so binary attachments are Base64 encoded. Base64 turns every 3 bytes into 4 characters, adding about 33 percent, and MIME line breaks add roughly 2.6 percent more. A 20 MB file becomes about 27.4 MB on the wire.
The exact Base64 length is 4 × ceil(bytes ÷ 3). The encoded text is then wrapped into 76-character lines, and each line ends with a 2-byte CRLF. This calculator applies both steps to every attachment separately.
No. You only enter file names and sizes, and every calculation runs locally in your browser. Nothing is uploaded and no API calls are made.
Yes. The recipient's mail server enforces its own maximum message size, often 10 MB to 50 MB, and admins can change it at any time. A message that fits your provider can still bounce at the destination.
Open .eml files in your browser to inspect MIME parts, headers, and attachments.
Trace delivery hops, authentication results, and delays from raw headers.
Test SMTP connectivity, TLS, and authentication for your mail server.
Decode SMTP bounce codes such as 552 message size exceeded.
MailParse decodes inbound MIME, stores attachments, and delivers structured JSON to your webhook or REST API.
Try MailParse free