Developer

Text to Binary Converter (and Binary to Text)

Translate text to binary, hex, decimal or octal and back again. Handles UTF-8, accents and emoji, entirely in your browser.

Text is encoded as UTF-8, so accented letters, symbols and emoji become two to four bytes each. Plain English letters are one byte.

Everything runs in your browser. Your input is not uploaded to a server.

About the Text to Binary

Computers store every character as numbers, and this tool shows you exactly which ones. Type text to see its binary, hexadecimal, decimal or octal bytes, or paste bytes to read the message back. Encoding is UTF-8, the encoding of the modern web, so accented letters and emoji work too. Nothing is uploaded; it all runs in your browser.

How to use the Text to Binary

  1. Choose “Text → code” or “Code → text”.
  2. Pick binary, hex, decimal or octal.
  3. Type or paste your input; the result updates as you type.
  4. Copy the result. When decoding, separate bytes with spaces or commas — binary may also be pasted as one unbroken run of 8-bit groups.

The formula behind it

Each character is converted to its UTF-8 bytes. ASCII letters are one byte: “A” is 65, which is 01000001 in binary and 41 in hex.

Frequently asked questions

What is “Hello” in binary?

01001000 01100101 01101100 01101100 01101111 — five bytes, one per letter.

Why is a byte 8 bits?

Eight bits give 256 possible values (0–255), enough for the original ASCII set and a convenient unit for hardware. Binary output is padded to 8 digits so bytes line up.

What happens with emoji and accents?

They are encoded as two to four UTF-8 bytes. “é” becomes two bytes (11000011 10101001) and most emoji become four.

Why do I get an error when decoding?

Each token must be a valid byte in the chosen system (binary digits only for binary, values 0–255), and the bytes together must form valid UTF-8 text.

Is ASCII the same as UTF-8?

For English letters, digits and punctuation, yes: ASCII is the first 128 values of UTF-8, so the output is identical.