A free online tool to encode your string by using this tool
Our base64 encode free tool is an easy and user-friendly online platform for Base64 encoding any binary or text data.
Start by typing or copying any string into the input textarea. The programme will instantly encode the data into Base64 format. Once the input is encoded, you may click on the output textarea to copy the encoded data.
With our Image to Base64 conversion tool, you may also convert an image to Base64 encoded data.
The website also provides various tutorials and articles about Base64 encoding in our blog section and how to Base64 encode any binary or text data in different programming languages as Java, Go, PHP, Python, and Javascript.
Any binary or text data may be converted into a readable ASCII string format using base64 encoding.
It is necessary to properly send binary data over a transfer procedure that does not help binary data accurately.
Remember that, Base64 is neither an encryption or compression method. It is an encoding scheme that converts binary data like image or file to the ASCII character set.
It is called Base64 because it works with a subset of 64 characters from the ASCII character set. These symbols contain the upper- and lowercase letters (A-Za-z), the numerals (0–9), plus (+), and minus (–).
These 64 characters define the Base64 alphabet. Note that, the Base64 encoding scheme also uses an extra 65th character = as pad character.
Value | Base64 | Value | Base64 | Value | Base64 | Value | Base64 |
---|---|---|---|---|---|---|---|
0 | A | 17 | R | 34 | i | 51 | z |
1 | B | 18 | S | 35 | j | 52 | 0 |
2 | C | 19 | T | 36 | k | 53 | 1 |
3 | D | 20 | U | 37 | l | 54 | 2 |
4 | E | 21 | V | 38 | M | 55 | 3 |
5 | F | 22 | W | 39 | N | 56 | 4 |
6 | G | 23 | X | 40 | o | 57 | 5 |
7 | H | 24 | Y | 41 | p | 58 | 6 |
8 | I | 25 | Z | 42 | q | 59 | 7 |
9 | J | 26 | a | 43 | r | 60 | 8 |
10 | K | 27 | b | 44 | s | 61 | 9 |
11 | L | 28 | c | 45 | t | 62 | + |
12 | M | 29 | d | 46 | u | 63 | / |
13 | N | 30 | e | 47 | v | ||
14 | O | 31 | f | 48 | w | (pad) | = |
15 | P | 32 | g | 49 | x | ||
16 | Q | 33 | h | 50 | y |
Base64 encoding requires multiple phases. Yet it's actually very easy. Here's how it performs:
1.the input into 8-bit bytes
2.Regroup the input into groups of six bits.
3.Determine the 6-bit groups' decimal values.
4.Find the character that corresponds to the decimal values using the Base64 alphabet table.
5.If an integral number of 6-bit groups cannot be formed from the input, one or two pad characters are appended to the output under the following circumstances:
5.1 Add 4 zero bits to the input if the last group has 2 bits in it.
5.2 Add two zero bits to the input if the last group has four bits or more.
The Base64 output is appended with two pad characters (=) in the first case and with one pad character (=) in the second.