Look up ASCII letter codes
ASCII values for A–Z and a–z in decimal and hex, why uppercase and lowercase differ by 32, and how to spot lookalike Unicode letters that are not ASCII.
If you searched for the ASCII value of a, the short answer depends on case. Lowercase a is 97. Uppercase A is 65. Every other unaccented English letter follows from those two starting points. This guide gives the full alphabet in decimal and hexadecimal. It also explains what converting a letter to a number does and does not tell you, and why a character that looks like a plain letter may not be ASCII at all.
Quick answers for common letters
- A = 65, a = 97
- B = 66, b = 98
- C = 67, c = 99
- D = 68, d = 100
- I = 73, i = 105
- N = 78, n = 110
- S = 83, s = 115
- U = 85, u = 117
- Z = 90, z = 122
Uppercase alphabet ASCII values
| Letter | Decimal | Hex |
| A | 65 | 41 |
| B | 66 | 42 |
| C | 67 | 43 |
| D | 68 | 44 |
| E | 69 | 45 |
| F | 70 | 46 |
| G | 71 | 47 |
| H | 72 | 48 |
| I | 73 | 49 |
| J | 74 | 4A |
| K | 75 | 4B |
| L | 76 | 4C |
| M | 77 | 4D |
| N | 78 | 4E |
| O | 79 | 4F |
| P | 80 | 50 |
| Q | 81 | 51 |
| R | 82 | 52 |
| S | 83 | 53 |
| T | 84 | 54 |
| U | 85 | 55 |
| V | 86 | 56 |
| W | 87 | 57 |
| X | 88 | 58 |
| Y | 89 | 59 |
| Z | 90 | 5A |
Lowercase alphabet ASCII values
| Letter | Decimal | Hex |
| a | 97 | 61 |
| b | 98 | 62 |
| c | 99 | 63 |
| d | 100 | 64 |
| e | 101 | 65 |
| f | 102 | 66 |
| g | 103 | 67 |
| h | 104 | 68 |
| i | 105 | 69 |
| j | 106 | 6A |
| k | 107 | 6B |
| l | 108 | 6C |
| m | 109 | 6D |
| n | 110 | 6E |
| o | 111 | 6F |
| p | 112 | 70 |
| q | 113 | 71 |
| r | 114 | 72 |
| s | 115 | 73 |
| t | 116 | 74 |
| u | 117 | 75 |
| v | 118 | 76 |
| w | 119 | 77 |
| x | 120 | 78 |
| y | 121 | 79 |
| z | 122 | 7A |
How the numbering works
ASCII assigns the numbers 0 through 127 to a fixed set of characters. That set includes control codes, digits, punctuation, and the 26 English letters in both cases. Uppercase letters occupy 65–90 and lowercase letters occupy 97–122. Each lowercase letter is exactly 32 higher than its uppercase partner. In binary, the two differ by a single bit: A is 01000001 and a is 01100001. That is why some code changes case by adding or subtracting 32.
The first 128 Unicode code points match ASCII exactly. So U+0041 is A and U+0061 is a. UTF-8 stores those characters as single bytes with the same values. For unaccented English letters, the ASCII value, the Unicode code point, and the UTF-8 byte are therefore the same number.
The term "extended ASCII" is ambiguous. It usually refers to one of several 8-bit code pages that assign different characters to 128–255. Treat any value above 127 as belonging to a specific encoding, not to ASCII itself. Accented letters such as é have no ASCII value.
What converting a letter to its code actually changes
Looking up a letter's ASCII value does not change the text. It reports the number already stored for that character. Writing the numbers out instead of the letters is a real change, however. The result is a different string of digits, not a styled version of the original.
In this context, terms like "reverse," "mirror," or "font" describe separate operations, and none of them is a code lookup:
- Reversing text reorders its characters.
- Mirrored or "fancy font" generators usually swap letters for different Unicode characters.
- CSS styling changes only how text is displayed, not the stored characters.
A code point inspector is what reveals which of these has happened.
Lookalike letters that are not ASCII
A character can look like A without being code 65. Inspecting code points is the reliable way to tell these apart. Visual comparison is not enough, because many fonts draw these characters almost identically. Common lookalikes include:
- Cyrillic capital А, U+0410, and Cyrillic small а, U+0430
- Greek capital Alpha Α, U+0391
- Fullwidth A, U+FF21
- Mathematical bold capital 𝐀, U+1D400, and mathematical bold small 𝐚, U+1D41A, often produced by "bold text" generators
Combining marks are another trap. An accented á may be stored as one precomposed character, U+00E1. It may also be stored as a plain a (97) followed by a combining acute accent, U+0301. A tool that reads only the first code point will report 97 and imply the character is ASCII, which it is not. Use an inspector that lists every code point in the selection.
Checking values yourself
Most programming languages expose code points directly. In Python, ord returns the code point of a single character and chr reverses it. In JavaScript, codePointAt returns the full code point, including characters outside the Basic Multilingual Plane.
# Python
ord('a') # 97
ord('A') # 65
chr(90) # 'Z'
[hex(ord(c)) for c in 'Az'] # ['0x41', '0x7a']
// JavaScript
'a'.codePointAt(0) // 97
'\u{1D400}'.codePointAt(0) // 119808, not 65
Copying, sharing, and accessibility
Plain ASCII letters copy, paste, search, and sort predictably almost everywhere, because they are the most widely supported characters in computing. The problems come from the alternatives.
Lookalike Unicode letters can break search. A query for a word typed in ASCII may not match the same word spelled with Cyrillic or mathematical characters. Lookalikes can also defeat find-and-replace and cause login or domain-name confusion. Screen readers may announce styled mathematical letters by their character names, or skip them, instead of reading the word. Behavior varies by product and version, and no assistive technology was tested for this article. Check the documentation or test with the specific screen reader your audience uses before relying on styled characters.
Replacing letters with their numeric codes in shared content has a different cost. The text is no longer readable as words by people or by screen readers. Searching for the original word will not find it.
Is an ASCII code lookup right for your use?
A lookup is well suited to programming, data validation, debugging encoding problems, and confirming that a character really is the plain letter it appears to be. For the 52 unaccented English letters, the values in the tables above are fixed and do not vary by system.
The main limitation is scope. ASCII covers only those letters, digits, and basic symbols. For accented letters, other scripts, emoji, or anything copied from a styling generator, use a Unicode inspector that reports every code point. Where people will read the text, keep it in plain characters and use code values only behind the scenes.
No specific lookup or inspection tool was evaluated here. Claims about any particular tool's accuracy, privacy, or data handling would need that tool's own documentation.