Text to Binary Converter
Convert text to binary and binary back to text, with correct UTF-8 byte handling and a choice of 7- or 8-bit grouping.
About these bits
Conversion runs entirely in your browser using UTF-8 encoding. Nothing you paste is uploaded.
What It Does
This turns text into the ones and zeros a computer actually stores, and turns them back again. The conversion itself is simple; getting it right for anything beyond plain English is where tools differ. Text becomes bytes through UTF-8, and only the original ASCII characters occupy a single byte — an accented letter takes two, most CJK characters three, an emoji four. So the number of eight-bit groups is not the number of characters you typed, and the tool shows both counts so the difference is visible rather than surprising. Going the other way it accepts binary with or without spaces, and refuses rather than guessing when the digit count is not a multiple of eight, since that always means something is missing.
When to Use It
- You are teaching or learning how character encoding works and want to see the actual bits behind familiar letters.
- A protocol or embedded system describes a value in binary and you need to know what text it corresponds to.
- You want to demonstrate concretely why an emoji costs four times as much storage as a letter.
- A puzzle or exercise is presented in binary and you want the text without counting bits by hand.
- You are checking that a value you are about to transmit contains the bits you expect.
Worked Examples
Hi
Two ASCII characters, two bytes, two groups: 01001000 01101001. The cleanest possible demonstration, and the case where character count and byte count happen to agree.
café
Four characters but five bytes, because the é is encoded as two. This mismatch is the thing most binary converters get wrong, and it is why the tool reports both numbers.
01001000 01100101 01101100 01101100 01101111
Binary going the other way, spelling out Hello. Paste it with the spaces or without — both are accepted, and the tool splits a continuous run into bytes for you.
Features
How to Use
1. Choose a direction — text to binary, or binary to text. 2. Paste or type your input. 3. The result appears immediately, with the character and byte counts alongside. 4. Switch between 7-bit and 8-bit grouping if you need the other convention. 5. Use Swap to send the output back through in the opposite direction.
Common Mistakes
- Assuming one character is one byte. That only holds for plain ASCII, and any accented letter, non-Latin script or emoji breaks the assumption immediately.
- Dropping leading zeros when printing a byte. A byte is always eight digits, so writing 1000001 instead of 01000001 shifts every byte after it when the string is read back.
- Treating binary as a way to hide information. It is a display format, not encryption — converting it back takes seconds and requires no key.
- Using binary as a transport format. It is eight times the size of the original before spaces, where hex is two times and Base64 about 1.33.
- Mixing 7-bit and 8-bit conventions in the same data. Pick one and stay with it, and use 8-bit for anything that is not a textbook exercise.