Binary Translator
Convert text to binary and binary back to text — instantly, in your browser.
Text to Binary and Back
This binary translator converts text into the 1s and 0s a computer actually stores, and turns binary back into readable text. Type "Hi" and you get 01001000 01101001: one 8-bit byte for each character. It's built for students learning how character encoding works, developers checking which bytes a string really contains, and anyone decoding a binary message from a puzzle, a T-shirt or a homework sheet.
How to Use the Binary Translator
- Pick a direction with the Text → Binary or Binary → Text button at the top.
- In Text → Binary mode, type into Your text. The Binary box shows each byte as eight digits, separated by spaces.
- In Binary → Text mode, paste into Binary input, and the Text box shows the decoded result. Spaces, line breaks and commas between bytes are treated as separators, so
0100100001101001and01001000,01101001both decode to "Hi". Any other character, such as a 2 or a letter O typed instead of a zero, is skipped and listed in a notice below the output box. - Click Copy to copy the result. Notices and error messages appear below the output box, never inside it, so Copy only ever copies a real conversion.
Switching direction keeps your work. Text you typed is replaced by its binary when you choose Binary → Text, and binary that decodes cleanly is replaced by its text when you switch back, so the two buttons work like a swap. Binary you pasted while in Text → Binary mode is kept as it is, ready to decode. The "Hello" sample is loaded only when the box is empty.
How to Read a Byte
Each of the eight positions in a byte has a value, doubling from right to left. Add up the values wherever there's a 1:
| Place value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | Total |
|---|---|---|---|---|---|---|---|---|---|
| H = 01001000 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 72 |
| i = 01101001 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 105 |
For H, 64 + 8 = 72, which is the ASCII code for a capital H. For i, 64 + 32 + 8 + 1 = 105, the code for a lowercase i. A few patterns are worth remembering:
- Capital and lowercase letters differ by a single bit, the 32s place. A is
01000001(65) and a is01100001(97). - A space is
00100000(32), so spaces in your text show up as their own byte. - Digits are characters too. Typing 5 gives
00110101(53), not 101, and 42 gives two bytes,00110100 00110010. This tool encodes text, not numeric values. The number 42 written in base 2 is 101010, which is a base conversion this tool doesn't do.
ASCII and UTF-8
ASCII defines 128 characters, codes 0 to 127, which fit in seven bits. That's why every byte for plain English text starts with 0. Everything else, including accented letters, currency symbols, other alphabets and emoji, is encoded with UTF-8, which uses two to four bytes per character. The first bits of each byte tell a decoder what role that byte plays:
| Byte starts with | Meaning | Example |
|---|---|---|
| 0xxxxxxx | One-byte character (ASCII) | H |
| 110xxxxx | Start of a two-byte character | é |
| 1110xxxx | Start of a three-byte character | € |
| 11110xxx | Start of a four-byte character | 😀 |
| 10xxxxxx | Continuation byte | 2nd–4th bytes |
So é becomes 11000011 10101001, the euro sign becomes 11100010 10000010 10101100, and 😀 takes four bytes: 11110000 10011111 10011000 10000000. Counting the groups in the Binary box tells you a string's size in bytes, which is useful when a database column or API field is limited in bytes rather than characters.
Common Decoding Problems
- "Binary length must be a multiple of 8." Some textbooks and puzzles write ASCII with seven bits per letter (H = 1001000). This tool needs full 8-bit bytes, so add a leading 0 to each group. The same message appears if a digit was lost while copying.
- "Invalid UTF-8 sequence." The bytes break the patterns in the table above, for example a continuation byte with no start byte, or a multi-byte character cut short. A frequent cause is binary from an old "extended ASCII" chart (Latin-1 or Windows-1252), where é is the single byte
11101001. In UTF-8, a byte starting with 1110 promises two more bytes, so decoding fails. - "Ignored 2 invalid characters." Anything other than 0, 1, spaces, line breaks and commas is skipped, and the notice lists each one, for example "2", "O". A typo such as a 2 or a letter O instead of a zero removes a bit, which shifts every following bit and usually triggers one of the errors above as well. Fix the listed characters and the notice disappears.
The same bytes can be written in other notations. The URL Encoder / Decoder shows them in hexadecimal, turning é into %C3%A9. The Base64 Encoder / Decoder regroups the bits into 6-bit chunks, so "Hi" becomes SGk=. For a much older way of turning letters into on-off signals, try the Morse Code Translator.
FAQ
How do I convert binary to text by hand?
Split the binary into groups of eight bits and convert each group to a decimal number using the place values 128, 64, 32, 16, 8, 4, 2 and 1. Then look up each number in an ASCII table: 65 to 90 are A to Z, and 97 to 122 are a to z. For example, 01001111 01001011 is 79 and 75, which spells "OK".
Does it support emoji and non-English text?
Yes. Text is encoded as UTF-8, so any Unicode character works. Characters outside ASCII become two, three or four bytes, and decoding reassembles them.
What format should binary input use?
Full 8-bit bytes. Separators are optional: spaces, line breaks and commas are ignored, though spaces between bytes make the input easier to check. Any other character is skipped and reported in a notice below the output. The total number of bits must be a multiple of eight.
Is this ASCII or UTF-8?
UTF-8, which matches ASCII for the first 128 characters. Plain English text gives exactly the same binary as an ASCII table. Accented letters and symbols differ from older 8-bit "extended ASCII" charts, which used one byte where UTF-8 uses two or more.
Can it convert numbers, hex or decimal?
No. It treats digits as text characters, so 42 becomes the two bytes for "4" and "2". It doesn't convert a number between bases or output hexadecimal or decimal.
What happens to my input when I switch modes?
It's carried over, not thrown away. Choosing Binary → Text turns your text into its binary, or keeps binary you'd already pasted. Choosing Text → Binary turns valid binary back into text. Binary that can't be decoded cleanly stays in the box unchanged, and a sample is loaded only when the box is empty.
Is my text uploaded?
No. Encoding and decoding use the browser's built-in TextEncoder and TextDecoder on this page, and nothing you type is sent or stored.
Love using BreezyTools?
Go Pro for an ad-free experience, priority features, and support independent development — for less than a coffee a month.