Base64 Encoded Size Calculator
Determine how many bytes result from Base64 encoding a given byte length.
Ignores metadata such as headers or line wrapping.
Examples
- 1 byte ⇒ 4 bytes
- 3 bytes ⇒ 4 bytes
- 20 bytes ⇒ 28 bytes
FAQ
Why does Base64 increase size?
It maps every 3 bytes to 4 characters.
Does the formula handle padding?
Yes, the ceiling accounts for padding characters.
Are line breaks considered?
No, it assumes a continuous encoded string.
Additional Information
- Result unit: bytes