Base64 Payload Size

Developer utilities

Base64 Payload Size calculator

Calculate the length and expansion of standard padded Base64 for a binary payload without reading the file. Use your own measurements and check the assumptions.

Your inputs

Enable JavaScript to calculate.

Worked example

A 1,024-byte payload becomes 1,368 Base64 characters with standard padding. Adding a 22-byte ASCII prefix produces a 1,390-byte string.

Read the method, sources and limitations.