Skip to content
toolsdocks

Text to Binary Converter

Type or paste text and get its bytes as binary. This page opens the encoder and decoder set to Binary and Encode; the text is encoded as UTF-8 and every byte is written as 8 bits.

Runs on your device

More options in the full Encoding toolkit.

Loading tool…

How to use it

  1. Type or paste your text.
  2. Leave Encoding on Binary and Direction on Encode (preselected here).
  3. Read the binary in the output box.
  4. Copy it or download it as a .txt file.

Worked example

Hi becomes 01001000 01101001. The letter é takes two UTF-8 bytes, C3 and A9, so it becomes 11000011 10101001.

Formats and limits

InputText
OutputBinary
EngineTextEncoder/TextDecoder with strict validation

Limitations

  • The output is always 8 bits per byte with a space between bytes.
  • Text with a lone surrogate (half of an emoji) cannot be encoded and is reported.

Questions

Why does one emoji give four groups?

An emoji takes four bytes in UTF-8, so it becomes four 8-bit groups. Accented letters such as é take two bytes and give two groups.

Can I get 7-bit ASCII instead?

ASCII characters are written with a leading 0 in the 8-bit form, for example 01000001 for A. Drop that first digit if your task needs 7 bits.

Is my text uploaded?

No. The text is processed in your browser and nothing is uploaded.

Privacy

Runs on your device. Files and text are processed in this browser tab and are not uploaded.

This page opens the Encoding toolkit ready for this task. See the privacy policy for how toolsdocks handles data.