Binary Code Translator

Convert text to binary or decode binary bytes back to text. The tool uses UTF-8 and runs in your browser.

01 · Input

Text

02 · Result

Binary

Quick start

How to use this binary code translator

01

Enter text or bits

Type a message in the left box. To decode, press the direction button and paste groups of 0s and 1s.

02

Check the format

Text becomes eight-bit UTF-8 bytes. Binary input may have spaces or line breaks, but must contain complete bytes.

03

Copy the result

Read any error under the boxes, then use Copy to take the converted text or bit sequence.

01 · Encode

Text to binary converter

Type a word or sentence above. Each UTF-8 byte becomes eight digits. For example, capital A is 01000001. Spaces between byte groups make the result easier to read, but do not change the data.

Try a short example first

Enter Hi to get 01001000 01101001. The first group represents H; the second represents i. An ordinary space in your message is also a byte: A B contains 01000001 00100000 01000010. Use the Copy button when you need the full sequence.

What the tool writes for three short inputs
InputOutputWhy
A01000001One ASCII-range byte
Space00100000A space is data too
é11000011 10101001Two UTF-8 bytes
02 · Decode

Binary to text converter

Use the direction button to paste 0s and 1s. The decoder accepts spaces and line breaks between bits, then reads the stream as groups of eight. It reports incomplete groups, nonbinary characters and byte sequences that are not valid UTF-8.

How to check a binary message

Paste 01001000 01101001 or 0100100001101001; both decode to Hi. If nothing appears, read the message under the boxes. A count that is not divisible by eight leaves a partial byte. A digit other than 0 or 1 is not binary input. A complete set of bytes can still fail if it is not valid UTF-8.

Use the status message to locate a bad input
Input problemWhat to check
Partial byteCount the bits after removing spaces; the total must be divisible by eight.
Other charactersRemove any character that is not 0, 1 or whitespace.
Invalid UTF-8Complete bytes may belong to another format or may not represent text.
03 · Encoding

Why UTF-8 matters

A character is not always one byte. Accented letters and emoji can use multiple UTF-8 bytes, so a one-character result may contain several eight-bit groups. This tool converts text encoding; it does not decrypt data or interpret arbitrary executable files. See Unicode's explanation of UTF-8.

For example, é becomes 11000011 10101001: two bytes for one displayed letter. Basic ASCII characters use the same byte values in UTF-8, but an ASCII-only decoder cannot represent every character that this tool accepts. If a different site used another encoding or seven-bit groups, first identify that format rather than adding zeroes and assuming the text will decode correctly.

FAQ

Binary code translator questions

Can I paste binary without spaces?

Yes. Whitespace is ignored, so continuous bits and eight-bit groups work alike.

Why does a binary string fail to decode?

It may have a partial byte, a character other than 0 or 1, or bytes that do not form valid UTF-8 text.

Is this the same as ASCII?

ASCII characters have the same single-byte values in UTF-8. Other characters may need more than one byte.

Can this decode a binary number or a file?

The reverse tool reads groups of eight bits as UTF-8 text. A binary number may represent a quantity rather than a character, and file bytes may not be text at all. This page cannot infer those meanings from the bits alone.