Text to Binary Converter
Type anything and see the bytes a computer would store for it.
How it works
To write a letter in binary, find its number in the ASCII table and convert that number to base 2. Capital A is 65. In binary that is 1000001, and with a leading zero to fill the byte it is written 01000001.
You can build any byte by subtraction. Start from 128 and work down through 64, 32, 16, 8, 4, 2 and 1. If the weight fits into what is left of your number, write 1 and subtract it. If not, write 0. For 65: 128 does not fit, 64 fits and leaves 1, then nothing fits until the final 1. Result: 01000001.
Every character on a US keyboard fits in one byte. Characters outside basic ASCII, such as é, the euro sign or an emoji, are stored in UTF-8 as two to four bytes, and this converter shows all of them.
Worked example
Hi is H (72) and i (105): 01001000 01101001
Binary alphabet chart
| Letter | Binary | Decimal | Letter | Binary | Decimal |
|---|---|---|---|---|---|
| A | 01000001 | 65 | a | 01100001 | 97 |
| B | 01000010 | 66 | b | 01100010 | 98 |
| C | 01000011 | 67 | c | 01100011 | 99 |
| D | 01000100 | 68 | d | 01100100 | 100 |
| E | 01000101 | 69 | e | 01100101 | 101 |
| F | 01000110 | 70 | f | 01100110 | 102 |
| G | 01000111 | 71 | g | 01100111 | 103 |
| H | 01001000 | 72 | h | 01101000 | 104 |
| I | 01001001 | 73 | i | 01101001 | 105 |
| J | 01001010 | 74 | j | 01101010 | 106 |
| K | 01001011 | 75 | k | 01101011 | 107 |
| L | 01001100 | 76 | l | 01101100 | 108 |
| M | 01001101 | 77 | m | 01101101 | 109 |
| N | 01001110 | 78 | n | 01101110 | 110 |
| O | 01001111 | 79 | o | 01101111 | 111 |
| P | 01010000 | 80 | p | 01110000 | 112 |
| Q | 01010001 | 81 | q | 01110001 | 113 |
| R | 01010010 | 82 | r | 01110010 | 114 |
| S | 01010011 | 83 | s | 01110011 | 115 |
| T | 01010100 | 84 | t | 01110100 | 116 |
| U | 01010101 | 85 | u | 01110101 | 117 |
| V | 01010110 | 86 | v | 01110110 | 118 |
| W | 01010111 | 87 | w | 01110111 | 119 |
| X | 01011000 | 88 | x | 01111000 | 120 |
| Y | 01011001 | 89 | y | 01111001 | 121 |
| Z | 01011010 | 90 | z | 01111010 | 122 |
Digits and space
| Character | Binary | Decimal |
|---|---|---|
| space | 00100000 | 32 |
| 0 | 00110000 | 48 |
| 1 | 00110001 | 49 |
| 2 | 00110010 | 50 |
| 3 | 00110011 | 51 |
| 4 | 00110100 | 52 |
| 5 | 00110101 | 53 |
| 6 | 00110110 | 54 |
| 7 | 00110111 | 55 |
| 8 | 00111000 | 56 |
| 9 | 00111001 | 57 |
Common questions
How many bits is one letter?
Eight bits, or one byte, for English letters, digits and common punctuation in ASCII and UTF-8.
How do you write your name in binary?
Type it in the box above. Each letter becomes eight digits. Upper and lower case letters have different codes, so capitalise it the way you want it read.