Base64 encoding fundamentals
Base64, defined in RFC 4648, represents binary bytes using a 64-character printable ASCII alphabet (A-Z, a-z, 0-9, +, and /).
During encoding, every 3 bytes (24 bits) of data are split into 4 6-bit groups and mapped to Base64 characters. This increases the encoded data size by approximately 33.3%.
// Standard Text Input: Developer Tools // Base64 Encoded Output: RGV2ZWxvcGVyIFRvb2xz
When input length is not a multiple of 3 bytes, trailing = padding characters are added: 1 leftover byte yields == padding, while 2 leftover bytes yield = padding.