Text to Binary
Encode text as binary, hex, decimal or octal, or use it as a binary converter to text online: paste the numbers and read the message back.
How to convert text to binary code
Computers store everything as numbers, and at the lowest level those numbers are written as ones and zeros. Each letter, digit, space and symbol has a numeric code, and binary is that code written in base 2. When you convert text to binary here, each character is turned into one or more bytes, and every byte is shown as eight digits.
For example, “Hi” is two characters. “H” has the code 72 and “i” has 105, so the binary is:
01001000 01101001
Type “Hi” into the tool with the binary format selected and you will see exactly that. Students use this to understand how data is stored, teachers use it for class exercises, and puzzle designers use it to hide short messages that can be decoded with the same page.
Encoding and decoding
- Choose the direction first: text into code, or code back into text. Then pick the number format you want to work in.
- Choose the format: binary (0s and 1s), hexadecimal (0–9 and A–F), decimal (0–255) or octal (0–7).
- Type or paste your input. When encoding, choose how the groups are separated: a space, a new line, a comma or nothing at all.
- Copy the result. If you get an error message, check that the input matches the chosen format, for example that binary contains only 0 and 1.
ASCII binary chart for letters and numbers
For basic English letters, digits and punctuation, the codes are the same as in the ASCII table that has been used since the 1960s. A few you may recognise:
| Character | Decimal | Hex | Binary |
|---|---|---|---|
| A | 65 | 41 | 01000001 |
| B | 66 | 42 | 01000010 |
| a | 97 | 61 | 01100001 |
| z | 122 | 7A | 01111010 |
| 0 | 48 | 30 | 00110000 |
| 9 | 57 | 39 | 00111001 |
| Space | 32 | 20 | 00100000 |
| ! | 33 | 21 | 00100001 |
Notice that the uppercase and lowercase version of the same letter differ by exactly one bit (the third from the left). That is why capital A is 01000001 and small a is 01100001.
Binary converter to text online: decode 0s and 1s
Decoding works just as well as encoding, and there is nothing to install. Switch the direction to Code to text, keep the format on binary and paste your ones and zeros. Groups can be separated by spaces or new lines, or written as one long unbroken string, in which case the tool reads it in groups of eight. If the total number of digits is not a multiple of eight, you will get an error, because that means a digit is missing or an extra one was added.
The same works for hexadecimal, decimal and octal. For decimal and octal, separate each value with a space or a comma, and make sure every value is between 0 and 255, since each one represents a single byte.
Why emoji and accented letters produce more digits
The tool uses UTF-8, the encoding that nearly all websites use. In UTF-8, basic English characters take one byte, but other characters use more. An accented letter such as é takes two bytes, a currency symbol such as € takes three, and most emoji take four. So a single 😀 produces four groups of eight digits.
When you decode that binary back, the tool reassembles the bytes into the original character. This round trip works for any text in any language, as long as the bytes are intact.
Binary, hex, decimal and octal: which format to pick
- Binary is the one most people mean. It is long, but it shows the real bits.
- Hexadecimal packs each byte into two characters. Developers use it for colour codes, memory dumps and checksums.
- Decimal gives the plain byte values from 0 to 255, handy for looking up codes in a table.
- Octal uses digits 0–7, and appears in file permissions on Linux and Unix.
This is a way of representing text, not a way of protecting it. Anyone can paste binary into a converter like this one and read it, so never use it to hide anything sensitive.
Binary conversion questions
How do I convert text to binary?
Choose Text to code and Binary, then type your text. Each character appears as a group of eight binary digits.
How do I convert binary to text?
Choose Code to text, paste the binary and the readable text appears. Groups can be separated by spaces or written without any gaps.
Is there a free binary converter to text online that needs no sign-up?
Yes, this one. Open the page, switch to Code to text, paste your binary and copy the decoded text. There is no account to create, and the conversion happens in your browser.
What is the binary for the letter A?
Capital A is 65 in decimal, 41 in hexadecimal and 01000001 in binary.
Does it support accented letters and emoji?
Yes. Everything is converted using UTF-8, so any Unicode character can be encoded and decoded. Characters outside basic English use several bytes.
Why does my binary show an error?
The input does not match the selected format. Binary must contain only 0 and 1 in groups of eight, hex only 0–9 and A–F, and decimal or octal values must be between 0 and 255.
Is binary a form of encryption?
No. It is only another way of writing the same text. Anyone can convert it back, so it offers no security.
Other ways to transform text
Binary is one way to look at text; the character counter shows its size in UTF-8 bytes, the text reverser scrambles it for puzzles, and the case converter is useful when you want to see how upper and lower case change the bit pattern. Another classic code is the morse code generator. For file names and URLs, try the slug generator.