About Text to Binary Converter
See exactly which bits a piece of text is made of. Each UTF-8 byte becomes a group of eight ones and zeros, so the letter A is 01000001 and an emoji takes four groups. It is handy for teaching, for puzzles, and for checking bit patterns by hand.
Switch the direction to decode binary back to text. Groups can be separated by spaces, commas or new lines, carry a 0b prefix, or run together in one long string whose length is a multiple of eight.
How it works
- Your text is encoded as UTF-8, the encoding used by the web and most files, so plain English letters take one byte and other characters take two to four.
- Each byte is written in the base you choose, padded to a fixed width (two hex digits, eight binary digits, three octal digits) so the output can be read back even without separators.
- With "One number per: Character" each character becomes its Unicode code point instead, so an emoji is one number rather than four bytes.
- Reading numbers back, the tool ignores separators and common prefixes, checks every value, and decodes the bytes as UTF-8, reporting where any invalid sequence starts.
Questions
Why are some characters more than one group of eight?
The text is encoded as UTF-8 first. Basic Latin letters, digits and punctuation take one byte each, but accented letters take two, most other scripts three, and emoji four.
Can it read binary without spaces?
Yes, as long as the run is a multiple of eight digits long. Shorter groups separated by spaces, such as 1000001 without its leading zero, are read as well.
Is the binary of a character always the same?
In UTF-8, yes: the same character always gives the same bytes. Other encodings such as UTF-16 would give different bits, which is why this tool states that it uses UTF-8.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.