Convert text to binary
Hello in text is 01001000 01100101 01101100 01101100 01101111 in binary. Each digit is multiplied by its place value — the base raised to the digit's position, counting from zero on the right — and the products are added. The page prints every one of those products rather than only the total. The conversion is exact: bases are positional notation for the same number, so nothing is rounded and the result can be checked digit by digit.
Conversion rules checked · How we check
Hello in text
01001000 01100101 01101100 01101100 01101111
How it gets there
- Each character has a code point
- "H" → U+0048 → 01001000 "e" → U+0065 → 01100101 "l" → U+006C → 01101100 "l" → U+006C → 01101100 "o" → U+006F → 01101111
- UTF-8, not ASCII
- A character outside the ASCII range becomes two to four bytes, which is why the count of groups can exceed the count of characters.
- Bytes
- 5 bytes from 5 characters
text to binary, at a glance
Text is numbers underneath: each character has a code point, and the binary is that number written in base two. ASCII fits in seven bits, and UTF-8 uses one to four bytes so that the first 128 code points stay identical to ASCII.
| text | binary |
|---|---|
| A | 01000001 |
| Z | 01011010 |
| a | 01100001 |
| z | 01111010 |
| 0 | 00110000 |
| 9 | 00111001 |
| space | 00100000 |
| ! | 00100001 |
Why is the working shown?
Every other converter of this kind prints the answer and stops. A base is a positional system, so the answer is a sum you can check: each digit is multiplied by the base raised to its position, and the results are added. Going the other way is repeated division, reading the remainders upwards. Neither is a black box, and this page refuses to be one.