Codifica Base64 Codificação Base64 'Base64 Codierung Codage Base64 Codificación Base 64

Base64 encoding

The concept of Base64 encoding entails using US-ASCII (non-accented) characters to encode any sort of data in 8-bit form.

Email protocols were originally designed to send messages in plain text only. But as email systems vary greatly, transferring binary data often ends up changing the message's content, rendering the original document unreadable.

Base64 format, widely used in sending and receiving email, can transmit any kind of binary document (like an application, a video, or an audio file) as an attachment to an email, by encoding it in the form of basic characters.

Base64 encoding is responsible for an overall 33% increase in the volume of all encoded data.

Concept of Base64 encoding

The concept of Base64 encoding involves using 4 printable characters (in US-ASCII format) to encode any 3 bytes (3*8 bits = 24 bits).

Base64 encoding uses an alphabet of 64 printable characters to represent 6 bits of data. This alphabet's 64 symbols have been chosen for being universally readable, and for having no special meaning in the main email protocols (in particular SMTP).

ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwkyz
123456789+/.

Reading the binary data from left to right, groups of 24 bits are created by concatenating blocks of three bytes of data each. Each 24-bit group is then divided into 4 groups of 6 bits, with each one corresponding to 4 characters of the Base64 alphabet.

Base64 encoding is used for data which forms a multiple of 24 bits. If the amount of data to be encoded is not a multiple of 24 bits, the resulting Base64 string must end with between 0 to 3 equal signs ("=") in order to reach a multiple of 24. This 65th character may only be used at the end of the encoded data.

To ensure compatibility with all email systems, Base64 data is formatted with carriage returns, so that no line is longer than 76 characters.

Last update on Thursday October 16, 2008 02:43:14 PM.This document entitled « Base64 encoding » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Best answers for « Base64 encoding » in :
Binary encoding Show Introduction to binary In the late 1930s, Claude Shannon showed that by using switches which were closed for "true" and open for "false," it was possible to carry out logical operations by assigning the number 1 to "true" and 0 for "false." This...
Representation of real numbers and integers Show Representing a number in a computer Representing (or encoding) a number means to express it in binary form. Representing numbers in a computer is necessary in order for it to be able to store and manipulate them. However, the problem is that a...
How to use a driver ODBC 32 BITS under the Window 2003(64 bits)? ShowHow to use a driver ODBC 32 BITS under the Window 2003(64 bits)? You have a Windows 2003 server (64-bits) and you want to use a 32 bits ODBC driver: one that is usually found in the administrative panel for ODBC on Windows or an external...
Adobe Flash Player on Vista 64-bit ShowAdobe Flash Player on Vista 64-bit Issue Solution Issue As you know, there’s any version of flash player available for Vista 64-bit platform. So you will not be able to watch streaming videos or access some websites. I guess you...
Encoding a video for Sony Ericsson W910i or K8x0i ShowEncoding a video for Sony Ericsson W910i or K8x0i First of all you must have the right software, to convert your video files....Actually one of my favourite is SUPER,its totally free and is downloadable...
Download Riva FLV encoder ShowRiva FLV encoder allows to transcode your video files to advanced Flash Video ( FLV). Riva FLV encoder supports the following encoding formats: AVI, MPEG, Quicktime, WMV: -AVI - Cinepak Codec by Radius, Cinepak by Supermac - Intel...
Download FLV Encoder ShowFormat FLV is a common format for the broadcasting of video on Internet. It is the format of compression used by Youtube, DailyMotion and many other sites of video distribution. Normally, to acquire a video file in format FLV; it is necessary to pass...
Quoted-printable encoding ShowQuoted-printable encoding Quoted-printable encoding (somtimes QP) involves using US-ASCII 7-bits encoding (non-accented letters) to encode a text that requires an alphabet of 8-bit characters (accented letters), such as ISO-Latin-1, which is used...
BinHex encoding ShowBinHex encoding BinHex encoding (a contraction of binary-to-hexadecimal) is a proprietary algorithm owned by Apple for converting 8-bit binary data into a 7-bit format. BinHex encoding, designed for Macintosh systems, is used to preserve file...