Loading tool...
How to Convert Base64 to Binary - Step by Step Guide
Paste Base64 Data
Start by pasting your Base64 encoded data into the input area.
Automatic Conversion
About a second after you stop typing, the tool decodes your Base64 and shows every byte as 8 bits of 0s and 1s. If the input is not valid Base64, you get the first bad character with its line and column instead.
Copy or Download Result
Once converted, you can copy the binary output to your clipboard or download it for use in debugging and analysis.
What is Base64 to Binary Conversion?
Base64 to Binary conversion decodes Base64 encoded data and displays it in binary format (0s and 1s). This is useful for debugging, understanding data structure, and low-level data analysis.
The page decodes the Base64 with the browser's atob() function, then writes each byte as an 8-digit binary number, padded with leading zeros, so 5 (byte 53) becomes 00110101.
When to Use Base64 to Binary
Frequently Asked Questions
How do I convert Base64 to Binary?
Paste the Base64 string into the left panel. About a second after you stop typing, each decoded byte appears on the right as a group of 8 bits, separated by spaces. NUcgVG93ZXI= (the Sample) is the text "5G Tower", so the first group is 00110101, the byte for the digit 5.
Why does one character turn into several 8-bit groups?
The output shows bytes, not characters. Plain English letters take one byte each, but text is usually stored as UTF-8, where é takes 2 bytes and an emoji like 😀 takes 4. So José 😀 decodes to 10 groups, not 6.
Which kinds of Base64 can I paste?
Standard Base64 with or without = padding, the URL-safe variant with - and _ (used in JWTs and many APIs), Base64 wrapped over several lines (MIME, PEM), a data:...;base64, prefix and a value still inside its quotes. If something is wrong, the error names the first bad character with its line and column, or says the string looks cut off.
Can I get the original file back instead of 0s and 1s?
This page shows the bits as text, which is handy for reading and debugging. To save the decoded bytes as a real file (an image, a PDF, a ZIP), use Base64 to File. To turn a string of 0s and 1s back into Base64, use Binary to Base64.
Is my data uploaded anywhere?
No. Decoding runs in your browser, nothing is sent to our server, and nothing is kept after you leave the page. Keep in mind that Base64 is only an encoding, not encryption: anyone who has the string can decode it.
Is this converter free?
Yes, it's free and you don't need an account. Every byte becomes 9 characters of output, so a large input gives a very long result that can take a moment to show in the editor.
Related Tools
Hex to Base64
Convert hexadecimal data to Base64 encoded strings for APIs and data transmission
Base64 to Hex
Decode Base64 encoded strings to hexadecimal format for cryptography and binary data
Binary to Base64
Encode binary data (0s and 1s) to Base64 format for data transmission
ASCII to Base64
Encode ASCII text to Base64 format for embedded systems and protocols
Base64 to ASCII
Decode Base64 to ASCII text for legacy systems and serial communication
UTF-8 to Base64
Encode UTF-8 text to Base64 with international characters and emojis