What is Base64 Encoding?
Base64 encoding is a term for encoding similar to binary-to-text encoding schemes that encode binary string into ASCII string by translating it into base64 representation. The term Base64 originates from a specific MIME content transfer encoding.
Base64 is particularly used in communication where there is need to encode binary data that needs to be stored and transferred over media which is designed to only deal with textual data. Base64 encoding makes sure that the data remains intact and in its original format without any modifucation. Base64 encoding is used in many application such as emails via MIME, to reduce number of http requests by converting image into base64, storing complex data in XML.