What Is Base64 Encoding?
Base64 encoding is a binary-to-text encoding scheme that converts any binary data into a string made up of 64 printable ASCII characters. The name 'Base64' comes from the 64-character alphabet used. Every 3 bytes of binary input (24 bits) are split into four 6-bit groups, and each 6-bit group maps to one character in the alphabet. This means the output is always 4/3 the size of the input — a 33% overhead. The result can safely pass through any text-based system without corruption.