Loading tool...

How to Convert Base64 to Binary - Step by Step Guide

Step 1

Paste Base64 Data

Start by pasting your Base64 encoded data into the input area.

•
Paste Base64: Copy and paste your Base64 string
•
Wrapped or URL-safe: Line breaks, a data URI prefix and URL-safe Base64 are fine
•
Try sample: Click "Sample" to test with example data
Step 2

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.

•
One group per byte: A space between bytes, so 3 bytes give 3 groups
•
Bytes, not characters: é is 2 bytes in UTF-8 and an emoji is 4, so they show up as several groups
•
Step 3

Copy or Download Result

Once converted, you can copy the binary output to your clipboard or download it for use in debugging and analysis.

•
Copy to clipboard: One-click copying for quick use
•
Download output: Save the bits as a .txt file
•
Stays in your browser: Nothing is uploaded to our server

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

•
Debugging: Inspect bit-level data structure and patterns
•
Learning: Understand how data is encoded at binary level
•
Data Analysis: Examine raw bit patterns in encoded data
•
Protocol Development: Verify encoding implementations

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.