Binary Code Translator
Convert text and binary bytes with the encoding that matches your message.
01000001
1 character → 1 byte in UTF-8
Seeing dots and dashes instead? Use the Morse Code Translator.
What binary code is
Binary is a base-2 number system: every digit is 0 or 1. Computers store text, numbers, and files as those bits, grouped into bytes.
A bit is the smallest unit. Eight bits make a byte, and a byte is the usual packet for one ASCII character or one step of a UTF-8 sequence. The pattern 01000001 is not a secret code. It is the number 65 written in base 2, and 65 is the ASCII slot for the letter A. Flip the lowest bit and you get 01000000, which is 64, the character @ in ASCII. That is the whole trick: bits are place values, not Morse-style symbols.
People say “binary code” for a few different things. Machine instructions are binary. Color channels are binary. Network packets are binary. This page is a binary code translator for text: it writes characters as 0s and 1s, and it reads those bits back as characters. It does not disassemble programs or decode raw image files. If the input is meant to be a sentence, pick an encoding and convert. If the input is a firmware dump, you need a hex editor, not this tool.
Why bother looking at bits at all? Because every file on disk is bits, and a surprising number of homework problems, CTF puzzles, and “secret” social posts are just ASCII or UTF-8 written out as 0 and 1. Once you can read a byte, those puzzles stop being puzzles. The translator on this page exists so you can check an answer in a few seconds instead of adding powers of two by hand.
How binary becomes text
A byte is 8 bits, and each bit is worth twice the one to its right — that is how binary represents each character. This binary translator works both ways: Text → Binary writes each character as bytes, and Binary → Text reads bytes back as characters.
Read the byte from the left. The leftmost bit is worth 128, then 64, 32, 16, 8, 4, 2, and 1. Add the values where the bit is 1. For 01000001 that is 64 + 1 = 65. Character 65 in ASCII and UTF-8 is A. The same walk works for every other byte: 01100001 is 97, which is a; 00110000 is 48, which is the digit 0. You do not have to memorize a chart if you can add eight numbers.
How to convert text to binary
Type or paste plain text, pick the encoding the other side expects, and copy the 8-bit groups. That is the whole Text → Binary path.
Pick Text → Binary
The workbench starts in this direction. Each character becomes one or more bytes, shown as 8-bit groups with spaces so you can check them.
Choose an encoding
ASCII is enough for English letters, digits, and basic punctuation. Use UTF-8 for anything you would put on a website, including accented letters and emoji. Use UTF-16 BE only when a spec or a file header asks for it.
Copy the bits
The result updates as you type. Copy the full string when it looks right. Spaces are only for reading; most decoders accept the same bits with or without them.
A short example: the word hi in ASCII or UTF-8 is 01101000 01101001. The first byte is h (104), the second is i (105). Add a space and you get a third byte, 00100000. Newlines are bytes too — a Unix line break is 00001010 (LF). If you paste a paragraph and the binary looks longer than you expected, count the spaces and line breaks; they are real characters.
UTF-8 does not change the English letters. A, a, and 0 still occupy one byte, with the same bit patterns as ASCII. The extra bytes appear only when a character sits outside that range. é becomes two bytes (11000011 10101001). A typical emoji becomes four. That is why the same sentence can produce a longer bit string after you add one accented name or a smiley.
How to convert binary to text
Paste 0s and 1s, keep the encoding that produced them, and read the characters. Binary → Text is the reverse of the steps above.
Spaces are optional. The translator strips whitespace, then walks the string in 8-bit steps. 01000001 and 01000001 with gaps both decode to A. What it cannot guess is encoding. If someone encoded café as UTF-8 and you decode as ASCII, the fourth character is outside ASCII. If they used UTF-16 BE and you stay on UTF-8, you get noise or an error. Match the source, then convert.
A leftover nibble is the usual foot-gun. Seven bits at the end of a paste means a byte was cut off in a screenshot or a chat wrap. Nine bits means an extra 0 or 1 snuck in. The inspector under the output flags an incomplete group so you can fix the paste instead of staring at a blank result. Also watch for look-alike characters: a capital O, a lowercase L, or a full-width 1 from a PDF will not count as bits.
When the bits came from a programming exercise, they are almost always ASCII or UTF-8 in 8-bit groups. If every other byte is 00000000, switch encodings before you assume the tool is broken.
ASCII encoding, in plain terms
ASCII maps 128 characters to the numbers 0–127. Those numbers sit in a single 8-bit byte with the high bit off. That mapping is the shared core of UTF-8 and of most “text to binary” charts you find in class notes.
The first 32 slots are control codes. You will meet a few of them: 9 is tab, 10 is line feed, 13 is carriage return. Printable characters start at 32 (space) and run through 126 (tilde). Digits 0–9 are 48–57. Uppercase A–Z are 65–90. Lowercase a–z are 97–122. The 32-step gap between A and a is why flipping one bit (01000001 vs 01100001) changes case. That is not a coincidence; the table was built that way.
| Character | Decimal | 8-bit binary |
|---|---|---|
| A | 65 | 01000001 |
| a | 97 | 01100001 |
| 0 | 48 | 00110000 |
| space | 32 | 00100000 |
| newline | 10 | 00001010 |
ASCII stops at 127. It has no é, no 你, and no emoji. Early systems stuffed extra letters into the unused high bit and called the result Latin-1, Windows-1252, or a dozen other 8-bit pages. Those pages disagree with each other, which is why a file that looks fine on one computer turns into mojibake on another. Unicode replaced that mess. UTF-8 keeps the ASCII bytes identical and uses extra bytes only when needed, so English text is both “ASCII” and “UTF-8” at the same time.
If a course asks you to “convert to binary using ASCII,” they almost always want one 8-bit group per character, high bit 0, letters as in the table above. They rarely want UTF-16. When in doubt, encode the sample word hello and check against 01101000 01100101 01101100 01101100 01101111. If that matches, you are on the encoding the assignment expects.
Choose the right encoding
The same bytes can mean different text under different encodings. Pick the one your source used. For text from the web, that is almost always UTF-8.
Use ASCII for basic English text, UTF-8 for web text and emoji, or UTF-16 BE when the source specifies big-endian UTF-16. The Unicode Standard, Chapter 2 defines these encoding forms and their byte-order conventions.
| Encoding | Bytes per code point | Covers | “é” becomes |
|---|---|---|---|
| ASCII | 1 | English letters, digits, basic symbols | Not available |
| UTF-8 | 1–4 | Every Unicode character, emoji included | 11000011 10101001 |
| UTF-16 BE | 2 or 4 | Every Unicode character, high byte first | 00000000 11101001 |
UTF-16 BE always writes at least two bytes. English A is 00000000 01000001 — the same 65, padded on the left. Characters above U+FFFF use a surrogate pair (four bytes). This translator does not emit a byte-order mark. If you need a BOM, add 11111110 11111111 (UTF-16 BE) yourself; most web and homework cases should not include one.
Where a binary translator actually helps
You do not need bits for everyday typing. You do need them when a class, a puzzle, or a piece of software insists on seeing 0 and 1.
Programming and CS homework
Intro courses still ask you to show a string as 8-bit ASCII, to explain why A is 65, or to check a bit mask by eye. Encode the sample, then compare your worksheet to the output. If one letter is off by a single bit, you flipped a place value — the inspector’s decimal label next to each byte makes that obvious.
Debugging encodings
Mojibake is usually the wrong encoding, not corrupted data. Paste the bits, switch ASCII / UTF-8 / UTF-16 BE, and see which one yields the original word. That is faster than guessing in a hex dump, and it stays on your machine.
Puzzles and geek easter eggs
Album liner notes, ARG clues, and “hidden” bios in games often print a block of 0s and 1s that is just ASCII. Drop it in, leave UTF-8 selected, and read the sentence. If the result is garbage but every other byte is zero, try UTF-16 BE. It is the same joke, padded.
Two things this translator is not. It is not a calculator for two’s-complement arithmetic — it will not tell you that 11111111 is −1 as a signed byte. And it is not a packet sniffer. Ethernet frames and JPEG files contain binary that is not text. If you paste those bits, you may get a few printable characters and a lot of errors. Use a hex dump for files; use this page for messages that were meant to be read as text.
Why binary won’t translate
A bit is missing
Every byte needs exactly 8 bits. Seven or nine bits leave a broken byte at the end.
0100001Stray characters
Letters like O or l often sneak in for 0 and 1 when binary is copied from a picture or PDF.
O1OOOOO1Wrong encoding
Accented letters and emoji need UTF-8 or UTF-16. ASCII stops at the first one.
11000011 10101001 · ASCIIRelated translator
Binary code translator FAQ
What is “hello” in binary?
In ASCII or UTF-8: 01101000 01100101 01101100 01101100 01101111.
Do I need spaces between bytes?
No. The translator reads a continuous string in 8-bit groups. Spaces make long strings easier to check.
Is binary a kind of encryption?
No. Binary is how text is stored as bytes. Anyone with the same encoding can read it back.
Why do I get different binary on another site?
That site probably used a different encoding. Match the encoding and both results will agree.
What is the difference between 8-bit binary and other bit lengths?
This translator groups bits into 8-bit bytes, the unit computers use for text. A 7-bit ASCII code still sits in an 8-bit byte with the high bit set to 0. 16-bit and 32-bit groups show up in UTF-16, machine words, and color values — not as a second way to write English letters. If a string is not a multiple of 8 bits, a byte is incomplete and the decode stops.
Does this binary code translator support Unicode characters?
Yes, when the encoding is UTF-8 or UTF-16 BE. Accented letters, CJK, and emoji become multi-byte sequences. ASCII only covers U+0000–U+007F, so the first non-ASCII character raises an error. Switch to UTF-8 for web text.
Can I paste binary with line breaks or mixed spacing?
Yes. Spaces, tabs, and line breaks are ignored before grouping. Only 0 and 1 count as bits. Letters, punctuation, or a stray O mixed in with zeros will fail until you remove them.
Does conversion leave my computer?
No. Text and binary stay in the browser. Nothing is uploaded, so homework snippets and private notes never hit a server.
Source: Unicode Standard, Chapter 2 · Updated