Three bytes (i.e., a total of 24 bits) can therefore be represented by four 6-bit Base64 digits.Ĭommon to all binary-to-text encoding schemes, Base64 is designed to carry data stored in binary formats across channels that only reliably support text content. Each non-final Base64 digit represents exactly 6 bits of data.
The term Base64 originates from a specific MIME content transfer encoding.
In programming, Base64 is a group of binary-to-text encoding schemes that represent binary data (more specifically, a sequence of 8-bit bytes) in an ASCII string format by translating the data into a radix-64 representation. Group of binary-to-text encoding schemes using 64 symbols (plus padding)