Base64 Encode Online Tool

This Base64 Encode Online tool is used to encode base64 string. Base64 allows you to encode binary data to ASCII strings in 64 ASCII formats. This encoder scheme is used to store and transfer binary data over media.

Please Enter text to encode to Base64

A tremendous amount of data is being transmitted over network channels every hour of the day, every minute of each hour, and every second in every minute. We all know that data communication requires a path or medium. These pathways are also known as communication channels.

Multiple data formats like text, BLOB, CLOB, etc can be transferd via communication medium from one server to another. Before transmission data is converted into packets, each packet is a chunk of data in binary format like 10110011001110. These packets will be transffered through various networks called hops.

What does BLOB and CLOB stand for?

Blob is binary large object file. If you transfer an Image, Audio, or Video type of data over the network, that data is called BLOB data. CLOB means Character Large Object File. If you transfer Text, XML or any other type of character data format over a network, that data is a CLOB data.

Base64 is a binary-to-a text encoding scheme. It encodes binary data in ASCII strings. Base64 can carry binary data across all channels. It can take any type of data and convert it into a string of plain text.

We could not transfer large amounts of data, such as files, because they are 28 bits bytes in size. However, our network is 27 bits bytes. This is how base64 encoding was introduced. What does base64 actually mean?

Base64 Encoding is a software method that converts binary data objects (such as JPG images or compiled Windows DLLs or EXE files) into ASCII text. This allows it to be saved or transmitted using facilities that only use text characters such as many e mail systems. Base64 encoding can be lostless, platform-independent, and endian independent.

Why is Base64 Encode Online Tool Required?

Base64 encoder dependence is due to problems that result from media being transmitted in binary format to text-based system.Text-based systems (subsequently email) add footnotes for binary data. This means that a lot of binary data transmitted to transfer media can be misinterpreted and lost or damaged in the transmission process.

This allows binary data to be encoded in a pretentious manner that avoids transmission problems. It can be sent as plain ASCII text in Base64-encoded format. This is one technique used by the MIME, which allows data to be sent in other formats than plain text.

Note : Once string is encoded using Base64 Encode Online Tool in Base64 format, use Base64 Decode Online to decode Base64 string.

How Base64 Encode Works?

Let's begin with an example that will help you understand base64. Let's convert the string "THS" into base64 format.

This example shows how to encode string "CAD" using the base64. We can see that the encoded output is Q0FE. Let's now look at the steps involved in getting this encoded output.

These are the steps that base64 conversion alorothm follows:

1. Calculate the number of characters contained in a String.
2. Now, convert the ASCII into binary format (8-bit each).
3. After binary number conversion, it will divide data into 6-bits chunks.
4. 6-bit binary data chunks will now be converted into decimal numbers format.
5. Above decimals data will be converted to a string using base64 Index Table.
6. Finally, we will receive the encoded version our input string.

We started base64 work with an example string, "CAD" We will now encode the string using the algorithm steps above.

The number of characters in THS is 3.Now, let’s encode this string to ASCII format.
C - 67 A - 65 D - 68

Now, let’s convert ASCII into an 8-bit binary number.

C - 67 - 01000011
A - 65 - 01000001
D - 68 - 01000100

Binary String = 01000011 01000001 01000100

Divide the above binary into chunks of the 6-bit block.

010000 110100 000101 000100

Here, To get the exact value of the decimal numbers we have to use the base64 Index Table.

010000 -16
110100 -52
000101 -5
000100 -4

According to Base64 Index Table We need to find out corresponding base64 characters
16 - Q
52 - 0
5 - F
4 - E

So Base64 encode of "CAD" is "Q0FE"

Base64 Encoding Table

Value Char   Value Char   Value Char   Value Char
0 A   16 Q   32 g   48 w
1 B   17 R   33 h   49 x
2 C   18 S   34 i   50 y
3 D   19 T   35 j   51 z
4 E   20 U   36 k   52 0
5 F   21 V   37 l   53 1
6 G   22 W   38 m   54 2
7 H   23 X   39 n   55 3
8 I   24 Y   40 o   56 4
9 J   25 Z   41 p   57 5
10 K   26 a   42 q   58 6
11 L   27 b   43 r   59 7
12 M   28 c   44 s   60 8
13 N   29 d   45 t   61 9
14 O   30 e   46 u   62 +
15 P   31 f   47 v   63 /