01
Runs in your browserNothing is uploadedDeveloper

Text to Binary

Convert text to binary, hexadecimal or decimal bytes using UTF-8, or turn those codes back into readable text.

Loading tool…
Short answer

Text to Binary converts text into binary, hexadecimal or decimal byte values using UTF-8, and converts those codes back into text. Accents and emoji work because each character is turned into its real UTF-8 bytes first.

How is text stored as binary?

Bytes and UTF-8

Computers store text as bytes, each eight bits from 00000000 to 11111111. UTF-8 decides which bytes stand for which character: plain English letters take one byte, so H is 01001000, while accented letters take two and emoji four.

Why use Text to Binary?

  • Three formats. Binary, hexadecimal and decimal bytes, each separated by spaces.
  • Flexible decoding. Bytes can be separated by spaces or commas, or run together in groups of eight bits or two hex digits.
  • Clear errors. Incomplete bytes and invalid digits are pointed out instead of producing gibberish.

How to use Text to Binary, step by step

Text to Binary in PrintxPDF with a file loaded, options on the right and the run button below
Text to Binary with a file loaded: the steps below follow this screen.
  1. Type text or codes into Text to Binary. Words to encode, or binary or hex to decode.
  2. Choose the direction and format. Binary, hexadecimal or decimal.
  3. Copy the result. It updates as you type.

Frequently asked questions

Why is one emoji 32 bits?

Emoji take four bytes in UTF-8, and each byte is eight bits.

Is this the same as ASCII?

For plain English letters, digits and punctuation, UTF-8 and ASCII give identical bytes. UTF-8 also covers every other character.

Can it decode binary that is not text?

If the bytes are not valid UTF-8 text, it says so rather than showing broken characters.

Looking for the long version? The guides cover each of these jobs in depth.