Binary Made Text-Safe
Base64 is a binary-to-text encoding scheme that transforms any data into a set of 64 ASCII characters (A-Z, a-z, 0-9, +, /). Invented for email attachments in the MIME standard (RFC 2045, 1996), it solves a fundamental problem: many protocols — HTTP headers, JSON, XML, email bodies — are text-only and corrupt raw binary data. Base64 guarantees safe transport by converting every 3 bytes of input into 4 ASCII characters, with = padding to handle inputs not divisible by 3.