Developer tools TOOL
Text ↔ binary
Convert between text and binary UTF-8 bytes.
Enter your text
On-device processingText ↔ binary · How to use
Convert between text and binary UTF-8 bytes.
Example
A → 01000001
Things to know
Displays UTF-8 bytes in binary. Korean characters and emoji use multiple bytes.
Output options
Your files and results are never sent to a server. Everything is processed in this browser.
How to convert text to binary and back
Show students which bits a computer actually stores for each character, or decode a puzzle written in 0s and 1s. Every byte is padded to eight digits and separated by a space, so the bits are easy to count.
When to use this tool
- Demonstrate character encoding in a computer science class
- Decode a puzzle message written in binary
- Check how many bits an emoji really uses
- Turn a bit sequence from an example back into text
Step-by-step instructions
- Enter the text or binary you want to convert.
- Under Operation, choose Encode to turn text into binary or Decode to turn binary back into text.
- Choose Convert.
- Copy the result or download it as text-binary.txt.
Frequently asked questions
Why does é produce 16 binary digits instead of 8?
UTF-8 stores é in two bytes: 11000011 10101001. Plain ASCII letters use a single byte, so A becomes just 01000001, while many Asian characters use three bytes and most emoji use four.
How should I separate binary input for decoding?
Separate bytes with spaces, line breaks, or commas. Each group may have one to eight digits, so a long unbroken bit string must be split every eight digits first.
Why does decoding fail with an error?
Decoding fails if the input contains characters other than 0 and 1, or if the bytes do not form valid UTF-8. A common cause is pasting only part of a multi-byte character. To change the base of a single number, use the number base converter.