How to Convert Binary to Text (and Back)
Binary is the language of computers at their lowest level. It uses only two symbols: 0 and 1. When binary is used to represent text, each character is written as a group of eight binary digits, called bits. If you understand groups of eight, you can convert binary to text and text back to binary with a chart and a careful method.
This guide explains what binary means, how to convert it step by step in both directions, and how to check your work. It includes a complete worked example that converts 01001000 01101001 to Hi, and it explains the limits that matter, including why you should not guess bits. You do not need programming experience. You need to group by eight, keep your spacing clear, and check each group against a table.
What Binary Is
Binary is a base-2 number system. Ordinary decimal numbers use ten symbols, 0 to 9. Binary uses two symbols, 0 and 1. Each binary digit is called a bit. Eight bits together make a byte. In the system commonly used for basic English text, called ASCII, each character has a number, and that number is written as one byte of eight bits.
For example, the capital letter H has the decimal number 72, which is 01001000 in binary. The lowercase letter i has the decimal number 105, which is 01101001 in binary. You do not need to do the decimal step every time if you use a chart. You only need to know that each group of eight bits stands for one character.
Binary is not a language and it does not change meaning. It is a representation. The binary string 01001000 01101001 and the word Hi carry the same characters, just in different forms. Converting between them is like changing a measurement from one unit to another. The underlying characters stay the same. The form changes.
How to Convert Binary to Text Step by Step
Follow these steps to convert binary to text by hand. They work best for short strings. Longer strings are possible, but they are easier to check with a tool, and a single wrong bit can change the result.
First, write out the binary string exactly as you received it. Keep any spaces. Spaces are not part of the binary data, but they help you see the groups. If the string has no spaces, add your own grouping marks as you work, so you can keep track of groups of eight.
Second, split the binary string into groups of eight bits. Start from the left and take eight bits at a time. Each group is one character. If the total number of bits is not a multiple of eight, stop and check the input. A valid binary-to-text string for this system should have a total bit count that divides evenly by eight, because each character needs eight bits. A count that does not divide evenly usually means a bit is missing or an extra bit was added.
Third, look up each group in an ASCII table or a binary-to-text chart. Write down the character that matches that group. Keep the characters in the same order as the groups. Do not reorder them, and do not skip a group because it looks like a space or punctuation mark. Spaces and punctuation have their own codes, and they matter.
Fourth, put the characters together and read the result as ordinary text. If the result looks like readable English, that is a good sign, but it is not proof. Check the result by converting it back to binary using the steps in the next section. If the back-conversion matches the original binary exactly, your conversion is likely correct.
How to Convert Text to Binary Step by Step
Converting text to binary uses the same idea in reverse. Write the text exactly as it appears, including spaces, capital letters, and punctuation. Then go through it one character at a time, from left to right. For each character, find its eight-bit binary code in an ASCII table and write that code down. Put a space between groups so the result is easy to read and check. Keep going until you have covered every character, including spaces.
A space has its own code, which is 00100000 in binary. That surprises many beginners, because a space looks like nothing. In a conversion, a space is still a character, and it still needs a group of eight bits. If you skip spaces, words will run together when the binary is converted back. The same rule applies to punctuation. A comma, a period, and an exclamation mark each have their own codes.
Capital and lowercase letters have different codes. H and h are not the same character in ASCII, and they do not have the same binary code. H is 01001000 and h is 01101000. That difference is easy to miss when you are working quickly, so check capitalization as you go, especially at the start of a sentence or a name.
Worked Example: 01001000 01101001 Becomes Hi
Here is a complete worked example using the binary string from the task: 01001000 01101001. Start by splitting it into groups of eight. There are sixteen bits, so there are two groups: 01001000 and 01101001. Each group will become one character, so the result should be two characters long.
Look up each group. 01001000 is capital H. 01101001 is lowercase i. Put the characters together in order and you get Hi. The length matches: two groups give two characters. The capitalization matches: the first character is capital, and the second is lowercase.
Now check it in the other direction. Start with Hi and convert each character to binary. H is 01001000. i is 01101001. The result is 01001000 01101001, which matches the original binary exactly. That round-trip check confirms the conversion.
Try a second short example to practice grouping. The word Hello has five characters. H is 01001000, e is 01100101, l is 01101100, l is 01101100 again, and o is 01101111. Put them together with spaces and you get 01001000 01100101 01101100 01101100 01101111. If you convert those groups back, you get H, e, l, l, and o, which gives Hello again. Notice that the two l groups are identical, which is expected because the same character has the same code each time.
Try one more example with a space. The phrase Hi there has a space between the words. Converting it gives 01001000 01101001 00100000 01110100 01101000 01100101 01110010 01100101. The group 00100000 is the space. If you leave that group out, the back-conversion gives Hithere, which is not the same phrase. That example shows why you should count groups and characters. Hi there has eight characters, including the space, so it should have eight groups of eight bits.
Reading Binary Without Guessing Bits
The most common mistake in binary conversion is guessing a bit. Groups can look similar. 01001000 and 01101000 differ by one bit, but they give H and h, which are different characters. 01101001 and 01101000 differ by one bit, but they give i and h. If you guess, you can turn a correct string into a word that looks almost right but is wrong in one place. A chart removes that risk.
Another common mistake is grouping by the wrong number of bits. If you group by seven or nine bits, the groups will shift and the characters will be wrong, even if every bit is correct. Always group by eight, from the left, and count the bits in each group before you look anything up. If a group has fewer or more than eight bits, check the input again.
It also helps to write groups in a consistent style. Some sources show groups with spaces between them, and some show a long string with no spaces. Both can be correct, but spaces make checking easier for hand conversion. Pick a clear style for your work and keep it consistent.
Where Binary-to-Text Conversion Is Useful
Binary-to-text conversion is useful when you need to read data that a computer shows in binary, or when you need to check how text is stored. It appears in learning how character encodings work, in debugging, in file inspection, and in exercises that teach the relationship between text and numbers. In those contexts, the goal is understanding, not secrecy.
It is also useful for checking short strings that you receive in binary, such as a label, a code, or a sample from a lesson. Converting a short string by hand can help you understand the structure, and converting it back can confirm that you read it correctly. For longer data, a tool is more practical, but the hand method teaches you what the tool is doing.
Binary also appears in other contexts, such as file formats and network data, where groups of bits do not always represent text. In those contexts, a group of eight bits may represent a number, a color component, or part of a larger value. Do not assume that every binary string is text. Use the right interpretation for the context, and check the source to see what the binary is meant to represent.
Limitations
Binary conversion has clear limitations. First, it covers only the characters in the table you are using. Basic ASCII covers English letters, digits, common punctuation, and control characters. It does not cover every accented letter, symbol, or character in every language. Characters outside that set use other encodings, such as UTF-8, where one character can take more than one byte. If you try to force those characters into a simple ASCII binary table, you will get the wrong result.
Second, binary is not encryption. Anyone with an ASCII table can convert binary back to text. Do not use binary to hide passwords, and do not use it to protect private information. If information needs to be protected, use a method designed for security and follow the guidance for the service you are using. Binary is a representation, not a lock.
Third, binary does not include information about the original formatting, such as font, color, or layout. It only carries the characters. A document converted to binary and back will keep its text, but it will not keep its design. Fourth, hand conversion is slow and error-prone for long strings. A single wrong bit changes a character, and a missing bit shifts the grouping for the rest of the string. For long data, use a trusted tool and check the beginning and end of the result.
Finally, do not guess bits. If the binary string has a total bit count that is not a multiple of eight, or if it contains a character that is not 0 or 1, the input is not valid binary for this conversion. Do not guess the missing bit. Ask for the correct input, or check the source again.
Frequently Asked Questions
How many bits make one character?
In basic ASCII binary-to-text conversion, eight bits make one character. Each group of eight bits is one byte, and each byte represents one character in the ASCII table. If you have sixteen bits, you should get two characters. If the total bit count is not a multiple of eight, check the input before you start.
Is binary the same as encryption?
No. Binary is an encoding, not encryption. Encoding changes the form of data so it can be stored or shown in a different way. Encryption changes data so that only someone with the right key can read it. Binary can be decoded by anyone with a standard table, so it does not protect private information.
Why does 01001000 mean H?
Because in the ASCII table, the character H is assigned the number 72 in decimal, which is 01001000 in binary. The table is a shared agreement. As long as both the writer and the reader use the same table, 01001000 will always mean H in that system. Other tables or encodings can assign different numbers, so check which table your source uses.
What should I do if the binary string is not a multiple of eight bits?
Stop and check the input. A valid binary-to-text string for this system should have a total bit count that divides evenly by eight. A count that does not divide evenly usually means a bit is missing or an extra bit was copied. Do not guess the missing bit, because the grouping after that point will shift. Get the correct string, or check the source again.
Binary to text is a simple idea once you see the group rule. Eight bits make one character, a chart gives you the match, and a round-trip check confirms it. Start with 01001000 01101001, decode it to Hi, and convert it back. Once you can do that reliably, you can handle other short strings, and you will know when binary is a useful representation and when it is not a substitute for security.
Try a Tool
Free, in your browser — no sign-up.
Related Articles
How to Format XML So It Is Easy to Read
Learn how to format XML so it is easy to read: consistent indentation, one element per line, matched tags, unchanged data, and…
Read article →How to Build a Query String Without Breaking Your Link
Build a query string without breaking your link. Learn ?key=value, the & separator, encoding, a worked example, and why secrets stay out…
Read article →How to Convert Base64 Back to an Image
Learn how to convert Base64 back to an image, read a data URI, decode a 1 by 1 PNG example, check the…
Read article →