01

Text to Binary

✓ Free & no signup 🔒 Runs 100% in your browser Updated 2026-11-25 Binary Converter Tools

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)

  1. Type or paste your text into the input box. The binary output updates live with every keystroke; there is no submit step.
  2. Read the output as space-separated groups of 8 bits, one group per UTF-8 byte. Multi-byte characters simply produce more groups.
  3. Use the copy button to take the result into your notes, code, or homework.
  4. 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.
  5. 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.

InputBytes (decimal)Binary output
Hi72, 10501001000 01101001
OK!79, 75, 3301001111 01001011 00100001
é195, 16911000011 10101001
空间231, 169, 186, 233, 151, 18011100111 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.

Frequently Asked Questions

How do I convert text to binary by hand?
First look up each character's decimal value in the ASCII table: capital H is 72, lowercase i is 105. Then convert each number to base 2 by repeated division by 2 and reading the remainders backwards. For 72 the remainders give 1001000, and you pad with a leading zero to get 01001000. For 105 you get 01101001. So Hi becomes 01001000 01101001. Every byte must be exactly 8 bits, so add leading zeros to short values. Non-English characters need the UTF-8 table instead, where one character can be 2 to 4 bytes.
Is text-to-binary the same as ASCII conversion?
Only for basic English. The 128 ASCII characters, covering English letters, digits, and common punctuation, have identical values in ASCII and UTF-8, so this tool's output matches any ASCII chart for those characters. The difference appears with everything else: an accented é is one character but 2 bytes in UTF-8, Chinese characters are typically 3 bytes, and emoji are 4. A strict ASCII converter fails or mangles those, while this tool shows their full multi-byte UTF-8 form. For pure English input, the two are indistinguishable.
How many bits is one character in binary?
For ASCII and basic English text, exactly 8 bits, one byte per character, written with leading zeros like 01000001 for A. That is the familiar answer, but UTF-8 is variable length: characters above 127 use 2 bytes, or 16 bits, for accents and Greek letters, 3 bytes, or 24 bits, for most Chinese, Arabic, and Hindi characters, and 4 bytes, or 32 bits, for emoji and rare symbols. So the emoji grinning face is 32 bits, not 8, and the space character is still just 00100000.
Why does my binary output have different numbers of groups for different characters?
Because the tool outputs one group per UTF-8 byte, and characters differ in byte count. English letters, digits, and standard punctuation each produce exactly one group. Accented letters like ñ or ü produce two groups, characters from Chinese, Japanese, Korean, Arabic, and most Indian scripts produce three, and most emoji produce four. You can verify the structure: multi-byte sequences start with bits 110, 1110, or 11110, and every continuation byte starts with 10. More groups means more bytes, which is also why emoji-heavy text is larger in storage.
Can I convert binary back to text with this tool?
This page only converts text into binary; the reverse direction is handled by the companion binary-to-text tool on this site. Paste your 8-bit groups there and the original characters come back, including multi-byte UTF-8 characters and emoji, as long as the byte groups are intact. Groups of exactly 8 bits are required, and spaces between groups are optional since the decoder can split a clean stream by width. A quick round trip, text to binary and back, is the most reliable way to confirm nothing was corrupted along the way.
Does this binary converter keep my text private?
Yes. The conversion runs entirely in your browser using JavaScript; nothing is uploaded to a server, logged, or stored. You can disconnect from the internet after the page loads and the tool keeps working, which is also handy on restricted networks. That local processing matters when you are converting sensitive strings such as API keys, passwords, or personal messages, and it applies equally on mobile: the same code runs in a phone browser, so pasting confidential text on the go is no riskier than typing it.

Related Tools