Base64 Encode / Decode
Original Text
Base64 Result
How Base64 Encoding Works
Base64 encoding converts binary data (8-bit bytes) into ASCII characters (6-bit bytes). It is commonly used to transfer data over media that are designed to deal with textual data, ensuring that the data remains intact without modification during transport.
Example: Converting "Man" to Base64
| Text | M | a | n | |||||||||||||||||||||
| ASCII | 77 | 97 | 110 | |||||||||||||||||||||
| Bits | 01 | 00 | 11 | 01 | 01 | 10 | 00 | 01 | 01 | 10 | 11 | 10 | ||||||||||||
| Index | 19 (T) | 22 (W) | 5 (F) | 46 (u) | ||||||||||||||||||||
| Base64 | T | W | F | u | ||||||||||||||||||||