How to use it
- Pick ASCII 0–127 or Extended ASCII 128–255 (Windows-1252).
- Search by character, code (65, 0x41) or name (e.g. tilde).
- Click a row to copy the character and see its Unicode and HTML codes.
- Use the HTML code button to copy the numeric entity.
What ASCII is
ASCII (American Standard Code for Information Interchange) assigns numbers 0–127 to letters, digits, punctuation and control codes. It was standardized in the 1960s and still forms the first 128 characters of Unicode and UTF-8, so the code for "A" is 65 in ASCII, in UTF-8 and in Unicode (U+0041).
| Range | Contents |
|---|---|
| 0–31 | Control characters (non-printing) |
| 32 | Space |
| 33–47 | Punctuation and symbols |
| 48–57 | Digits 0–9 |
| 58–64 | More symbols |
| 65–90 | Uppercase A–Z |
| 91–96 | Symbols |
| 97–122 | Lowercase a–z |
| 123–126 | Symbols |
| 127 | DEL |
Useful patterns in the table
- Uppercase and lowercase letters differ by exactly 32 (one bit): A = 65, a = 97. Flipping bit 5 toggles the case.
- Digits 0–9 are 48–57, so a digit's value is its code minus 48.
- Control characters are the letter codes minus 64, which is why Ctrl + M sends carriage return (13) and Ctrl + I sends tab (9).
| Char | Dec | Hex | Binary |
|---|---|---|---|
| Space | 32 | 20 | 00100000 |
| 0 | 48 | 30 | 00110000 |
| A | 65 | 41 | 01000001 |
| a | 97 | 61 | 01100001 |
| ~ | 126 | 7E | 01111110 |
Control characters you will meet
Most of the 32 control codes are relics of teleprinters, but a few are everywhere:
- LF (10, \n): line feed, the newline on Linux and macOS.
- CR (13, \r): carriage return; Windows ends lines with CR LF.
- HT (9, \t): horizontal tab.
- ESC (27): escape, the start of terminal color and cursor codes.
- NUL (0): the string terminator in C.
- BEL (7): rings the terminal bell.
- DEL (127): delete.
The table lists the abbreviation and full name for each, and you can search by name, for example "carriage" or "escape".
Extended ASCII (128–255)
"Extended ASCII" is not one standard: many 8-bit code pages used the upper half differently. On US and Western European Windows systems the most common is Windows-1252, a superset of ISO-8859-1 (Latin-1) that adds curly quotes, the euro sign (€ at 128), the em dash and the trademark sign in the 128–159 range. Five positions (129, 141, 143, 144, 157) are unassigned.
The tool builds this range with your browser's built-in encoding tables, so the characters are exact. On Windows, many of these characters can be typed with Alt + 0 + code on the numeric keypad, for example Alt + 0169 for ©.
Codes for programmers
Click any row to see its decimal, hex, octal and binary values, its Unicode code point and its HTML numeric entity (for example © for ©). The character is copied to your clipboard automatically. The search accepts plain numbers (65), hex (0x41, \x41 or %41) and names.
For whole strings rather than single characters, convert text with the binary translator or escape it with Unicode escape. Converting between number bases? Try decimal to hex.
Frequently asked questions
What is the ASCII code for A?
Uppercase A is 65 (hex 41). Lowercase a is 97 (hex 61).
How many characters are in ASCII?
128, numbered 0 to 127. Codes 0–31 and 127 are control characters; 32–126 are printable.
What is extended ASCII?
A loose name for 8-bit code pages that add characters 128–255. Windows-1252 is the most common on US and Western systems.
Is ASCII the same as UTF-8?
The first 128 characters are identical. UTF-8 encodes all other Unicode characters with two to four bytes.
How do I type an ASCII character with Alt codes?
On Windows, hold Alt and type 0 plus the decimal code on the numeric keypad, for example Alt + 0169 for ©.
Last updated: November 12, 2026