Skip to content
🔢

Binary To Text

Convert binary code back to readable text instantly.

Runs in your browser

Updated

Every group is read as base two

The input is trimmed and split on any run of whitespace, then each group is converted with parseInt in base 2 and turned into a character with String.fromCharCode. Nothing is validated, so the page behaves like a decoder rather than a checker. Leading zeros are optional: "1001000 1101001" gives the same two letters as "01001000 01101001".

A worked example

Six groups, "01001000 01100101 01101100 01101100 01101111 00100001", decode to "Hello!" from 53 characters of input. Drop the last group and the result is "Hello". A nine-digit group is legal too: "100000000" is 256, so the output is a single character from outside the Latin-1 range.

Bad input fails quietly

parseInt returns NaN for anything unreadable, and String.fromCharCode turns NaN into a null character, so pasting prose is the worst case: the word "Hello" becomes one invisible character that looks like an empty result. A group that starts with digits and then breaks, such as "01001000x", is accepted up to the x and still yields H. A "0b" prefix is not stripped, so "0b01001000" evaluates to zero.

Not a byte stream

The output is assembled from UTF-16 code units, so sixteen-digit groups only make sense when this tool produced them. Binary taken from a file or a UTF-8 encoder is byte-oriented, and any value above 127 shows as a different character than the file's own reader displays: é is stored as two bytes, 11000011 10101001, and this page returns two characters rather than one.

Where it stops

  • No validation line, so an unreadable group is silent apart from the invisible null it produces.
  • No separator options and no bitstream mode; a continuous run of digits becomes one enormous number.
  • No file input, no hexadecimal or octal input and no choice of character encoding.
  • Values above 255 are accepted, so the result is not limited to bytes.

Questions people ask

Why does the output look blank?

It is probably a null character, which has no visible width. Retype the input as groups of eight bits and check it against the text to binary page.

Can I convert other bases here?

Only base two. The number base converter handles decimal, octal and hexadecimal, and the morse code translator covers dots and dashes.