What Text to Binary Converter does
Type any text and the converter writes out each byte as eight binary digits separated by spaces. Hello becomes 01001000 01100101 01101100 01101100 01101111. Plain English letters, digits and punctuation are one byte each, so one character gives one 8-bit group; text is encoded as UTF-8, so an accented letter gives two groups and an emoji gives four. The Number base menu shows the same bytes in octal, decimal or hexadecimal instead, and the Code → text action reverses the process: paste space-separated or comma-separated byte values and read the decoded words.
Binary alphabet chart: letters A to Z in binary, decimal and hex
Every value below is the converter's own output for that single letter.
| Upper | Binary | Decimal | Hex | Lower | Binary | Decimal | Hex |
|---|---|---|---|---|---|---|---|
| A | 01000001 | 65 | 41 | a | 01100001 | 97 | 61 |
| B | 01000010 | 66 | 42 | b | 01100010 | 98 | 62 |
| C | 01000011 | 67 | 43 | c | 01100011 | 99 | 63 |
| D | 01000100 | 68 | 44 | d | 01100100 | 100 | 64 |
| E | 01000101 | 69 | 45 | e | 01100101 | 101 | 65 |
| F | 01000110 | 70 | 46 | f | 01100110 | 102 | 66 |
| G | 01000111 | 71 | 47 | g | 01100111 | 103 | 67 |
| H | 01001000 | 72 | 48 | h | 01101000 | 104 | 68 |
| I | 01001001 | 73 | 49 | i | 01101001 | 105 | 69 |
| J | 01001010 | 74 | 4a | j | 01101010 | 106 | 6a |
| K | 01001011 | 75 | 4b | k | 01101011 | 107 | 6b |
| L | 01001100 | 76 | 4c | l | 01101100 | 108 | 6c |
| M | 01001101 | 77 | 4d | m | 01101101 | 109 | 6d |
| N | 01001110 | 78 | 4e | n | 01101110 | 110 | 6e |
| O | 01001111 | 79 | 4f | o | 01101111 | 111 | 6f |
| P | 01010000 | 80 | 50 | p | 01110000 | 112 | 70 |
| Q | 01010001 | 81 | 51 | q | 01110001 | 113 | 71 |
| R | 01010010 | 82 | 52 | r | 01110010 | 114 | 72 |
| S | 01010011 | 83 | 53 | s | 01110011 | 115 | 73 |
| T | 01010100 | 84 | 54 | t | 01110100 | 116 | 74 |
| U | 01010101 | 85 | 55 | u | 01110101 | 117 | 75 |
| V | 01010110 | 86 | 56 | v | 01110110 | 118 | 76 |
| W | 01010111 | 87 | 57 | w | 01110111 | 119 | 77 |
| X | 01011000 | 88 | 58 | x | 01111000 | 120 | 78 |
| Y | 01011001 | 89 | 59 | y | 01111001 | 121 | 79 |
| Z | 01011010 | 90 | 5a | z | 01111010 | 122 | 7a |
Capital letters all start 010 and lowercase letters all start 011. The last five bits give the letter's position in the alphabet: A is 00001, B is 00010, Z is 11010.
Digits, space and punctuation in binary
A typed digit is stored as a character, not as the number itself, so the character 5 is 00110101 rather than 101.
| Character | Binary | Decimal | Hex |
|---|---|---|---|
| Space | 00100000 | 32 | 20 |
| Line break | 00001010 | 10 | 0a |
| 0 | 00110000 | 48 | 30 |
| 1 | 00110001 | 49 | 31 |
| 2 | 00110010 | 50 | 32 |
| 3 | 00110011 | 51 | 33 |
| 4 | 00110100 | 52 | 34 |
| 5 | 00110101 | 53 | 35 |
| 6 | 00110110 | 54 | 36 |
| 7 | 00110111 | 55 | 37 |
| 8 | 00111000 | 56 | 38 |
| 9 | 00111001 | 57 | 39 |
| Period . | 00101110 | 46 | 2e |
| Comma , | 00101100 | 44 | 2c |
| Exclamation mark ! | 00100001 | 33 | 21 |
| Question mark ? | 00111111 | 63 | 3f |
| Apostrophe ' | 00100111 | 39 | 27 |
| Hyphen - | 00101101 | 45 | 2d |
| At sign @ | 01000000 | 64 | 40 |
| Hash # | 00100011 | 35 | 23 |
| Ampersand & | 00100110 | 38 | 26 |
To convert a number's value between bases (for example 255 to 11111111), use the number base converter instead; this page converts characters.
Common words and phrases converted to binary
hi
hi
01101000 01101001
yes
yes
01111001 01100101 01110011
ok
ok
01101111 01101011
love
love
01101100 01101111 01110110 01100101
mom
mom
01101101 01101111 01101101
I love you
I love you
01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101
Ten bytes: eight letters plus two spaces, each space being 00100000.
Hello World
Hello World
01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100
The same word in other bases
Hello with Number base set to Octal, Decimal, then Hexadecimal
110 145 154 154 157 in octal, 72 101 108 108 111 in decimal, 48 65 6c 6c 6f in hexadecimal
How to convert a letter to binary by hand
character -> ASCII number -> sum of place values 128, 64, 32, 16, 8, 4, 2, 1
Start with the letter's ASCII number from the chart, for example H = 72. Work through the eight place values from left to right, writing 1 if the value fits into what is left and 0 if it does not. 128 does not fit (0). 64 fits, leaving 8 (1). 32 and 16 do not fit (0, 0). 8 fits, leaving 0 (1). 4, 2 and 1 do not fit (0, 0, 0). Reading the digits in order gives 01001000. Going the other way, add the place values that have a 1 under them: 01101001 is 64 + 32 + 8 + 1 = 105, which is the letter i.
Characters that need more than 8 bits
The converter uses UTF-8, the encoding used by almost all web pages and modern files. Compare the Characters and Bytes figures in the Details panel to spot these.
| Character | Bytes | Binary output |
|---|---|---|
| A | 1 | 01000001 |
| é | 2 | 11000011 10101001 |
| ñ | 2 | 11000011 10110001 |
| € | 3 | 11100010 10000010 10101100 |
| 😀 | 4 | 11110000 10011111 10011000 10000000 |
The first byte of a multi-byte character starts with 110, 1110 or 11110 to signal two, three or four bytes, and every following byte starts with 10. Decoding only part of such a sequence, for example 11000011 alone, gives a replacement character.
Binary to text: what the decoder accepts and rejects
- Bytes must be separated by spaces, commas or line breaks. 01001000 01101001, or the same two groups on separate lines, decodes to Hi.
- Leading zeros are optional: 1001000 1100101 1101100 1101100 1101111 decodes to Hello.
- An unbroken run such as 0100100001100101 is rejected, because the tool does not split it into groups of eight for you. Insert a space after every eighth digit first.
- Each value must be between 0 and 255 in the selected base. In decimal, 256 produces the message "256" is not a valid base-10 byte value.
- The Number base must match the input. Binary groups read as decimal are rejected or produce the wrong letters.
- A stray character inside a group is not always reported. Each value is read up to the first character that does not belong to the base, so 0110100x is read as 0110100 and 01001002 as 0100100, and the decoded letter is wrong. An error appears only when a group has no valid leading digit or is above 255.
- Hexadecimal input can be upper or lower case and may carry a 0x prefix: 4A 4B decodes to JK. A joined string such as 48656c6c6f needs spaces between each pair.
Step by step
- 1
Type or paste your text into the Input box. It opens with Hello as a sample.
- 2
Leave Action on Text → code to turn text into numbers, or choose Code → text to decode.
- 3
Pick a Number base: Binary (base 2), Octal (base 8), Decimal (base 10) or Hexadecimal (base 16).
- 4
Read the Encoded panel and copy it. The Details panel shows Characters, Bytes and the Base.
- 5
When decoding, separate every byte with a space, comma or line break and make sure Number base matches the values you pasted.