Skip to content

Binary Text Converter

Convert text to binary, hex, decimal or octal byte values and back again. UTF-8 based, with automatic input detection, a choice of separators and one-click copy.

  • Free, no sign-up
  • Runs in your browser
  • Developer
Text or byte values separated by spaces, commas or line breaks. Prefixes 0x, 0b and 0o are accepted. Up to 200,000 bytes; your text never leaves your browser.
Separator between bytes

Read the guide How Binary Code Represents Text: ASCII and UTF-8 Explained

How to use the binary converter

  1. Type or paste your input. It can be plain text or byte values such as 01001000 01101001, 48 69 or 72 105.
  2. Leave From on Auto-detect, or pick the input format yourself if the guess is wrong.
  3. Choose the output format under To and, for byte values, a separator: space, none or comma.
  4. Press Copy result, or Use result as input to reverse the conversion and check the round trip.

The result updates as you type. If you paste binary while the output is also set to binary, the output switches to text automatically, because that is almost always what you want.

Your text stays on your device

Everything is converted in your browser. Nothing you type is sent to our server.

How the conversion works

Computers store text as bytes. This tool uses UTF-8, the encoding used by almost every website and modern program. Each character becomes one to four bytes, and each byte is a number from 0 to 255. That number can then be written in different bases:

  • Binary (base 2): always 8 digits per byte, such as 01001000.
  • Hex (base 16): 2 digits per byte, such as 48.
  • Decimal (base 10): 0 to 255, such as 72.
  • Octal (base 8): 3 digits per byte, such as 110.

Worked example

The text Hi is two bytes. H is 72 and i is 105, so the outputs are:

  • Binary: 01001000 01101001
  • Hex: 48 69
  • Decimal: 72 105
  • Octal: 110 151

Accented letters take more space. Café is five bytes in hex, 43 61 66 C3 A9, because é is stored as the two bytes C3 and A9 (11000011 10101001 in binary).

Reading byte values

Values can be separated by spaces, commas, semicolons or line breaks. Binary, hex and octal can also be pasted without separators, as long as every byte has its full width (8, 2 or 3 digits). Prefixes such as 0x, 0b and 0o are removed for you. Decimal values always need a separator, so the tool keeps spaces between them even when you choose None.

Good to know

  • Auto-detect checks for binary first, then decimal, then hex. Octal is only detected with the 0o prefix because it looks just like decimal, so choose it by hand.
  • A word like cafe is valid hex, but without any digits it is treated as text. Pick Hex under From if you really mean bytes.
  • If the bytes are not valid UTF-8, the tool says so instead of showing broken characters. Such data is usually part of a binary file rather than text.
  • The limit is 200,000 bytes, which keeps the binary output small enough for a browser text box.

Frequently asked questions

How do I convert binary to text?

Paste the binary into the input box. Auto-detect recognizes it and the output switches to text. Groups of 8 digits can be separated by spaces or written together without gaps.

Why does one character become several bytes?

UTF-8 stores the basic English letters, digits and symbols in one byte each. Accented letters usually need two bytes, most other scripts two or three, and emoji four. This is what lets one encoding cover every language.

What does "not valid UTF-8" mean?

Not every sequence of bytes is valid UTF-8 text. For example, a byte like C3 must be followed by a continuation byte, and FF never appears in UTF-8 at all. The tool reports this instead of guessing, and you can still convert the bytes to another number format.

Is binary code a way to encrypt a message?

No. Binary, hex and decimal are just different ways of writing the same bytes. Anyone can convert them back in seconds, so they do not hide anything.

Is my text sent anywhere?

No. The conversion runs entirely in your browser and your text stays on your device.