Switch language: Simplified Chinese
base64 decoding/base64 encoding online
Decode Base64 and encode it quickly and easily. Base64 encodes data in an easy way, or decodes it into a human-readable format.
- Text
- File
Original characters:
Encoded characters:
Base64 encoding requires that 3 8-bit bytes (3 * 8 = 24) be converted into 4 6-bit bytes (4 * 6 = 24), and then two are added before the 6 bits to form an 8-bit word. If the remaining characters are less than 3 bytes, they are filled with 0, and the output characters use'=', so 1 or 2'=' may appear at the end of the output text after encoding.
Text content | M | a | n | |||||||||||||||||||||
ASCII | 77 | 97 | 110 | |||||||||||||||||||||
Bit pattern | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 |
Index | 19 | 22 | 5 | 46 | ||||||||||||||||||||
Base64-Encoded | T | W | F | u |