Table of ASCII Values
Many of our favorite computer books have an ASCII chart. Even in the era of GUIs and web servers you may be surprised to find that you still need to look up a character every now and then. It’s certainly useful when working with tr or finding some special sequence of escape characters.
Int | Octal | Hex | ASCII |
---|---|---|---|
0 | 000 | 00 | ^@ |
1 | 001 | 01 | ^A |
2 | 002 | 02 | ^B |
3 | 003 | 03 | ^C |
4 | 004 | 04 | ^D |
5 | 005 | 05 | ^E |
6 | 006 | 06 | ^F |
7 | 007 | 07 | ^G |
8 | 010 | 08 | ^H |
9 | 011 | 09 | ^I |
10 | 012 | 0a | ^J |
11 | 013 | 0b | ^K |
12 | 014 | 0c | ^L |
13 | 015 | 0d | ^M |
14 | 016 | 0e | ^N |
15 | 017 | 0f | ^O |
16 | 020 | 10 | ^P |
17 | 021 | 11 | ^Q |
18 | 022 | 12 | ^R |
19 | 023 | 13 | ^S |
20 | 024 | 14 | ^T |
21 | 025 | 15 | ^U |
22 | 026 | 16 | ^V |
23 | 027 | 17 | ^W |
24 | 030 | 18 | ^X |
25 | 031 | 19 | ^Y |
26 | 032 | 1a | ^Z |
27 | 033 | 1b | ^[ |
28 | 034 | 1c | ^\ |
29 | 035 | 1d | ^] |
30 | 036 | 1e | ^^ |
31 | 037 | 1f | ^_ |
32 | 040 | 20 | |
33 | 041 | 21 | ! |
34 | 042 | 22 | " |
35 | 043 | 23 | # |
36 | 044 | 24 | $ |
37 | 045 | 25 | % |
38 | 046 | 26 | & |
39 | 047 | 27 | ' |
40 | 050 | 28 | ( |
41 | 051 | 29 | ) |
42 | 052 | 2a | * |
43 | 053 | 2b | + |
44 | 054 | 2c | , |
45 | 055 | 2d | - |
46 | 056 | 2e | . |
47 | 057 | 2f | / |
48 | 060 | 30 | 0 |
49 | 061 | 31 | 1 |
50 | 062 | 32 | 2 |
51 | 063 | 33 | 3 |
52 | 064 | 34 | 4 |
53 | 065 | 35 | 5 |
54 | 066 | 36 | 6 |
55 | 067 | 37 | 7 |
56 | 070 | 38 | 8 |
57 | 071 | 39 | 9 |
58 | 072 | 3a | : |
59 | 073 | 3b | ; |
60 | 074 | 3c | < |
61 | 075 | 3d | = |
62 | 076 | 3e | > |
63 | 077 | 3f | ? |
64 | 100 | 40 | @ |
65 | 101 | 41 | A |
66 | 102 | 42 | B |
67 | 103 | 43 | C |
68 | 104 | 44 | D |
69 | 105 | 45 | E |
70 | 106 | 46 | F |
71 | 107 | 47 | G |
72 | 110 | 48 | H |
73 | 111 | 49 | I |
74 | 112 | 4a | J |
75 | 113 | 4b | K |
76 | 114 | 4c | L |
77 | 115 | 4d | M |
78 | 116 | 4e | N |
79 | 117 | 4f | O |
80 | 120 | 50 | P |
81 | 121 | 51 | Q |
82 | 122 | 52 | R |
83 | 123 | 53 | S |
84 | 124 | 54 | T |
85 | 125 | 55 | U |
86 | 126 | 56 | V |
87 | 127 | 57 | W |
88 | 130 | 58 | X |
89 | 131 | 59 | Y |
90 | 132 | 5a | Z |
91 | 133 | 5b | [ |
92 | 134 | 5c | \ |
93 | 135 | 5d | ] |
94 | 136 | 5e | ^ |
95 | 137 | 5f | _ |
96 | 140 | 60 | ` |
97 | 141 | 61 | a |
98 | 142 | 62 | b |
99 | 143 | 63 | c |
100 | 144 | 64 | d |
101 | 145 | 65 | e |
102 | 146 | 66 | f |
103 | 147 | 67 | g |
104 | 150 | 68 | h |
105 | 151 | 69 | i |
106 | 152 | 6a | j |
107 | 153 | 6b | k |
108 | 154 | 6c | l |
109 | 155 | 6d | m |
110 | 156 | 6e | n |
111 | 157 | 6f | o |
112 | 160 | 70 | p |
113 | 161 | 71 | q |
114 | 162 | 72 | r |
115 | 163 | 73 | s |
116 | 164 | 74 | t |
117 | 165 | 75 | u |
118 | 166 | 76 | v |
119 | 167 | 77 | w |
120 | 170 | 78 | x |
121 | 171 | 79 | y |
122 | 172 | 7a | z |
123 | 173 | 7b | { |
124 | 174 | 7c | | |
125 | 175 | 7d | } |
126 | 176 | 7e | ~ |
127 | 177 | 7f | ^? |
Get bash Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.