ARCHIVED: In MIME, what is the Base64 encoding method?

This content has been archived, and is no longer maintained by Indiana University. Resources linked from this page may no longer be available or reliable.

Base64 is an encoding method that is used primarily to transfer binary attachments over the Internet. If you looked at the contents of a Base64 file, it would appear to contain many lines of seemingly random numbers and letters. It is similar to UUencode and BinHex in that it encodes files into ASCII (text) format, making them less susceptible to corruption as they are passed through Internet gateways. However, it was designed to be more stable and effective than these binary-to-text encoding methods and is based on the printable encoding method first introduced with PEM (Privacy Enhanced Mail). As with other binary-to-text encoding methods, files encoded with Base64 will be larger than the originals. The increase in file size is typically about 33%.

All MIME-compliant clients are capable of decoding Base64, but their ability to display or otherwise use the resulting file depends on both the client and the content of that file. There are also a number of stand-alone applications that will decode Base64 content, notably metamail and mpack. For more information about Base64, see RFC 2045, section 6.8, available at:

  http://www.ietf.org/rfc/rfc2045.txt

This is document aepm in the Knowledge Base.
Last modified on 2018-01-18 12:05:35.

Contact us

For help or to comment, email the UITS Support Center.