Binary to Base64
Convert a binary digit string to Base64 and back, byte for byte. Working in hex instead? Try Hex to Base64.
Binary vs. Base64
A raw binary-digit string spends 8 characters per byte. Base64 packs three bytes into four characters, making it about 8 times more compact — which is why binary digit strings are used for teaching and debugging, while Base64 is used for actually transmitting or storing data as text.
Binary to Base64 — FAQ
How do I convert binary to Base64?+
Paste a string of 0s and 1s above (spaces are ignored). The tool groups it into 8-bit bytes and re-encodes those bytes as Base64.
Why must the binary string be a multiple of 8 digits?+
Base64 (like all byte-oriented encodings) operates on whole bytes, and each byte is 8 bits. A binary string that is not a multiple of 8 cannot be split into complete bytes.
What is the difference between binary and Base64?+
Binary represents each byte as 8 characters (0s and 1s); Base64 packs three bytes into four characters. Base64 is roughly 8 times more compact than a raw binary-digit string.
Can I convert Base64 back to binary?+
Yes — switch the direction toggle to Base64 → Binary to get the binary digit representation of the same bytes.