Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Technology 3 min read

Why Email Attachments Get 33% Bigger

Base64 encoding inflates every 3 bytes into 4 characters.

Email wasn’t designed for binary files. Attachments are converted to text using Base64 encoding, which adds 33% overhead.

The 3-to-4 Expansion

Base64 takes every 3 bytes of binary data and encodes them as 4 ASCII characters. That’s a 4/3 = 1.333× increase.

Encoded size=⌈n3⌉×4\text{Encoded size} = \lceil \frac{n}{3} \rceil \times 4

n = original bytes

A 9 MB attachment

  1. 1

    Expansion

    9×43=12 MB9 \times \frac{4}{3} = 12 \text{ MB}
Answer

12 MB — the attachment grows by 3 MB in transit

The takeaway

Every email attachment is secretly 33% bigger than the file itself — that’s the cost of encoding binary as text.

Back to all stories