Binary to Text Converter

Decode binary to text, or turn text into binary.

Options

Examples

Accepted input

Spaces, commas, |, dashes, line breaks and 0b prefixes all work. A run with no spaces is split every 8 digits. 7-bit ASCII from textbooks also works: 1001000 1101001 is “Hi”.

Plain text switches the tool to To Binary. The output keeps the layout you pasted: decode binary with no spaces and No spaces turns on for the way back. The Byte by byte view shows each character next to its bytes.

Questions

Why are there spaces between groups of 8 digits?

Each group of 8 is one byte, and spaces between bytes make binary easier to read. Decoding accepts any spacing, including new lines, or none at all.

Why does one character sometimes take more than 8 digits?

Text is encoded as UTF-8. "A" is one byte (8 digits), "€" is three (24 digits) and most emoji are four (32 digits).

Why do I get an error decoding my binary?

Spacing never causes one. The error names the real problem: a character that isn't 0 or 1 (with its line and column), a group of 5 digits or fewer, digits that don't split into whole bytes, or bytes that aren't valid UTF-8 (usually part of an emoji was cut off).

Is this the same as ASCII binary code?

For plain English text, yes. ASCII is part of UTF-8, so the bytes are the same. The difference only shows with accented letters, other scripts and emoji, which this tool encodes as UTF-8.