Binary Code Translator
Convert text to 8-bit binary bytes, or decode binary back to text. This free tool uses UTF-8 and keeps your message in this browser tab.
Enter text or choose Binary to text. Conversion stays in this tab.
UTF-8 · 8 bits per byte · Up to 20,000 bytes. Paste complete bytes separated by whitespace, or one continuous bit string.
How to use the binary code translator
Start with Text to binary and type a short message. The result updates as you edit, with a space between each byte. Copy result copies the output exactly. Swap moves the result into the input and reverses direction, which gives you a quick way to check your own message. Clear empties both fields and returns focus to the input. Try hello loads a small example without changing anything on another page.
For the reverse conversion, choose Binary to text and paste zeros and ones. You can use a continuous string or separate complete bytes with spaces, tabs, or line breaks. Keep the leading zeros: the byte for A is 01000001, not the seven-digit string 1000001. The converter reports an incomplete group rather than guessing which side needs padding. Commas, slashes, decimal numbers, and a 0b prefix are not accepted as binary input.
Check the direction before pasting. Typing 101 in Text to binary means the three text characters 1, 0, and 1; it does not mean a binary number with value five. This page translates text representations, so it does not calculate signed integers, fractions, machine instructions, or file formats. For dots and dashes, return to the Morse code translator; binary bytes and Morse symbols follow different rules.
Hello in binary, one letter at a time
The word hello is useful for checking a conversion because each letter fits in one UTF-8 byte. Lowercase h has decimal value 104. Written in base two, that value is 1101000; padding it on the left gives the full eight-bit byte 01101000. The padding is part of the byte display, not another character. Read the table from top to bottom, keeping both copies of l.
| Letter | Decimal | 8-bit binary |
|---|---|---|
| h | 104 | 01101000 |
| e | 101 | 01100101 |
| l | 108 | 01101100 |
| l | 108 | 01101100 |
| o | 111 | 01101111 |
Putting the rows together gives 01101000 01100101 01101100 01101100 01101111. Paste that into Binary to text and you get hello. Change only the first byte to 01001000 and the result becomes Hello. This difference matters when you are checking a password example, a programming exercise, or a name: the converter preserves letter case instead of treating uppercase and lowercase as equivalent.
Try a second check with a space: hi there contains eight text characters, including the space. Its fourth displayed byte belongs to t, while its third byte is 00100000, the encoded space. Removing the visible separator between two byte groups does not remove that encoded space. Removing the byte 00100000 does. This is why a continuous bit string can still decode into a sentence with several words.
Binary, ASCII, Unicode and UTF-8
Binary is a way to write numbers using two digits. Text needs an additional agreement about what those numbers represent. ASCII assigns values to a limited set of letters, digits, punctuation, and control characters. Its values fit in seven bits, while the display here uses eight-bit byte groups with a leading zero for ASCII characters. A byte can have 256 different bit patterns, from 00000000 through 11111111.
Unicode assigns code points to a much larger collection of characters. UTF-8 is an encoding that turns Unicode text into bytes. These terms describe different layers: a character, its code point, and its stored byte sequence are not interchangeable. Our converter uses UTF-8 consistently in both directions. ASCII characters keep the same numeric values, which is why ordinary English examples also work as familiar ASCII-to-binary demonstrations.
Outside ASCII, use the complete UTF-8 byte sequence. For example, é becomes 11000011 10101001, two bytes. Looking at either byte alone does not recover that character. A binary dump created with Windows-1252, UTF-16, or another encoding may therefore fail here even when all its groups contain eight bits. Confirm the original encoding rather than replacing bytes until the error disappears. The UTF-8 specification, RFC 3629, defines the valid byte sequences; the browser APIs follow the WHATWG Encoding Standard.
Why one Chinese character can use 24 bits
Eight bits is the boundary of a byte, not a promise that every character occupies one byte. The common Chinese character 中 has code point U+4E2D. Its UTF-8 sequence is 11100100 10111000 10101101: three bytes, or 24 bits. If you split that sequence after the first byte and decode each fragment separately, you lose the complete character. Keep related bytes together when copying part of a message.
Many common Chinese characters use three bytes in UTF-8, but not every Chinese character does. Some characters in supplementary Unicode ranges use four bytes. Emoji such as 😀 also use four bytes, while an emoji displayed as one symbol can be a sequence of several code points. The byte count below the tool measures encoded bytes. It is not a count of letters, visible symbols, keyboard presses, or words.
Accented text has another useful edge case. A visible é can be represented by one precomposed code point or by e followed by a combining accent. Those forms may look identical but produce different byte sequences. This tool does not normalize them into one spelling. If two copied strings produce different binary, compare their actual characters before assuming the conversion is wrong. Preserve the original source when byte-for-byte identity matters.
Check byte boundaries before decoding
When decoding fails, first count the bits in each separated group. Every group must contain exactly eight. Next check for a missing group or an extra digit introduced by copying from a screenshot. A single missing bit shifts the boundaries of a continuous stream. Reformatting the damaged stream into eight-digit groups does not restore the lost information, so return to the source rather than treating a new grouping as a repair.
If the byte boundaries are correct, check the encoding. A byte starting with 10 is normally a continuation within a multibyte UTF-8 character, not a standalone character. The converter rejects incomplete sequences and invalid combinations without returning a partial answer. A valid decode can still contain a typo or the wrong message; successful decoding proves that the bytes form UTF-8 text, not that they match the sender’s intention.
Binary encoding also provides no secrecy. A puzzle written in zeros and ones may conceal its meaning at a glance, but anyone with the encoding can read it. Do not use this representation as password protection or encryption. The local processing boundary means your message stays in this tab; it does not change what someone else can learn from a binary string you publish or send.
Practical limits and a reliable round trip
Work with short text passages when you are learning or checking a copied clue. The tool accepts at most 20,000 UTF-8 bytes, which can be fewer than 20,000 visible characters. If you exceed the limit, the original input remains available and the output clears with an explanation. Copy and Swap stay unavailable until the current input produces a valid result, so an earlier successful result cannot be mistaken for the new one.
For a round-trip check, enter a message containing a capital letter, a space, punctuation, and a non-ASCII character. Copy the binary, switch to Binary to text, and paste it back. Compare the recovered text with the source. Spaces and line breaks are text data too, and invisible control characters may not have an obvious on-screen appearance. Use the byte count and source context when a result looks blank. For a different character-based code, the Morse code alphabet chart shows letter patterns without byte encoding.
Conversion runs locally using the browser’s text encoding APIs. This page does not upload text, save previous messages, or add your input to a shareable URL. Reloading starts with an empty input. Keep a separate copy of anything you need before closing the tab. If clipboard access is blocked, Copy result selects the output so you can use your browser’s Copy command instead.
Binary code translator FAQ
What is hello in binary code?
Lowercase hello in UTF-8 is 01101000 01100101 01101100 01101100 01101111. Each group is one byte; uppercase H would start with 01001000 instead.
Can this binary code translator handle Chinese and emoji?
Yes. It uses UTF-8, so a character can occupy more than one byte. For example, 中 uses three bytes and 😀 uses four bytes.
Can I paste binary without spaces?
Yes, if the continuous string contains a whole number of 8-bit bytes. If you add whitespace, put it between complete 8-bit groups.
Why do I get an invalid UTF-8 error?
The bytes do not form a valid UTF-8 sequence. A missing byte, wrong boundary, or text originally encoded in another format can cause this; the tool does not guess an encoding or return partial text.
Is binary code encryption?
No. Encoding changes the representation of text without a secret key. Anyone who knows the encoding can reverse it.
Are spaces between binary groups the spaces in my sentence?
No. Group separators make bytes readable. A literal space in the original text is its own byte, 00100000.
Does the converter upload or save my message?
No. Conversion happens in this browser tab. Input and results are not sent to the server or analytics, added to the URL, or saved in browser storage.
How much text can I convert at once?
The limit is 20,000 UTF-8 bytes. Multibyte characters use that allowance faster than ASCII letters. Over-limit input stays visible with a message; it is not truncated.
Prepared by Txtopia · Reviewed November 22, 2026 · UTF-8 text conversion, not file decoding.