UTILS.
Private by default
01

Text to Binary

Convert text to 8-bit binary and back, UTF-8 safe.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
output

About this tool

Convert text to 8-bit binary and back with full UTF-8 support, all in your browser.

Text to binary converts the text to UTF-8 bytes and prints each byte as eight 0 and 1 digits separated by spaces, so an accented letter or emoji produces several groups. Line breaks are encoded too. You choose the direction with the buttons; nothing is detected automatically.

Binary to text splits the input on whitespace and reads each group as one byte, so groups must be separated. A group may be shorter than eight digits, but anything other than 0 and 1, or a value above 255, shows an error. The bytes are then decoded as UTF-8, and invalid sequences appear as replacement characters instead of an error.

Frequently asked questions

How is non-ASCII text handled?
Text is encoded as UTF-8 first, so each character becomes one or more 8-bit bytes that round-trip correctly.
What format does the binary use?
Each byte is shown as 8 binary digits separated by spaces, which is also the format expected when decoding.
Why does decoding fail on a long string of digits?
Each group is read as a single byte, and a long unbroken run of digits is one group with a value far above 255. Put a space between every byte, for example 01001000 01101001.
Can I decode bytes that are not text?
Bytes are always decoded as UTF-8 text, so arbitrary binary data can show replacement characters instead of useful output.

More tools