-->
Adventures & experiences in contemporary technology
Having found myself looking for this from time to time, here is a table of ASCII characters and their representation in decimal, hexadecimal and octal forms together with the corresponding HTML entities. The first on the list are various non-printing characters and I have found myself using the TAB one in programming quiet often over the years. Currently, only the core ASCII characters appear but those from the extended set may be added later.
Decimal | Hexadecimal | Octal | Character | HTML |
---|---|---|---|---|
0 | 0 | 000 | NUL (null) | |
1 | 1 | 001 | SOH (start of heading) | |
2 | 2 | 002 | STX (start of text) | |
3 | 3 | 003 | ETX (end of text) | |
4 | 4 | 004 | ETX (end of transmission) | |
5 | 5 | 005 | ENQ (enquiry) | |
6 | 6 | 006 | ACK (acknowledge) | |
7 | 7 | 007 | BEL (bell) | |
8 | 8 | 010 | BS (backspace) | |
9 | 9 | 011 | TAB (horizontal tab) | |
10 | A | 012 | LF (NL line feed, newline) | |
11 | B | 013 | VT (vertical tab) | |
12 | C | 014 | FF (NP form feed, new page) | |
13 | D | 015 | CR (carriage return) | |
14 | E | 016 | SO (shift out) | |
15 | F | 017 | SI (shift in) | |
16 | 10 | 020 | DLE (data link escape) | |
17 | 11 | 021 | DC1 (device control 1) | |
18 | 12 | 022 | DC2 (device control 2) | |
19 | 13 | 023 | DC3 (device control 3) | |
20 | 14 | 024 | DC4 (device control 4) | |
21 | 15 | 025 | NAK (negative acknowledge) | |
22 | 16 | 026 | SYN (synchronous idle) | |
23 | 17 | 027 | ETB (end of transmission block) | |
24 | 18 | 030 | CAN (cancel) | |
25 | 19 | 031 | EM (end of medium) | |
26 | 1A | 032 | SUB (substitution) | |
27 | 1B | 033 | ESC (escape) | |
28 | 1C | 034 | FS (file separator) | |
29 | 1D | 035 | GS (group separator) | |
30 | 1E | 036 | RS (record separator) | |
31 | 1F | 037 | US (unit separator) | |
32 | 20 | 040 | space |   |
33 | 21 | 041 | ! | ! |
34 | 22 | 042 | “ | " |
35 | 23 | 043 | # | # |
36 | 24 | 044 | $ | $ |
37 | 25 | 045 | % | % |
38 | 26 | 046 | & | & |
39 | 27 | 047 | ‘ | ' |
40 | 28 | 050 | ( | ( |
41 | 29 | 051 | ) | ) |
42 | 2A | 052 | * | * |
43 | 2B | 053 | + | + |
44 | 2C | 054 | , | , |
45 | 2D | 055 | -- | - |
46 | 2E | 056 | . | . |
47 | 2F | 057 | / | / |
48 | 30 | 060 | 0 | 0 |
49 | 31 | 061 | 1 | 1 |
50 | 32 | 062 | 2 | 2 |
51 | 33 | 063 | 3 | 3 |
52 | 34 | 064 | 4 | 4 |
53 | 35 | 065 | 5 | 5 |
54 | 36 | 066 | 6 | 6 |
55 | 37 | 067 | 7 | 7 |
56 | 38 | 070 | 8 | 8 |
57 | 39 | 071 | 9 | 9 |
58 | 3A | 072 | : | : |
59 | 3B | 073 | ; | ; |
60 | 3C | 074 | < | < |
61 | 3D | 075 | = | = |
62 | 3E | 076 | > | > |
63 | 3F | 077 | ? | ? |
64 | 40 | 100 | @ | @ |
65 | 41 | 101 | A | A |
66 | 42 | 102 | B | B |
67 | 43 | 103 | C | C |
68 | 44 | 104 | D | D |
69 | 45 | 105 | E | E |
70 | 46 | 106 | F | F |
71 | 47 | 107 | G | G |
72 | 48 | 110 | H | H |
73 | 49 | 111 | I | I |
74 | 4A | 112 | J | J |
75 | 4B | 113 | K | K |
76 | 4C | 114 | L | L |
77 | 4D | 115 | M | M |
78 | 4E | 116 | N | N |
79 | 4F | 117 | O | O |
80 | 50 | 120 | P | P |
81 | 51 | 121 | Q | Q |
82 | 52 | 122 | R | R |
83 | 53 | 123 | S | S |
84 | 54 | 124 | T | T |
85 | 55 | 125 | U | U |
86 | 56 | 126 | V | V |
87 | 57 | 127 | W | W |
88 | 58 | 130 | X | X |
89 | 59 | 131 | Y | Y |
90 | 5A | 132 | Z | Z |
91 | 5B | 133 | [ | [ |
92 | 5C | 134 | \ | \ |
93 | 5D | 135 | ] | ] |
94 | 5E | 136 | ^ | ^ |
95 | 5F | 137 | _ | _ |
96 | 60 | 140 | ` | ` |
97 | 61 | 141 | a | a |
98 | 62 | 142 | b | b |
99 | 63 | 143 | c | c |
100 | 64 | 144 | d | d |
101 | 65 | 145 | e | e |
102 | 66 | 146 | f | f |
103 | 67 | 147 | g | g |
104 | 68 | 150 | h | h |
105 | 69 | 151 | i | i |
106 | 6A | 152 | j | j |
107 | 6B | 153 | k | k |
108 | 6C | 154 | l | l |
109 | 6D | 155 | m | m |
110 | 6E | 156 | n | n |
111 | 6F | 157 | o | o |
112 | 70 | 160 | p | p |
113 | 71 | 161 | q | q |
114 | 72 | 162 | r | r |
115 | 73 | 163 | s | s |
116 | 74 | 164 | t | t |
117 | 75 | 165 | u | u |
118 | 76 | 166 | v | v |
119 | 77 | 167 | w | w |
120 | 78 | 170 | x | x |
121 | 79 | 171 | y | y |
122 | 7A | 172 | z | z |
123 | 7B | 173 | { | { |
124 | 7C | 174 | | | | |
125 | 7D | 175 | } | } |
126 | 7E | 176 | ~ | ~ |
127 | 7F | 177 | DEL |  |