Text to binary converter
Type or paste text and this tool shows the binary code for each character.
Results
Enter your values to see the result.
About this tool
Each byte is written as eight digits, separated by spaces. It is useful for learning how text is stored, for puzzles and for programming exercises.
- How it is calculated
- the text is turned into bytes with UTF-8 and each byte is written as 8 binary digits. Plain English letters take one byte each; other characters take two to four.
- Worked example
- With Text: Hi!, the result is: Binary: 01001000 01101001 00100001; Size in bytes: 3.
- Good to know
- The text is turned into bytes with UTF-8, and each byte is written as eight binary digits. Plain English letters take one byte each, and other characters, such as accented letters and emoji, take two to four bytes.
Frequently asked questions
Why do some characters give more than eight digits?
Characters outside basic English need more than one byte in UTF-8. An accented letter takes two bytes and an emoji takes four.
How is the letter A written in binary?
It is 01000001, which is the number 65. Every letter has its own number in the character table.