How to use it
- Type or paste your text.
- Leave Encoding on Binary and Direction on Encode (preselected here).
- Read the binary in the output box.
- 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
| Input | Text |
|---|---|
| Output | Binary |
| Engine | TextEncoder/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.