

Simply drag and drop, upload, or provide an image URL in the controls above and the encoder will quickly generate a Base64 encoded version of that image.
#BASE64 ENCODE ONLINE FULL#
This character is used when the last segment of binary data does not contain a full 6 bits.With elmah.io's free image to Base64 encoder, it's easy to copy and paste markup or style for exactly your codebase. There is also a 65th character known as a pad, which is the Equal sign (=).
#BASE64 ENCODE ONLINE PLUS#
The 64 characters are 10 digits, 26 lowercase characters, 26 uppercase characters as well as the Plus sign (+) and the Forward Slash (/). None of the special characters available in ASCII are used. Base64 only uses 6 bits (corresponding to 2^6 = 64 characters) to ensure encoded data is printable and humanly readable. The first step is to break the binary string down into 6-bit blocks. Base64 Encoding Logicīase64 encoding breaks binary data into 6-bit segments of 3 full bytes representing those as printable characters in ASCII standard. This is one of the techniques employed by the MIME standard to send data other than plain text. One method of encoding this kind of binary data in a way that avoids such transmission problems is to send it as plain ASCII text in Base64 encoded format. Since text-based systems like email interpret binary data as a wide range of characters, including special command characters, much of the binary data that is transmitted to transfer media is misinterpreted by those systems and lost or corrupted in the transmission process.

In addition, Base64 is used to encode data that may be unsupported or damaged during transfer, storage, or output.īase64 encoding comes to the rescue when media is transmitted in raw binary format to text-based systems. So a new algorithm was developed to solve this problem - Base64.īase64 is most commonly used to encode binary data such as images, or sound files for embedding into HTML, CSS, EML, and other text documents.

For example, a mail server may discard the eighth bit when sending emails or they could only send text, but not images, videos, archives, etc. But when the eight-bit byte was approved as standard many systems used old standards and did not support the new one. Some decades ago, seven-bit, six-bit, and three-bit bytes were used. The history of the Base64 algorithm started when, in the past, engineers argued over how many bits should be in a byte. The 64 characters represent the 64 place-values for the base varies between implementations.

Initially, the algorithm was named “printable encoding” and only in June 1992, RFC 1341 defines it as “Base64”. Other variations share this property but differ in the symbols chosen for the last two values an example is UTF-7. For example, MIME's Base64 implementation uses A–Z, a–z, and 0–9 for the first 62 values. This combination leaves the data unlikely to be modified in transit through information systems, such as email, that were traditionally not 8-bit clean. The general strategy is to choose 64 characters that are common to most encodings and that are also printable. The set of 64 characters chosen to represent the 64 place-values for the base varies between implementations. Base64 is particularly prevalent on the World Wide Web where its uses include the ability to embed image files or other binary assets inside textual assets such as HTML and CSS files. Three 8-bit bytes (i.e., a total of 24 bits) can, therefore, be represented by four 6-bit Base64 digits.Ĭommon to all binary-to-text encoding schemes, Base64 is designed to carry data stored in binary formats across channels that only reliably support text content. Each Base64 digit represents exactly 6 bits of data. The term Base64 originates from a specific MIME content transfer encoding. In computer science, Base64 is a group of binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. Due to this algorithm, even Chinese characters, emojis, and images can be converted into a “readable” string. Just type or past any data in the input textarea above, and the tool will convert it to Base64 encoded format.īase64 is an encoding algorithm that allows converting any characters into an alphabet which consists of Latin letters, digits, plus, and slash. Use this online free Base64 Encoder tool that converts any text, local files, or remote files (URL) to Base64.
