Why Not Just Binary?

Main purpose: embedding binary data (like images) inside of text (e.g. XML).

“Media that is designed for textual data is of course eventually binary as well, but textual media often use certain binary values for control characters. Also, textual media may reject certain binary values as non-text.

Base64 encoding encodes binary data as values that can only be interpreted as text in textual media, and is free of any special characters and/or control characters, so that the data will be preserved across textual media as well.”

Padding

See: Wikipedia.

Modern Use Cases

bunny.net