Suggestions
Settings
⌘K

Base64 Encoder

Encode data to base64
Reset InputCopy Input
Size: 0 B, 0 characters
Auto
Output
Copy Output
Encode Base64 Online

A Base64 online encode tool is a web-based utility that allows you to easily encode text into Base64 format



What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It is commonly used for transmitting binary data over channels that only allow text, such as email attachments or HTTP requests. Base64 converts each 3 bytes of data into 4 bytes of ASCII text, allowing the data to be transmitted as text characters.

Base64 uses a set of 64 characters (hence the name) that includes the 26 uppercase and lowercase letters of the English alphabet, the 10 digits, and the symbols "+" and "/". The "=" symbol is also used as a padding character to ensure that the length of the encoded string is a multiple of 4 characters.

To encode data in Base64, each group of 3 bytes of data is split into 4 groups of 6 bits, which are then represented by the corresponding Base64 character. If the input data is not a multiple of 3 bytes, padding is added at the end to ensure that the final group of 6 bits is fully represented by a Base64 character.

To decode Base64-encoded data, the process is simply reversed, with each group of 4 Base64 characters being converted back into 3 bytes of data.
To learn more about Base64, please visit Base64 Wikipedia page.



How Base64 Encoding Works?

Let's say we have the string "Hello, world!". To encode this string in Base64, we would first convert it to its corresponding ASCII values, which are:
72 101 108 108 111 44 32 119 111 114 108 100 33

Next, we group these values into sets of 3 bytes:
72 101 108 | 108 111 44 | 32 119 111 | 114 108 100 | 33

Each set of 3 bytes is then split into 4 groups of 6 bits, which are represented by the corresponding Base64 characters:
TWFu | bGVs | bG8= | d29y | bGQh

Finally, we concatenate these Base64-encoded groups to form the final encoded string:TWFubGVsbG8=d29ybGQh

So the Base64-encoded version of "Hello, world!" is TWFubGVsbG8=d29ybGQh.


© Toolify 2021. All Rights Reserved.