TOP

Free exact browser converter

Base64 to Binary Converter

Decode Base64 or Base64url into 8-bit binary groups. Keep leading zero bytes and download the original binary data as a .bin file.

No signupRuns locally in your browser

Interactive tool

Convert Base64 to Binary

Ready

Output format

Choose a clear output representation.

Detailed conversion guide

How to Convert Base64 to Binary

Base64 stores bytes using a 64-character alphabet. Decode the original bytes first, then write each byte as eight bits. QQD/ becomes 41 00 FF in hex, so the middle group is eight zeros.

Use 8-bit groups to see byte boundaries, or choose continuous bits for compact copying. Download .bin saves the raw bytes of the displayed result. Download Output saves the readable bit string as text.

InputOutputMeaning
QQD/01000001 00000000 11111111Three bytes, including zero and 255
AA==00000000One zero byte
_w11111111Unpadded Base64url

Show Base64 Bytes as Bits in JavaScript

This example starts with known valid standard Base64. The tool also validates padding and supports Base64url.

const raw = atob("QQD/");
const bits = Array.from(raw, byte => byte.charCodeAt(0)
  .toString(2).padStart(8, "0")).join(" ");

Raw Bytes, Padding, and Invalid Input

A binary byte can contain any value from 0 to 255, including values that are not valid UTF-8. Use the binary download to recover the original data without text decoding.

Remove a data URL header before pasting the payload. The converter rejects mixed alphabets, misplaced equals signs, impossible lengths, and nonzero padding bits. For example, AA== is valid; AB== is not.

Related converters

Choose the conversion that matches the representation you have.

Advertisement

Sponsored link