Each of the three 6-bit groups is converted to the corresponding Base64 alphabet.
![base64 binary to ascii text encoding encoded 13 times base64 binary to ascii text encoding encoded 13 times](https://www.sysadmins.lv/content/images/pages/6726/image_b39a8176-adc6-4232-9f28-3caf1a2a08fc_2D0559C6.png)
These characters form the Base64 alphabet. The first 64 characters are represented using a 6-bit sequence ( 2 6 = 64). These characters are A-Z, a-z, 0-9, +, /, and =.
![base64 binary to ascii text encoding encoded 13 times base64 binary to ascii text encoding encoded 13 times](https://i1.rgstatic.net/publication/315766213_Faster_Base64_Encoding_and_Decoding_using_AVX2_Instructions/links/58e33800a6fdcc385931f183/largepreview.png)
The decoding process converts the encoded string back to binary data.īase64 encoding uses a subset of 65 characters from the US-ASCII charset. The encoding process converts binary data to a printable ASCII string format. To transfer non-ASCII or binary data over such communication channels, the binary data is encoded to the ASCII charset using Base64 encoding scheme.
![base64 binary to ascii text encoding encoded 13 times base64 binary to ascii text encoding encoded 13 times](https://cloudinary.time2hack.com/upload/q_auto:good,f_auto/base64%402x.png)
Many communication protocols like SMTP, NNTP were traditionally designed to work with plain text data represented by the 7-bit US-ASCII character set. Base64 encoding is a binary-to-text encoding/decoding scheme.īase64 encoding is used when any binary data needs to be transmitted over a media that is designed to handle only textual data.