How to use the ASCII table
- Find a character by scrolling, or type in the filter box: a number (65), a hex code (0x41), a character or a name such as tab.
- Use Control, Printable or Extended to show just one part of the table. An exact match, like the letter A or code 65, is listed first.
- Click any highlighted value to copy it: the character, its decimal, hex or binary code, or its HTML code.
Reading the table
Each row is one character. Dec is the number in everyday decimal, Hex in hexadecimal (as used in programming and URLs), Oct in octal and Binary as the 8 bits a computer stores. HTML is the numeric code you can type in a web page to show the character, such as @ for @.
The printable characters fall into neat blocks:
| Range | Characters |
|---|---|
| 32 to 47 | Space and punctuation: ! “ # $ % & ’ ( ) * + , - . / |
| 48 to 57 | Digits 0 to 9 |
| 65 to 90 | Capital letters A to Z |
| 97 to 122 | Small letters a to z |
| 58 to 64, 91 to 96, 123 to 126 | More punctuation and symbols |
Handy patterns
- Digits: the code for a digit is 48 plus its value, so 7 is 55. Subtracting 48 turns a digit character into its number.
- Letters: A to Z are 65 to 90 and a to z are 97 to 122. Adding 32 makes a letter lowercase.
- New lines: Windows ends lines with CR LF (13, 10), while Linux and macOS use LF (10) alone. That difference is behind many “extra blank line” problems when files move between systems.
To turn whole words into codes, use text to binary or text to hex.