Every character you type is a number underneath, and every number is a pattern of bits. This tool shows you that pattern directly: paste any text and watch it convert to binary bytes in real time, one 8-bit group per character. It runs entirely in your browser, so passwords, keys, and private notes never leave your device, and it works just as well on a phone as on a desktop.
The important word in the previous paragraph is bytes. This tool converts your text to UTF-8 first, then shows the binary of each byte. For plain English text that is the same as ASCII, one byte per character. But for anything beyond basic English, UTF-8 uses more than one byte per character: accented letters like é take 2 bytes, Chinese and Japanese characters typically take 3, and emoji take 4. If you have ever seen a converter claim one character always equals 8 bits, that is only true for the 128-character ASCII set.
A quick example to set expectations. The word Hello is five characters: H is decimal 72, e is 101, l is 108, l is 108 again, and o is 111. In binary those become 01001000, 01100101, 01101100, 01101100, and 01101111. Five characters in, five bytes out, forty bits total. Type a single € sign and you get three byte groups instead of one, which is the UTF-8 rule at work.
What Is Binary and Why Does Text Need It?
Binary is base 2, a number system with exactly two digits, 0 and 1. Computers store everything, including text, as sequences of these bits because transistors have two reliable states: off and on. A single bit can only represent two values, so eight bits are grouped into a byte, which gives 2 to the 8th power, or 256, possible values from 00000000 to 11111111.
Text enters the machine through a character encoding, an agreed table that maps characters to numbers. ASCII, defined in the 1960s, assigns 0 to 127 to English letters, digits, punctuation, and control codes: capital A is 65, lowercase z is 122, the space is 32. UTF-8 is the modern worldwide standard and it is carefully designed to be backward compatible: every ASCII character keeps its same value and same single byte, while characters beyond ASCII get multi-byte sequences. The é you see on screen might be stored as the two bytes 11000011 10101001, decimal 195 and 169.
Understanding that mapping is genuinely useful. It explains why a file of 1,000 English characters is about 1,000 bytes, why copying emoji into a legacy system can double or quadruple the size, and why a character limit in one app is not the same as a byte limit in another.
How to Use This Tool (Step by Step)
- Type or paste your text into the input box. The binary output updates live with every keystroke; there is no submit step.
- Read the output as space-separated groups of 8 bits, one group per UTF-8 byte. Multi-byte characters simply produce more groups.
- Use the copy button to take the result into your notes, code, or homework.
- To go the other way, use the paired binary-to-text tool: paste the groups back and you should recover your exact original text, emoji included.
- If you see an error message, it means the input contained something the converter could not process; the message tells you what to fix rather than failing silently.
Worked Examples Worth Studying
These are handy for checking your own manual conversions or for classroom exercises.
| Input | Bytes (decimal) | Binary output |
|---|---|---|
| Hi | 72, 105 | 01001000 01101001 |
| OK! | 79, 75, 33 | 01001111 01001011 00100001 |
| é | 195, 169 | 11000011 10101001 |
| 空间 | 231, 169, 186, 233, 151, 180 | 11100111 10101001 10111010 11101001 10010111 10110100 |
Notice how the last two rows break the one-character-one-byte intuition. The é is one visible character but two bytes, and each Chinese character is three. This is exactly the behavior that separates a UTF-8-aware converter from a naive ASCII-only one.
How the Conversion Works Internally
The pipeline is short and worth knowing. Step one: the browser's TextEncoder converts your string into UTF-8 bytes, producing an array of numbers from 0 to 255. Step two: each number is converted to base 2 by repeated division. Take 72: 72 divided by 2 is 36 remainder 0, then 18 remainder 0, 9 remainder 0, 4 remainder 1, 2 remainder 0, 1 remainder 0, and 0 remainder 1. Reading the remainders bottom-up gives 1001000, a 7-bit number, which is padded with a leading zero to the full byte 01001000. Step three: every byte is padded to exactly 8 bits and the groups are joined with spaces.
The padding matters. Values below 64 would be 6 or 7 bits if written naturally, so leading zeros are added to keep every group a clean 8 bits. 65, the letter A, becomes 01000001, not 1000001. Fixed-width output is what makes the reverse conversion unambiguous, because the decoder can split the stream into groups of 8 without any separators at all.
Common Use Cases
- Learning and teaching: nothing builds intuition for encodings faster than typing your own name and counting the bytes. It makes abstract lessons about ASCII tables concrete.
- Debugging: when a file protocol or serial device expects raw bytes, checking the binary of your header string byte by byte catches off-by-one errors that look invisible in decimal.
- Verifying encoding assumptions: paste a suspicious string and see instantly whether a character took 1, 2, 3, or 4 bytes, which explains mysterious length mismatches between systems.
- Puzzle and CTF preparation: many beginner challenges hide messages in binary; knowing the byte structure lets you decode them by hand if needed.
- Data forensics: when text arrives with the wrong encoding it becomes mojibake; comparing the underlying bits of the original and the corrupted copy shows exactly which bytes differ.
UTF-8 Details That Surprise People
UTF-8 is a variable-length encoding with a strict structure. One-byte sequences cover 0 to 127 and start with a 0 bit, which is precisely why they match ASCII. Two-byte sequences cover the next range and start with the bits 110. Three-byte sequences start with 1110, and four-byte sequences, used mostly for emoji and rare scripts, start with 11110. Every continuation byte inside a multi-byte character starts with the bits 10, so a decoder can always tell a sequence's start from its middle even in the middle of a stream.
Practical consequence: you cannot split UTF-8 text at an arbitrary byte boundary without risking a broken character. If you cut the stream for the Chinese word above after four bytes, the second character's first byte is split away from its continuation bytes and the decoder sees corruption. Whole characters always move together.
Another surprise: the byte count is a good proxy for storage but not for everything. Some APIs count characters, others count UTF-16 code units, which differs from UTF-8 for emoji. When a form says your 140-character message is too long, counting bytes with this tool often reveals the actual limit being enforced.
Binary Compared to Other Text Representations
Binary, decimal codes, and hexadecimal are three views of the same bytes. The letter K is decimal 75, binary 01001011, and hex 4B. Which one you use depends on context: decimal is friendliest for reading ASCII tables, hex is the standard in editors, memory dumps, and color codes because two hex digits describe one byte exactly, and binary is the ground truth showing individual bit flags. If you need the other forms, the site has dedicated converters for text to decimal codes and text to hex bytes that run the identical UTF-8 pipeline.
Tips and Best Practices
- Round-trip your work: convert text to binary, then feed the binary into the reverse tool. If the original does not come back, a space or group was lost somewhere.
- Count groups to measure size: the number of 8-bit groups equals the UTF-8 byte count, which is what most file sizes and network limits actually measure.
- Do not manually delete spaces before re-decoding unless the tool supports it; separators exist for readability and the paired decoder accepts them.
- For long documents, convert a sample paragraph first to check byte counts, then scale up; giant inputs take longer to render and copy.
- Treat the output as an encoding view, not a secret: binary is trivially reversible by anyone with a converter, so it is never a way to hide sensitive text.