How to use the ASCII table
- Scroll the table, or search by character (A), decimal code (65), hex (41) or name (tab).
- Switch to 0–255 to include the extended Windows-1252 characters such as € and é.
- Click any row to copy that character.
How the ASCII table is organised
| Codes | Hex | Contents |
|---|---|---|
| 0–31 | 00–1F | Control characters |
| 32 | 20 | Space |
| 33–47 | 21–2F | Punctuation: ! " # $ % & ' ( ) * + , - . / |
| 48–57 | 30–39 | Digits 0–9 |
| 58–64 | 3A–40 | : ; < = > ? @ |
| 65–90 | 41–5A | Uppercase A–Z |
| 91–96 | 5B–60 | [ \ ] ^ _ ` |
| 97–122 | 61–7A | Lowercase a–z |
| 123–126 | 7B–7E | { | } ~ |
| 127 | 7F | Delete (DEL) |
Convert whole sentences to codes with the text to binary converter, or type symbols on Windows with Alt codes.
Frequently asked questions
ASCII (American Standard Code for Information Interchange) is a character encoding from 1963 that gives 128 characters a number from 0 to 127: control codes (0–31 and 127), the space, digits, punctuation, and upper- and lowercase English letters. UTF-8, the encoding of the modern web, keeps these 128 codes identical, so plain ASCII text is valid UTF-8.
Codes 0–31 and 127 don't print a symbol; they control devices. The ones still common today are 9 (tab), 10 (line feed, a new line on Linux and macOS), 13 (carriage return; Windows uses 13 + 10 for a new line), 27 (escape, used in terminal colour codes) and 0 (null, which ends strings in C).
There's no single extended ASCII. Codes 128–255 were used differently by different code pages. This table shows Windows-1252, the most common one on the web and in Western European Windows text, which includes €, curly quotes and accented letters. In UTF-8 these characters take two or three bytes instead.
On Windows, hold Alt and type the code on the numeric keypad: Alt + 65 gives A. In HTML, write A. In most programming languages, use chr(65) or String.fromCharCode(65). See the Alt codes list for symbols.
A is 65 (01000001) and a is 97 (01100001): only one bit (value 32) differs. That made it cheap for early computers to change case by flipping a single bit.