devtools

Binary to Text Converter

Convert text to binary and decode binary back to text, with correct UTF-8 handling and forgiving spacing. Clear errors on bad input, right in your browser.

Runs entirely in your browser — your data never leaves your device.

How to use Binary to Text Converter

What it does & when you need it

This tool converts text into its binary representation and back again. Every character your computer stores is ultimately a run of bits; seeing those bits makes an abstract idea concrete. It is a staple of computer-science homework, puzzle and CTF challenges, and any moment you want to demonstrate how UTF-8 actually encodes a character. Decode mode does the reverse: paste a wall of ones and zeros and read the message hidden inside.

Encoding and decoding both happen in your browser, so whatever you convert stays on your machine.

How to use

  1. Pick Encode or Decode at the top.
  2. In Encode mode, type text and read the 8-bit binary on the right. In Decode mode, paste binary and read the recovered text.
  3. Press Sample to load an example, or Upload a text file.
  4. Press Copy result or Ctrl/Cmd + Enter to copy the output.

Things worth knowing

Bytes, not characters. The tool encodes text as UTF-8 first, then shows each byte as eight bits separated by spaces. Plain ASCII is one byte per character, so Hi is two groups. Accented letters, CJK characters, and emoji take two, three, or four bytes, so a single emoji becomes several 8-bit groups.

Decoding is tolerant but strict where it counts. Spaces and line breaks between groups are ignored, so it does not matter how you paste the bits. But the input must contain only 0 and 1, and the total number of bits must be a multiple of eight — otherwise there is no clean way to split it into bytes, and the tool reports the error instead of guessing.

Not every byte sequence is text. Decode checks that the bytes form valid UTF-8. Random bits like 11111111 on their own are not a legal UTF-8 character, so decoding reports that rather than emitting a replacement glyph.

Next, try text to NATO phonetic, Base64, or Base32.

Examples

Encode a greeting

Hi

In Encode mode this becomes the two bytes 01001000 01101001.

Decode binary

01001000 01101001

Switch to Decode to turn these bits back into Hi.

Emoji spans several bytes

A 😀

Encoding shows the emoji taking four 8-bit groups after the letter A.

Frequently asked questions

How is text turned into binary?

The text is first encoded as UTF-8 bytes, then each byte is shown as eight bits separated by spaces. Plain ASCII is one byte per character, so "Hi" is two 8-bit groups. Accented letters, CJK characters, and emoji take two, three, or four bytes, so a single emoji becomes several groups.

What binary input will the decoder accept?

Decoding ignores any spaces or line breaks between groups, so it does not matter how the bits are laid out. The input must contain only 0s and 1s, and the total number of bits must be a multiple of eight — otherwise there is no clean way to split it into bytes and the tool reports an error.

Why did my binary fail to decode?

Two common reasons. Either the bit count is not a multiple of eight, so the bytes cannot be formed, or the bytes do not spell valid UTF-8 text — a sequence like 11111111 on its own is not a legal UTF-8 character. The tool tells you which problem it hit instead of guessing.

Is binary the same as ASCII?

For the characters below 128 they line up: an ASCII code like 72 for "H" is the byte 01001000. But this tool uses UTF-8, a superset of ASCII, so it also correctly encodes characters ASCII cannot represent, such as é, 世, and emoji, by using more than one byte.

Is my text uploaded anywhere?

No. Both encoding and decoding run entirely in your browser with no network request, so whatever you convert stays on your machine and the tool works offline once loaded.