📖 Guide
ASCII Table — Complete Reference
Full ASCII character table with decimal, hex, and character values for control characters, printable characters, and escape sequences.
112 commands across 6 categories
Control Characters (0-31)Digits (48-57)Uppercase Letters (65-90)Lowercase Letters (97-122)Special CharactersCommon Escape Sequences
Control Characters (0-31)
| Command | Description |
|---|---|
0 (0x00) NUL | Null character — string terminator in C/C++ |
1 (0x01) SOH | Start of Heading |
2 (0x02) STX | Start of Text |
3 (0x03) ETX | End of Text — Ctrl+C interrupt signal |
4 (0x04) EOT | End of Transmission — Ctrl+D EOF signal |
5 (0x05) ENQ | Enquiry |
6 (0x06) ACK | Acknowledge |
7 (0x07) BEL | Bell — triggers audible alert (\a) |
8 (0x08) BS | Backspace (\b) |
9 (0x09) HT | Horizontal Tab (\t) |
10 (0x0A) LF | Line Feed (\n) — Unix newline |
11 (0x0B) VT | Vertical Tab (\v) |
12 (0x0C) FF | Form Feed (\f) — page break |
13 (0x0D) CR | Carriage Return (\r) — Windows newline is CR+LF |
14 (0x0E) SO | Shift Out |
15 (0x0F) SI | Shift In |
16 (0x10) DLE | Data Link Escape |
17 (0x11) DC1 | Device Control 1 (XON — resume transmission) |
18 (0x12) DC2 | Device Control 2 |
19 (0x13) DC3 | Device Control 3 (XOFF — pause transmission) |
20 (0x14) DC4 | Device Control 4 |
21 (0x15) NAK | Negative Acknowledge |
22 (0x16) SYN | Synchronous Idle |
23 (0x17) ETB | End of Transmission Block |
24 (0x18) CAN | Cancel |
25 (0x19) EM | End of Medium |
26 (0x1A) SUB | Substitute — Ctrl+Z (EOF on Windows, suspend on Unix) |
27 (0x1B) ESC | Escape — starts ANSI escape sequences |
28 (0x1C) FS | File Separator |
29 (0x1D) GS | Group Separator |
30 (0x1E) RS | Record Separator |
31 (0x1F) US | Unit Separator |
Digits (48-57)
| Command | Description |
|---|---|
48 (0x30) '0' | Digit zero. Digits span 0x30-0x39 |
49 (0x31) '1' | Digit one |
50 (0x32) '2' | Digit two |
51 (0x33) '3' | Digit three |
52 (0x34) '4' | Digit four |
53 (0x35) '5' | Digit five |
54 (0x36) '6' | Digit six |
55 (0x37) '7' | Digit seven |
56 (0x38) '8' | Digit eight |
57 (0x39) '9' | Digit nine. To convert char to int: charCode - 48 |
Uppercase Letters (65-90)
| Command | Description |
|---|---|
65 (0x41) 'A' | Uppercase A. Letters start at 0x41 |
66 (0x42) 'B' | Uppercase B |
67 (0x43) 'C' | Uppercase C |
68 (0x44) 'D' | Uppercase D |
69 (0x45) 'E' | Uppercase E |
70 (0x46) 'F' | Uppercase F — last hex digit letter |
71-76 (0x47-0x4C) G-L | Uppercase G through L |
77-82 (0x4D-0x52) M-R | Uppercase M through R |
83-88 (0x53-0x58) S-X | Uppercase S through X |
89 (0x59) 'Y' | Uppercase Y |
90 (0x5A) 'Z' | Uppercase Z. To lowercase: charCode + 32 (or OR 0x20) |
Lowercase Letters (97-122)
| Command | Description |
|---|---|
97 (0x61) 'a' | Lowercase a. Lowercase starts at 0x61 |
98 (0x62) 'b' | Lowercase b |
99 (0x63) 'c' | Lowercase c |
100 (0x64) 'd' | Lowercase d |
101 (0x65) 'e' | Lowercase e |
102 (0x66) 'f' | Lowercase f — last hex digit letter |
103-108 (0x67-0x6C) g-l | Lowercase g through l |
109-114 (0x6D-0x72) m-r | Lowercase m through r |
115-120 (0x73-0x78) s-x | Lowercase s through x |
121 (0x79) 'y' | Lowercase y |
122 (0x7A) 'z' | Lowercase z. To uppercase: charCode - 32 (or AND 0xDF) |
Special Characters
| Command | Description |
|---|---|
32 (0x20) ' ' | Space — first printable character |
33 (0x21) '!' | Exclamation mark |
34 (0x22) '"' | Double quote — string delimiter in many languages |
35 (0x23) '#' | Hash / number sign / pound — comments, hex colors, markdown headings |
36 (0x24) '$' | Dollar sign — variables in shell/PHP/JS template literals |
37 (0x25) '%' | Percent — modulo operator, URL encoding prefix |
38 (0x26) '&' | Ampersand — logical AND, HTML entities, shell background |
39 (0x27) "'" | Single quote / apostrophe — string delimiter |
40-41 (0x28-0x29) '(' ')' | Parentheses — function calls, grouping |
42 (0x2A) '*' | Asterisk — multiplication, glob wildcard, pointer dereference |
43 (0x2B) '+' | Plus sign — addition, URL space encoding |
44 (0x2C) ',' | Comma — separator in lists, function arguments |
45 (0x2D) '-' | Hyphen/minus — subtraction, CLI flags, negative numbers |
46 (0x2E) '.' | Period/dot — decimal point, object access, file extensions |
47 (0x2F) '/' | Forward slash — division, URL paths, regex delimiter |
58 (0x3A) ':' | Colon — key-value separator, ternary operator, slicing |
59 (0x3B) ';' | Semicolon — statement terminator in C/JS/Java |
60 (0x3C) '<' | Less than — comparison, HTML tags, shell redirect input |
61 (0x3D) '=' | Equals — assignment, comparison (==), arrow functions (=>) |
62 (0x3E) '>' | Greater than — comparison, HTML tags, shell redirect output |
63 (0x3F) '?' | Question mark — ternary operator, optional chaining, URL query string |
64 (0x40) '@' | At sign — email addresses, decorators, scoped npm packages |
91 (0x5B) '[' | Left square bracket — arrays, indexing |
92 (0x5C) '\' | Backslash — escape character, Windows path separator |
93 (0x5D) ']' | Right square bracket — arrays, indexing |
94 (0x5E) '^' | Caret — XOR, regex start-of-line, semver compatible |
95 (0x5F) '_' | Underscore — variable names, numeric separator, unused variables |
96 (0x60) '`' | Backtick/grave accent — template literals in JS, code in markdown |
123 (0x7B) '{' | Left curly brace — blocks, objects, destructuring |
124 (0x7C) '|' | Pipe — logical OR, shell pipe, union types |
125 (0x7D) '}' | Right curly brace — blocks, objects |
126 (0x7E) '~' | Tilde — home directory, bitwise NOT, semver approximately |
127 (0x7F) DEL | Delete — last ASCII character, non-printable |
Common Escape Sequences
| Command | Description |
|---|---|
\n (0x0A) | Newline / Line Feed — Unix line ending |
\r (0x0D) | Carriage Return — used with \n for Windows line endings (\r\n) |
\t (0x09) | Horizontal Tab — indentation, TSV files |
\0 (0x00) | Null character — C string terminator |
\\ (0x5C) | Literal backslash |
\' (0x27) | Literal single quote inside single-quoted strings |
\" (0x22) | Literal double quote inside double-quoted strings |
\a (0x07) | Bell/alert — audible beep |
\b (0x08) | Backspace |
\f (0x0C) | Form feed — page break in printing |
\v (0x0B) | Vertical tab |
\xNNe.g. \x41 = 'A' | Hex escape — character by hex code |
\uNNNNe.g. \u0041 = 'A', \u00E9 = 'é' | Unicode escape (4 hex digits) |
\u{NNNNNN}e.g. \u{1F600} = '😀' | Unicode escape (variable length, ES6+) |
\NNNe.g. \101 = 'A' | Octal escape — character by octal code |
📖 Free, searchable command reference. Bookmark this page for quick access.