Online Base64 Encode and Decode

Full screen

Tool Introduction

Online Base64 encoding and decoding

This tool can encrypt all characters that can be represented by utf-8 by Base64 encoding, and can also 

restore the characters after Base64 encryption.

Base64 encoding requires that 3 8-bit bytes (3*8=24) be converted into 4 6-bit bytes (4*6=24), and then two 0s are added in front of the 6 bits to form an 8-bit word section form. If the remaining characters are less than 3 bytes, it is padded with 0 and the output character is '=', so 1 or 2 '=' may appear at the end of the encoded output text.

In order to ensure that the output encoding is readable characters, Base64 has developed an encoding table for uniform conversion. The size of the encoding table is 2^6=64, which is where the name Base64 comes from.

Base64 encoding table
code valuecharactercode valuecharactercode valuecharactercode valuecharactercode valuecharactercode valuecharactercode valuecharactercode valuecharacter
0A8I16Qtwenty fourY32g40o48w564
1B9J17R25Z33h41p49x575
2C10K18S26a34i42q50y586
3D11L19T27b35j43r51z597
4E12M20U28c36k44s520608
5F13Ntwenty oneV29d37l45t531619
6G14Otwenty twoW30e38m46u54262+
7H15Ptwenty threeX31f39n47v55363/