ASCII Codes for Alphabets A to Z
See ASCII codes for alphabets a to z with decimal, hex, binary, octal, and HTML code values. Copy any value for programming and debugging.
ASCII codes for 'A to Z'
| Symbol | Code | HEX | HTML Number |
|---|---|---|---|
| A | 65 | 41 | A |
| B | 66 | 42 | B |
| C | 67 | 43 | C |
| D | 68 | 44 | D |
| E | 69 | 45 | E |
| F | 70 | 46 | F |
| G | 71 | 47 | G |
| H | 72 | 48 | H |
| I | 73 | 49 | I |
| J | 74 | 4A | J |
| K | 75 | 4B | K |
| L | 76 | 4C | L |
| M | 77 | 4D | M |
| N | 78 | 4E | N |
| O | 79 | 4F | O |
| P | 80 | 50 | P |
| Q | 81 | 51 | Q |
| R | 82 | 52 | R |
| S | 83 | 53 | S |
| T | 84 | 54 | T |
| U | 85 | 55 | U |
| V | 86 | 56 | V |
| W | 87 | 57 | W |
| X | 88 | 58 | X |
| Y | 89 | 59 | Y |
| Z | 90 | 5A | Z |
| a | 97 | 61 | a |
| b | 98 | 62 | b |
| c | 99 | 63 | c |
| d | 100 | 64 | d |
| e | 101 | 65 | e |
| f | 102 | 66 | f |
| g | 103 | 67 | g |
| h | 104 | 68 | h |
| i | 105 | 69 | i |
| j | 106 | 6A | j |
| k | 107 | 6B | k |
| l | 108 | 6C | l |
| m | 109 | 6D | m |
| n | 110 | 6E | n |
| o | 111 | 6F | o |
| p | 112 | 70 | p |
| q | 113 | 71 | q |
| r | 114 | 72 | r |
| s | 115 | 73 | s |
| t | 116 | 74 | t |
| u | 117 | 75 | u |
| v | 118 | 76 | v |
| w | 119 | 77 | w |
| x | 120 | 78 | x |
| y | 121 | 79 | y |
| z | 122 | 7A | z |
What this table shows
This is a focused table of just the letters, A to Z, with the code for each one. It is the quick reference for when you do not need the whole ASCII set with its punctuation and control codes, only the alphabet. For each letter you get its code as a decimal number, the same code in hex, and its HTML numeric code, so you can grab whichever form you need at a glance.
The pattern that makes it easy
The nicest thing about the letter codes is how orderly they are, and once you see it you can work out any of them without the table. The capital letters run in a straight, unbroken sequence: A is 65, B is 66, C is 67, all the way to Z at 90. The lowercase letters do exactly the same, just starting higher: a is 97, b is 98, on to z at 122. So a letter's position in the alphabet plus 64 gives its capital code, since A, the first letter, is 65.
There is one more piece of tidiness. Every lowercase letter is exactly 32 above its capital. A is 65 and a is 97, and 97 minus 65 is 32; the same gap holds for every letter. That constant distance is not a coincidence, it was designed in so that a computer can change a letter between upper and lowercase by a single, simple step.
How to read the columns
Each row is one letter shown a few ways. The Symbol is the letter itself. The Code is its ordinary decimal number, the form you will reach for most. The HEX column is that same value in base 16, common in programming. And the HTML Number is the numeric code for placing the letter in a web page. Pick whichever column matches what you are doing.
When you would use it
This table earns its place in the small, frequent jobs that only involve letters. Writing a bit of code that works with the alphabet, building or solving a simple letter cipher where each letter maps to its number, checking data, or teaching how characters become numbers. For those, having just the letters laid out is faster than scanning the full ASCII table. The moment you need digits, punctuation, or the control codes as well, the complete ASCII Codes Table has the rest.
Questions people ask
What are the codes for A and Z?
Capital A is 65 and capital Z is 90, with the letters in between running in order. Lowercase a is 97 and lowercase z is 122.
Why do capital and lowercase letters have different codes?
Because each is a distinct character with its own code. Lowercase letters sit exactly 32 higher than their capitals, a gap chosen so a computer can switch case in one simple step.
How can I work out a letter's code myself?
Count its position in the alphabet and add 64 for the capital, since A is 65. For the lowercase version, add another 32.
References
- Cerf, V. (1969). RFC 20: ASCII format for Network Interchange. Internet Engineering Task Force (IETF). https://www.rfc-editor.org/rfc/rfc20
Bhabin Khadka is a software engineer and graduate student at the University of New England with experience in backend development and scalable systems. He has a particular interest in file systems and the kinds of technical utilities that depend on dependable handling of structured data. At Eon Tools, he reviews file and document tools, as well as encode and decode tools.