Base64 Encode / Decode
Encode text to Base64, or decode it back.
Turn text into its 0 and 1 representation.
Binary encoding converts text into 0/1 sequences: each character becomes 8 bits of UTF-8. Encode: text to 8-bit binary, space separated Decode: 8-bit groups to text
Every byte is exactly eight bits separated by a single space, so the output length is predictable: bytes times nine, minus one.
Text goes through UTF-8 first, so one Chinese character occupies 24 bits in three groups.
Short values are left-padded to eight bits — you will never see a group like 101, which is what lets the decoder validate strictly.
Type the text
Converted to UTF-8 bytes, then written out as eight bits per byte.
Copy the output
A space-separated 0/1 string. Watch out for editors that soft-wrap and insert line breaks.
Decode back
Paste it into Binary decode, which requires every group to be exactly eight bits.
A byte is eight bits, and left-padding keeps the width fixed. Variable-width output would leave the decoder unable to find group boundaries.
In UTF-8 a common Chinese character is three bytes — 24 bits, three groups of eight. That comes from the encoding, not from padding.
Encode text to Base64, or decode it back.
Produce URL-safe Base64 without padding characters.
Encode or decode text using the Base32 alphabet.
Encode or decode numbers and text in Base36.
Encode or decode with Base58, the alphabet Bitcoin addresses use.
Turn a binary string back into readable text.