Text to Binary Converter

Type text to see its bytes in binary, hexadecimal, decimal or octal, or type those bytes to read the text back. The text is counted in UTF-8, the way the web and most files store it.

Free Runs in your browser Checked Tuesday, November 10, 2026

The text to convert, or the bytes to read. When reading, spaces, commas and 0x or 0b prefixes are ignored.

Separator between bytes

Result

Bytes — The UTF-8 bytes of the text, or the number of bytes that were read.
Check —
Result

This tool runs in your browser. What you enter is not sent to us.

How to use it

  1. Type the text, or the bytes, into Text or bytes.
  2. Choose the direction and the base in Conversion, for example Text to binary.
  3. Pick the Separator between bytes. With None, decimal and octal values get three digits, so the result can be read back.
  4. If Check shows a message in red, the position it gives is where the first problem is.

Text is bytes, not letters

A computer stores text as bytes. This page uses UTF-8, the encoding of the web (RFC 3629), in which an ASCII letter takes one byte and other letters take more. The Turkish letter ç takes two bytes: 11000011 10100111 in binary, or C3 A7 in hexadecimal.

ç  →  U+00E7  →  UTF-8 C3 A7  →  binary 11000011 10100111

The four bases

  • Binary: 8 digits, 0 or 1, for each byte. The letter A is 01000001.
  • Hexadecimal: 2 digits, 0 to 9 and a to f, for each byte. The letter A is 41.
  • Decimal: a number from 0 to 255 for each byte. The letter A is 65.
  • Octal: 3 digits, 0 to 7, for each byte. The letter A is 101.

What reading refuses

  • A digit that is not in the base, such as 2 in binary.
  • A decimal or octal value above 255, which is not one byte.
  • An incomplete byte, such as seven binary digits.
  • Bytes that are not valid UTF-8, such as the single byte 11111111.

Worked example: ç

The letter ç has the code point U+00E7, which is 231 in decimal. In UTF-8 it takes two bytes, C3 and A7, which are 195 and 167 in decimal.

The text Hi ç takes five bytes: 48 69 20 C3 A7 in hexadecimal.

Conversion Result for ç
Text to binary 11000011 10100111
Text to hexadecimal c3 a7
Text to decimal 195 167
Text to octal 303 247

Frequently asked questions

Why does ç take two bytes?

Every letter outside ASCII takes two or more bytes in UTF-8. ç is U+00E7, which needs the two bytes C3 and A7. The letters A to Z take one byte each, so the byte count differs from the character count.

What is the difference between hexadecimal and binary here?

Both write the same bytes. Binary uses 8 digits for each byte and hexadecimal uses 2, so hexadecimal is shorter and is common in memory dumps and network traces.

Why are decimal numbers written with three digits when there is no separator?

Without a separator, 195167 could be read in several ways. So when the separator is None, every decimal and octal byte gets three digits. With a space or a comma, the numbers stay as they are.

Can I convert a file to binary here?

The page works on text. Paste the text of the file. Reading files whose bytes are not text is not supported, because the result would not be readable.

Is my text sent anywhere?

No. The conversion runs in your browser, and nothing is uploaded or stored.

Sources

Figures and text last checked on Tuesday, November 10, 2026.

We use necessary cookies to run the site. With your consent, Google also uses advertising cookies to show personalised ads. If you reject them, you still see ads, but they are not personalised.