Text to Binary Converter

Translate text into binary code — the ones and zeros computers actually store — or paste binary and decode it back to text. Conversion uses UTF-8, so any character works.

text-binary · runs locally

What this text to binary converter does

Everything a computer stores — this sentence included — is ultimately a sequence of bits. A text to binary converter makes that visible: it encodes your text as UTF-8 bytes and prints each byte as eight binary digits. The reverse mode reads groups of bits and decodes them back into characters, which is handy for classroom exercises, puzzle hunts and CTF challenges where messages are hidden in binary.

Because the tool works at the byte level with real UTF-8, it handles every character correctly — including emoji and non-Latin scripts that simpler ASCII-only converters mangle.

How to convert text to binary

  1. Choose the direction: Text → Binary or Binary → Text.
  2. Type or paste your input.
  3. Click Convert and copy the result.

A worked example

The word Hi is two ASCII characters: H is decimal 72 and i is decimal 105. In binary those bytes are 01001000 and 01101001 — exactly what the converter outputs. Try decoding that pair in the other direction to confirm the round trip, then compare the same text in the Base64 converter to see how different encodings represent identical bytes.

Frequently asked questions

How does text become binary?

Each character is first mapped to one or more bytes using a character encoding — this tool uses UTF-8, the web standard. Each byte is then written as eight binary digits. The letter H is byte 72, which is 01001000 in binary.

Why do some characters produce more than one byte?

UTF-8 is variable-width: basic ASCII letters use one byte, accented characters typically two, most CJK characters three, and emoji four. That is why a single emoji converts to four groups of eight bits.

What format does the binary decoder accept?

Groups of ones and zeros separated by spaces or line breaks, ideally 8 bits per group. Shorter groups are padded from the left, so 1001000 is read as 01001000.

Is binary the same as Base64 or hexadecimal?

They are all ways of writing the same underlying bytes. Binary shows each bit, hexadecimal compresses 4 bits per character, and Base64 packs 6 bits per character. Binary is the most literal and the most verbose of the three.