Binary Code Alphabet
The binary code alphabet writes each letter as an 8-bit byte from its US-ASCII code: A is 01000001 (65) and a is 01100001 (97). The tables below list A-Z and a-z with decimal, hex and the A1Z26 position.
Uppercase letters A-Z in binary
| Letter | Binary (8-bit) | Decimal | Hex | A1Z26 |
|---|---|---|---|---|
| A | 01000001 | 65 | 41 | 1 |
| B | 01000010 | 66 | 42 | 2 |
| C | 01000011 | 67 | 43 | 3 |
| D | 01000100 | 68 | 44 | 4 |
| E | 01000101 | 69 | 45 | 5 |
| F | 01000110 | 70 | 46 | 6 |
| G | 01000111 | 71 | 47 | 7 |
| H | 01001000 | 72 | 48 | 8 |
| I | 01001001 | 73 | 49 | 9 |
| J | 01001010 | 74 | 4A | 10 |
| K | 01001011 | 75 | 4B | 11 |
| L | 01001100 | 76 | 4C | 12 |
| M | 01001101 | 77 | 4D | 13 |
| N | 01001110 | 78 | 4E | 14 |
| O | 01001111 | 79 | 4F | 15 |
| P | 01010000 | 80 | 50 | 16 |
| Q | 01010001 | 81 | 51 | 17 |
| R | 01010010 | 82 | 52 | 18 |
| S | 01010011 | 83 | 53 | 19 |
| T | 01010100 | 84 | 54 | 20 |
| U | 01010101 | 85 | 55 | 21 |
| V | 01010110 | 86 | 56 | 22 |
| W | 01010111 | 87 | 57 | 23 |
| X | 01011000 | 88 | 58 | 24 |
| Y | 01011001 | 89 | 59 | 25 |
| Z | 01011010 | 90 | 5A | 26 |
Lowercase letters a-z in binary
| Letter | Binary (8-bit) | Decimal | Hex | A1Z26 |
|---|---|---|---|---|
| a | 01100001 | 97 | 61 | 1 |
| b | 01100010 | 98 | 62 | 2 |
| c | 01100011 | 99 | 63 | 3 |
| d | 01100100 | 100 | 64 | 4 |
| e | 01100101 | 101 | 65 | 5 |
| f | 01100110 | 102 | 66 | 6 |
| g | 01100111 | 103 | 67 | 7 |
| h | 01101000 | 104 | 68 | 8 |
| i | 01101001 | 105 | 69 | 9 |
| j | 01101010 | 106 | 6A | 10 |
| k | 01101011 | 107 | 6B | 11 |
| l | 01101100 | 108 | 6C | 12 |
| m | 01101101 | 109 | 6D | 13 |
| n | 01101110 | 110 | 6E | 14 |
| o | 01101111 | 111 | 6F | 15 |
| p | 01110000 | 112 | 70 | 16 |
| q | 01110001 | 113 | 71 | 17 |
| r | 01110010 | 114 | 72 | 18 |
| s | 01110011 | 115 | 73 | 19 |
| t | 01110100 | 116 | 74 | 20 |
| u | 01110101 | 117 | 75 | 21 |
| v | 01110110 | 118 | 76 | 22 |
| w | 01110111 | 119 | 77 | 23 |
| x | 01111000 | 120 | 78 | 24 |
| y | 01111001 | 121 | 79 | 25 |
| z | 01111010 | 122 | 7A | 26 |
Example: first letters
- A = 65 = 01000001
- B = 66 = 01000010
- C = 67 = 01000011
- a = 97 = 01100001
- b = 98 = 01100010
- c = 99 = 01100011
How the binary alphabet is built
US-ASCII gives every basic Latin letter a number: capital letters run from 65 to 90 and lowercase letters from 97 to 122. Writing that number in binary with eight digits gives the byte. Every row in the tables is calculated from the character code, not typed.
Lowercase letters are the capital plus 32, which is the same as setting a single bit (the 32 bit, 00100000). That is why 01000001 (A) and 01100001 (a) differ in only one position.
Reading and writing a word
To spell a word, look up each letter and write its byte, separated by spaces. To read binary, split the bits into groups of 8 and look each group up. The binary to text and text to binary tools do this automatically, and UTF-8 encodes these letters identically to ASCII.
The last column, A1Z26, is the position of the letter in the alphabet (A is 1, Z is 26). It is a different code, used by the A1Z26 cipher, and is shown here only for comparison.
Not the same as a cipher
Binary code is an encoding, not encryption: anyone with the table can read it. Spaces and punctuation have codes too (space is 00100000), and accented letters need more than one byte in UTF-8, so they are not in this table.
Frequently asked questions
- What is the binary code for A?
- 01000001, which is 65 in decimal and 41 in hex.
- Why are there different codes for capital and small letters?
- They are different characters in ASCII. Lowercase is the capital plus 32.
- Do all letters use 8 bits?
- ASCII needs only 7 bits, but bytes are 8 bits, so a leading 0 is added.
- How do I translate a whole word?
- Use the text to binary converter, which applies this table to every character.
Standards and references
- The Unicode Standard: defines code points and the UTF-8 encoding form.
- RFC 3629: UTF-8, a transformation format of ISO 10646: specifies how code points map to 1-4 bytes and which byte sequences are invalid.
- ANSI X3.4 (US-ASCII), as described in RFC 20: the 7-bit American Standard Code for Information Interchange, 128 codes.