Back to home

Text to Binary Converter

Type text to see its bytes in binary, hex, decimal or octal, or code points. Switch to decode to turn numbers back into text.

  1. Choose Encode or Decode
  2. Pick the number format
  3. Copy the result
Loading the tool...

Your files never leave your device

Encoding and decoding text

Computers store text as numbers, and this tool shows those numbers in the form you choose. In Encode mode, type text and see its bytes as binary, hexadecimal, decimal or octal, or see the Unicode code point of each character. In Decode mode, paste the numbers and read the text.

A worked example

The text Hi has two bytes. H is 72 in decimal, which is 48 in hexadecimal, 110 in octal and 01001000 in binary. The letter i is 105 in decimal, 69 in hexadecimal, 151 in octal and 01101001 in binary. So Hi in binary is 01001000 01101001.

Characters outside basic Latin use more bytes. The letter e with an acute accent is the code point U+00E9 and takes two bytes in UTF-8, C3 and A9. The euro sign U+20AC takes three bytes, E2, 82 and AC.

Common mistakes

Bytes and code points are not the same thing. Bytes show how the text is stored, so the count depends on the encoding. A code point is the number of the character itself. If you want to compare how a text is stored, use bytes, and if you want to identify characters, use code points.

When decoding fails, the numbers are usually grouped wrongly. Binary should be groups of eight digits, hexadecimal should use two digits per byte, and the result must form valid UTF-8. A message tells you when the input cannot be decoded.

Frequently asked questions

Which characters are supported?

All of them. Text is encoded as UTF-8, so Arabic, Chinese and emoji work as well as basic Latin letters.

Why are some characters several bytes?

UTF-8 uses one byte for basic Latin letters and two to four bytes for other characters, so the output is longer for them.

How do I decode binary?

Choose Decode, select Binary and paste the 0 and 1 groups of eight digits. The text appears in the output box.

What if the numbers are not valid?

A message appears. Check that each number fits the chosen format and forms valid UTF-8.

What is the difference between bytes and code points?

Bytes are how the text is stored. Code points are the numbers of the characters themselves, such as U+0041 for A.

Is my text uploaded?

No. The conversion happens on your device and your text is never sent to a server.

Related tools

Save this tool to use it later

Add this page to your browser bookmarks by pressing Ctrl + D