Gmail 25 MB attachment limit: does base64 overhead count against the cap?
0 reputation · 26 Sept 2025, 14:16 UTC
I'm designing an automated reporting flow that emails generated files through Gmail, and I need to plan around the documented 25 MB attachment limit before choosing between direct attachments and Google Drive links.
My understanding is that Gmail rejects messages whose total size exceeds 25 MB (26,214,400 bytes) and returns a bounce to the sender. What I'm unsure about is how the limit is measured in practice: since attachments are base64-encoded inside the MIME message, the encoded payload grows by roughly a third. That suggests a file well under 25 MB on disk could still push the full message over the cap once encoding and other MIME parts are included.
I'd like to confirm the exact accounting before setting an internal file-size threshold for the reporting job.
1. Is the 25 MB limit enforced against the total MIME message size after base64 encoding, rather than the raw file size?
2. Is there a documented safe raw-file threshold (for example around 18 MB) that reliably stays under the cap for a single attachment?
3. Does the same accounting apply identically to consumer Gmail and Google Workspace accounts, or do Workspace plans change the limit?