Base64 encoding schemes are commonly used when there is a need to encode binary data, especially when that data needs to be stored and transferred over media that are designed to deal with text. This encoding helps to ensure that the data remains intact without modification during transport. Base64 is used commonly in a number of applications including email via MIME, as well as storing complex data in XML or JSON.

Description:

Simply put, it’s a way to represent binary data in 64 characters.

Base64 can encode arbitrary binary data into a text string and is commonly used to transfer small amounts of binary data in URLs, cookies, and web pages.

Examples:

1
Many hands make light work.

will become:

1
TWFueSBoYW5kcyBtYWtlIGxpZ2h0IHdvcmsu

References: