Technology Tales

Adventures in consumer and enterprise technology

ASCII Codes

Estimated Reading Time: 2 minutes Last updated on 24th August 2015

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 quite 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 ; &#59;
60 3C 074 < &#60;
61 3D 075 = &#61;
62 3E 076 > &#62;
63 3F 077 ? &#63;
64 40 100 @ &#64;
65 41 101 A &#65;
66 42 102 B &#66;
67 43 103 C &#67;
68 44 104 D &#68;
69 45 105 E &#69;
70 46 106 F &#70;
71 47 107 G &#71;
72 48 110 H &#72;
73 49 111 I &#73;
74 4A 112 J &#74;
75 4B 113 K &#75;
76 4C 114 L &#76;
77 4D 115 M &#77;
78 4E 116 N &#78;
79 4F 117 O &#79;
80 50 120 P &#80;
81 51 121 Q &#81;
82 52 122 R &#82;
83 53 123 S &#83;
84 54 124 T &#84;
85 55 125 U &#85;
86 56 126 V &#86;
87 57 127 W &#87;
88 58 130 X &#88;
89 59 131 Y &#89;
90 5A 132 Z &#90;
91 5B 133 [ &#91;
92 5C 134 \ &#92;
93 5D 135 ] &#93;
94 5E 136 ^ &#94;
95 5F 137  _ &#95;
96 60 140 ` &#96;
97 61 141 a &#97;
98 62 142 b &#98;
99 63 143 c &#99;
100 64 144 d &#100;
101 65 145 e &#101;
102 66 146 f &#102;
103 67 147 g &#103;
104 68 150 h &#104;
105 69 151 i &#105;
106 6A 152 j &#106;
107 6B 153 k &#107;
108 6C 154 l &#108;
109 6D 155 m &#109;
110 6E 156 n &#110;
111 6F 157 o &#111;
112 70 160 p &#112;
113 71 161 q &#113;
114 72 162 r &#114;
115 73 163 s &#115;
116 74 164 t &#116;
117 75 165 u &#117;
118 76 166 v &#118;
119 77 167 w &#119;
120 78 170 x &#120;
121 79 171 y &#121;
122 7A 172 z &#122;
123 7B 173 { &#123;
124 7C 174 | &#124;
125 7D 175 } &#125;
126 7E 176 ~ &#126;
127 7F 177 DEL &#127;
  • The content, images, and materials on this website are protected by copyright law and may not be reproduced, distributed, transmitted, displayed, or published in any form without the prior written permission of the copyright holder. All trademarks, logos, and brand names mentioned on this website are the property of their respective owners. Unauthorised use or duplication of these materials may violate copyright, trademark and other applicable laws, and could result in criminal or civil penalties.

  • All comments on this website are moderated and should contribute meaningfully to the discussion. We welcome diverse viewpoints expressed respectfully, but reserve the right to remove any comments containing hate speech, profanity, personal attacks, spam, promotional content or other inappropriate material without notice. Please note that comment moderation may take up to 24 hours, and that repeatedly violating these guidelines may result in being banned from future participation.

  • By submitting a comment, you grant us the right to publish and edit it as needed, whilst retaining your ownership of the content. Your email address will never be published or shared, though it is required for moderation purposes.