π’ Binary Text Converter: Text to Binary and Binary to Text
By ToolNimba Editorial Team Β· Updated 2026-06-25
Type some text and press Convert.
This binary text converter turns text into binary and binary back into readable text. Type or paste your message, choose a direction, and you get the result instantly. Each character becomes an 8-bit group (eight 0s and 1s), separated by spaces so the output is easy to read. Everything runs in your browser, so nothing you type is sent anywhere.
What is the Text to Binary Converter?
Computers store every letter, digit and symbol as a number, and those numbers are stored in binary: a base-2 system that uses only two digits, 0 and 1. The mapping from a character to its number comes from a character set. The original ASCII set covers the basic English letters, digits and punctuation, assigning each one a code from 0 to 127. The letter A is 65, a space is 32, and the digit 0 is the number 48 (not 0, which is a control character). Modern text uses UTF-8, which keeps those same codes for the ASCII range and adds longer sequences for everything else, from accented letters to emoji.
To write a character in binary, you take its code and express it in base 2. The number 65 is 64 plus 1, which in 8-bit binary is 01000001. We pad each value to eight digits (one byte) so every character lines up neatly and the stream can be split back apart without ambiguity. That is why a single ASCII character always shows as exactly eight 0s and 1s here. A character outside the ASCII range, such as an accented letter, takes two or more bytes under UTF-8, so it produces more than one 8-bit group.
Decoding reverses the process: the binary is split into 8-bit groups, each group is read as a base-2 number, and that number is looked up as a byte. The bytes are then interpreted as UTF-8 to rebuild the original text. Because the split relies on each character being exactly eight bits, the total number of binary digits must be a multiple of 8. If it is not, something is missing or extra, and the converter will tell you rather than guess.
It helps to see how a byte is built from place values. Reading left to right, the eight positions in a byte are worth 128, 64, 32, 16, 8, 4, 2 and 1. Wherever there is a 1, you add that position value, and wherever there is a 0 you skip it. So 01000001 adds 64 and 1 to make 65, the code for A. This is the same idea as our everyday base-10 numbers, where each column is worth ten times the one to its right, except here each column is worth twice the one to its right. Once you can read those eight columns, you can decode any byte by hand.
Binary is the native language of digital hardware because a circuit has two stable states, on and off, which map cleanly onto 1 and 0. Every text file, web page, password and chat message is ultimately a long run of these bits grouped into bytes. ASCII gave early computers a shared 7-bit code so that a file written on one machine could be read on another, and UTF-8 later extended that idea to cover every writing system in the world while staying backward compatible with ASCII. When you convert text to binary here, you are seeing the exact bytes a computer would store, which makes this tool useful both for learning and for real debugging.
A few practical notes round out the picture. Binary is closely related to hexadecimal, where two hex digits stand in for one byte, which is why programmers often switch between the two; the byte 01000001 is 41 in hex and 65 in decimal, three views of the same value. The number of bytes also tells you the size of your text: plain English text is roughly one byte per character, so a 100-character message is about 100 bytes, while text full of emoji or non-Latin scripts will be larger because those characters need extra bytes under UTF-8.
When to use it
- Learning how computers represent text, for a computer science class or homework on number systems and ASCII.
- Creating a fun "secret message" in binary to share with friends, then decoding it back to plain text.
- Checking the exact byte values behind a piece of text when debugging character-encoding issues.
- Generating binary strings for a puzzle, escape room clue, CTF challenge, or programming exercise.
- Verifying how a name, password, or symbol is stored as bytes before writing or testing code.
- Teaching the link between binary, decimal, and hexadecimal using a single short word as a worked example.
How to use the Text to Binary Converter
- Pick a direction: "Text to binary" to encode, or "Binary to text" to decode.
- Type or paste your input into the top box.
- Choose how the binary groups are separated (space, none, or new line).
- Read the result in the lower box and press Copy to grab it.
- Use "Swap input and output" to feed the result straight back through in the other direction.
Formula & method
Worked examples
Convert the word "Hi" to binary.
- Look up each character code: H = 72, i = 105.
- Write 72 in binary: 64 + 8 = 01001000.
- Write 105 in binary: 64 + 32 + 8 + 1 = 01101001.
- Join the 8-bit groups with a space.
Result: 01001000 01101001
Decode the binary 01001000 01101001 01101111 back to text.
- Split into 8-bit groups: 01001000, 01101001, 01101111.
- Read each as a base-2 number: 01001000 = 72, 01101001 = 105, 01101111 = 111.
- Look up the codes: 72 = H, 105 = i, 111 = o.
- Join the characters in order.
Result: Hio
Convert the word "Hey" to binary by hand using place values.
- Find the codes: H = 72, e = 101, y = 121.
- H = 72: positions 64 and 8 are on, giving 01001000.
- e = 101: positions 64, 32, 4 and 1 are on, giving 01100101.
- y = 121: positions 64, 32, 16, 8 and 1 are on, giving 01111001.
- Join the three 8-bit groups with spaces.
Result: 01001000 01100101 01111001
Common characters and their binary, decimal, and hex codes
| Character | Decimal | Hex | 8-bit binary |
|---|---|---|---|
| A | 65 | 41 | 01000001 |
| a | 97 | 61 | 01100001 |
| Z | 90 | 5A | 01011010 |
| z | 122 | 7A | 01111010 |
| 0 (digit) | 48 | 30 | 00110000 |
| 9 (digit) | 57 | 39 | 00111001 |
| Space | 32 | 20 | 00100000 |
| ! (exclamation) | 33 | 21 | 00100001 |
The eight place values inside one byte
| Position (left to right) | Place value | Bit example for 65 |
|---|---|---|
| 1st bit | 128 | 0 |
| 2nd bit | 64 | 1 |
| 3rd bit | 32 | 0 |
| 4th bit | 16 | 0 |
| 5th bit | 8 | 0 |
| 6th bit | 4 | 0 |
| 7th bit | 2 | 0 |
| 8th bit | 1 | 1 |
ASCII vs UTF-8 at a glance
| Feature | ASCII | UTF-8 |
|---|---|---|
| Code range | 0 to 127 | 0 to 1,114,111 |
| Bytes per character | Always 1 | 1 to 4 |
| Covers English text | Yes | Yes |
| Covers accents and emoji | No | Yes |
| Backward compatible | n/a | Matches ASCII for codes 0 to 127 |
Common mistakes to avoid
- Pasting binary that is not a multiple of 8 digits. Each character is stored as exactly eight bits. If your binary has, say, 15 or 20 digits in total, a group is incomplete and the text cannot be rebuilt. Count the 0s and 1s: the total must divide evenly by 8.
- Confusing the digit 0 with the number zero. The character "0" has code 48 (00110000), not 0. Code 0 is the null control character, which is not a printable digit. This trips people up when they expect "0" to map to all zeros.
- Mixing up separators when decoding. The decoder ignores anything that is not a 0 or 1, so spaces, commas and line breaks between groups are fine. But stray letters or stray digits inside a group will change the value, so keep the binary clean.
- Expecting one group per non-English character. Accented letters, emoji and other non-ASCII characters take two or more bytes under UTF-8, so each one produces more than one 8-bit group. That is correct, not a bug.
- Reading the bits in the wrong direction. In a standard byte the leftmost bit is the largest place value (128) and the rightmost is the smallest (1). Reading right to left flips the value, so 01000001 (65) would be misread. Always start from the left when adding place values.
- Assuming binary hides or encrypts your message. Binary is an encoding, not encryption. Anyone can decode it back to the original text in seconds, so never use plain binary to protect passwords or sensitive information.
Glossary
- Binary
- A base-2 number system that uses only the digits 0 and 1. Computers store all data this way.
- Bit
- A single binary digit, either 0 or 1. The smallest unit of digital information.
- Byte
- A group of eight bits. One ASCII character is stored in one byte.
- ASCII
- A character set mapping basic English letters, digits and symbols to codes 0 through 127.
- UTF-8
- A modern encoding that keeps the ASCII codes and uses extra bytes for other characters, from accents to emoji.
- Character code
- The number assigned to a character, such as 65 for the letter A, which is then written in binary.
- Hexadecimal
- A base-16 system where two hex digits represent one byte. The byte 01000001 is 41 in hex.
- Place value
- The worth of each position in a number. In a byte the eight positions are worth 128, 64, 32, 16, 8, 4, 2 and 1.
Frequently asked questions
How do I convert text to binary?
Type your text, keep the mode on "Text to binary", and the converter writes each character as an 8-bit binary group. Internally it takes each character code (for example A is 65) and expresses it in base 2 padded to eight digits, so A becomes 01000001.
How do I convert binary back to text?
Switch to "Binary to text" and paste your binary. The tool splits it into 8-bit groups, reads each group as a number, and looks that number up as a character. Spaces and line breaks between groups are ignored, so you can paste binary in any common layout.
Why is each character 8 bits long?
One byte is eight bits, and a basic ASCII character fits in a single byte. Padding every value to eight digits keeps the groups aligned so the stream can be split back into characters without ambiguity.
What does "01001000" mean in binary?
Read as a base-2 number, 01001000 equals 64 + 8 = 72. The character with code 72 is a capital H, so 01001000 represents the letter H.
Can this binary text converter handle emoji and accented letters?
Yes. The converter uses UTF-8, so characters outside the basic ASCII range are encoded as two or more bytes. Each byte still shows as an 8-bit group, so a single emoji may produce four groups.
How do I read binary by hand?
Give the eight positions in a byte the values 128, 64, 32, 16, 8, 4, 2 and 1 from left to right. Add up the values wherever there is a 1. For 01100001 that is 64 + 32 + 1 = 97, which is a lowercase a.
What is the difference between binary, decimal, and hexadecimal?
They are three ways to write the same value. Decimal is base 10, binary is base 2, and hexadecimal is base 16. The letter A is 65 in decimal, 01000001 in binary, and 41 in hex; the converter focuses on the binary view.
Is binary the same as ASCII?
No. ASCII is a character set that assigns a number to each character, while binary is just a way to write any number in base 2. The tool first finds the ASCII or UTF-8 code, then writes that code in binary.
How many bits or bytes are in my text?
Plain English text uses about one byte (eight bits) per character, so a 10-letter word is roughly 80 bits. Characters such as emoji or non-Latin letters use more bytes under UTF-8, so the total will be larger for those.
Is my text sent to a server?
No. The whole conversion runs in your browser with plain JavaScript. Nothing you type is uploaded or stored, so it is safe to use for private notes.