Text · Number systems
Binary alphabet chart.
See each letter, digit and symbol as an 8-bit binary byte, or type a word and get its binary back.
Short answer: In 8-bit ASCII binary, A is 01000001, B is 01000010, and a is 01100001. The word "Hi" is 01001000 01101001.
How letters become binary
RFC 20, the 1969 "ASCII format for Network Interchange", defines a 7-bit code. Each character's number is built from the column (bits b7 b6 b5) and row (bits b4 to b1) of its table, so uppercase A, in column 4 and row 1, is 100 0001. Computers store text one byte at a time, so the 7-bit code is padded with a leading 0 to give the 8-bit form in this chart: A is 01000001. Codes above 127 are not part of RFC 20.
Uppercase letters
| Char | Decimal | Binary (8-bit) | Char | Decimal | Binary (8-bit) |
|---|---|---|---|---|---|
| A | 65 | 01000001 | N | 78 | 01001110 |
| B | 66 | 01000010 | O | 79 | 01001111 |
| C | 67 | 01000011 | P | 80 | 01010000 |
| D | 68 | 01000100 | Q | 81 | 01010001 |
| E | 69 | 01000101 | R | 82 | 01010010 |
| F | 70 | 01000110 | S | 83 | 01010011 |
| G | 71 | 01000111 | T | 84 | 01010100 |
| H | 72 | 01001000 | U | 85 | 01010101 |
| I | 73 | 01001001 | V | 86 | 01010110 |
| J | 74 | 01001010 | W | 87 | 01010111 |
| K | 75 | 01001011 | X | 88 | 01011000 |
| L | 76 | 01001100 | Y | 89 | 01011001 |
| M | 77 | 01001101 | Z | 90 | 01011010 |
Lowercase letters
| Char | Decimal | Binary (8-bit) | Char | Decimal | Binary (8-bit) |
|---|---|---|---|---|---|
| a | 97 | 01100001 | n | 110 | 01101110 |
| b | 98 | 01100010 | o | 111 | 01101111 |
| c | 99 | 01100011 | p | 112 | 01110000 |
| d | 100 | 01100100 | q | 113 | 01110001 |
| e | 101 | 01100101 | r | 114 | 01110010 |
| f | 102 | 01100110 | s | 115 | 01110011 |
| g | 103 | 01100111 | t | 116 | 01110100 |
| h | 104 | 01101000 | u | 117 | 01110101 |
| i | 105 | 01101001 | v | 118 | 01110110 |
| j | 106 | 01101010 | w | 119 | 01110111 |
| k | 107 | 01101011 | x | 120 | 01111000 |
| l | 108 | 01101100 | y | 121 | 01111001 |
| m | 109 | 01101101 | z | 122 | 01111010 |
Digits
| Char | Decimal | Binary (8-bit) | Char | Decimal | Binary (8-bit) |
|---|---|---|---|---|---|
| 0 | 48 | 00110000 | 5 | 53 | 00110101 |
| 1 | 49 | 00110001 | 6 | 54 | 00110110 |
| 2 | 50 | 00110010 | 7 | 55 | 00110111 |
| 3 | 51 | 00110011 | 8 | 56 | 00111000 |
| 4 | 52 | 00110100 | 9 | 57 | 00111001 |
Punctuation and the space
| Char | Decimal | Binary (8-bit) | Char | Decimal | Binary (8-bit) |
|---|---|---|---|---|---|
| 32 | 00100000 | ; | 59 | 00111011 | |
| ! | 33 | 00100001 | < | 60 | 00111100 |
| " | 34 | 00100010 | = | 61 | 00111101 |
| # | 35 | 00100011 | > | 62 | 00111110 |
| $ | 36 | 00100100 | ? | 63 | 00111111 |
| % | 37 | 00100101 | @ | 64 | 01000000 |
| & | 38 | 00100110 | [ | 91 | 01011011 |
| ' | 39 | 00100111 | \ | 92 | 01011100 |
| ( | 40 | 00101000 | ] | 93 | 01011101 |
| ) | 41 | 00101001 | ^ | 94 | 01011110 |
| * | 42 | 00101010 | _ | 95 | 01011111 |
| + | 43 | 00101011 | ` | 96 | 01100000 |
| , | 44 | 00101100 | { | 123 | 01111011 |
| - | 45 | 00101101 | | | 124 | 01111100 |
| . | 46 | 00101110 | } | 125 | 01111101 |
| / | 47 | 00101111 | ~ | 126 | 01111110 |
| : | 58 | 00111010 |
Patterns worth knowing
- Case is one bit. A is 01000001 and a is 01100001; the lowercase letter has the 32 bit set. That holds for every letter pair.
- Digits end in their own value. The digits 0 to 9 sit in column 3, so they start 0011 and the last four bits are the digit: 5 is 00110101.
- Letters count up. A to Z run from 65 to 90, so the position in the alphabet is the code minus 64.
Worked example: "Hi"
H is code 72, which is 01001000. i is code 105, which is 01101001. Together, "Hi" is 01001000 01101001, two bytes. To go the other way, convert each group of eight bits back to a number and look it up: 01001000 is 72, so H.
What this page does not cover
Accented letters, emoji and other languages are encoded with Unicode (UTF-8), which uses more than one byte per character and is not shown in this ASCII chart. The tool skips characters outside ASCII and tells you which ones.
Frequently asked questions
What is A in binary?
Uppercase A is 01000001 in 8-bit ASCII (decimal 65). Lowercase a is 01100001 (decimal 97).
How do you write the alphabet in binary?
Take each letter's ASCII number, A = 65 through Z = 90 and a = 97 through z = 122, and write it as an 8-bit binary number. The chart above lists all 52.
Why is the lowercase letter different from the uppercase one by one bit?
In the ASCII table the lowercase letters sit 32 places after the uppercase ones, which is the single bit 00100000.
How many bits is a letter?
ASCII defines 7 bits per character. In practice each character is stored in an 8-bit byte with a leading 0, which is the form used here.
Can I convert binary back to text?
Yes. Choose "Binary to text" and paste groups of eight bits separated by spaces. Groups that are not printable ASCII (32 to 126) are skipped.
What standard defines these codes?
RFC 20, ASCII format for Network Interchange, dated 16 October 1969.
Sources
Retrieved
Runs entirely in your browser. Nothing you type is sent or stored.
ASCII only
This chart covers the 128-character ASCII code. For other languages and emoji, characters need more than one byte under Unicode (UTF-8).