TextArray
100% local

Binary to text and back

Convert text to binary code and binary back to text, bit by bit.

Input
Output

Binary to text and back

Binary is how a computer actually stores text: every character becomes one or more bytes, and every byte becomes eight bits. Paste a sentence to see the zeros and ones behind it, or paste a string of binary and read the message back out. The direction is chosen for you — input made only of 0s, 1s and separators is decoded, anything else is encoded — and the result updates as you type.

Auto-detection is a guess, and one case is genuinely ambiguous: a digit string like 1010 is read as code and decodes to a character. If you meant the four digits themselves, set the direction to text to code and you get their binary instead. That is what the direction selector is for.

The separator shapes the output. A space between bytes is the readable default and what most binary translators produce. No separator gives the unbroken bit string used in file formats and protocol documentation. A custom separator takes whatever you type — a comma, a dash, or \n to put one byte per line. Switch the base to octal and each byte becomes three digits from 000 to 377, the notation behind chmod, older Unix tooling and \nnn escapes in C strings. UTF-8 covers every character, so an accented letter costs two bytes and an emoji four; ASCII is the strict 7-bit set and refuses anything above code 127 rather than quietly writing the wrong bytes.

Reading code back is deliberately tolerant, because real binary arrives messy. Whitespace and line breaks are ignored, 0b and 0o prefixes are dropped, and a seven-digit group is padded back into a byte. Stray letters are reported instead of skipped, so a corrupt paste never answers with a plausible wrong word. Everything runs in your browser and nothing is uploaded.

FAQ

Why does 1010 turn into a letter instead of binary?
Because a string of only 0s and 1s looks exactly like code, auto-detection decodes it. Set the direction to "Text to code" and you get the binary for the digit characters themselves.
What is the difference between UTF-8 and ASCII here?
UTF-8 encodes every character, using one byte for plain ASCII, two for an accented letter and four for an emoji. ASCII only covers codes 0-127, so anything above that is reported as an error rather than converted into misleading bytes.
Which binary formats can it read?
Spaced bytes, an unbroken bit string, 0b-prefixed bytes, and groups split across any number of lines. Commas, dashes and pipes work as byte boundaries once you set the direction to "Code to text". A seven-digit group is padded to eight, which recovers the output of translators that drop leading zeros.
What is octal mode for?
Octal writes each byte as three digits from 000 to 377. You will meet it in Unix file permissions, in \nnn escape sequences inside C and shell strings, and in older dumps where three digits per byte were more compact than eight.
Is my text uploaded anywhere?
No. The conversion runs entirely in your browser and your text never leaves your device.