Encoding converters
Binary to Base64
Convert binary to Base64 online: paste bits (0s and 1s, spaced or continuous) and get Base64 back, with byte counts, bit totals and a precise error when a group is not 8 bits long. Works both directions. 100% in your browser.
The mirror of Base64 to Binary: paste 1s and 0s — spaced per byte or one continuous run — and get the Base64 encoding back, with a hex cross-check and a ready-to-use Data URI in the same panel. Invalid characters and incomplete final groups are reported at their exact position, so coursework and debugging sessions both end with answers, not guesses. Everything happens in your browser.
How to use
Binary to Base64, step by step
- 01
Type or paste the bits — spaces between groups are optional and are cleaned up automatically, so "01001000 01100101", "0100100001100001" and one-bit-per-line input all work. Press Insert example to see it filled in.
- 02
Read the Base64 output — with a spaced hex cross-check and a ready-to-paste data URI of the same bytes, so you can drop the binary straight into HTML, CSS or an inline tag if you need to.
- 03
If a group is not exactly 8 bits (or the paste contains a stray character), the tool tells you which character and at what position instead of quietly producing garbage.
FAQ
Frequently asked questions
No. Separators are purely cosmetic: continuous bits are regrouped into bytes automatically. Spaces, underscores, commas and line breaks are all accepted, and the tool tolerates a 0b prefix on a group — so output from virtually any textbook, calculator or programming exercise works as-is.
You get a precise error, not padding surprises: the message counts the total bits and the leftover bits in the final group, and you decide — trim the stray bits or pad the last group with 0s. Silent zero-padding would corrupt the final byte without telling you.
Two reasons stacked: 8 bits become roughly 1.33 Base64 characters (the classic 33% overhead), and binary text is read as characters first, then packed into bytes — 8 binary characters become just 1 real byte. An 80-character binary lesson example becomes 10 bytes — about 16 Base64 characters.
Yes — that is the Base64 to Binary tool next door, which answers with the 8-bit groups alone (hex has its own dedicated page). The two tools are exact mirrors of each other.
No. The conversion is JavaScript running on the page: the parser walks your bits, packs bytes and Base64-encodes them locally. Close the tab and it is gone — there is no server involved at any point.
Related tools