| Overview Ascii - What You Need To Know! | |
ASCII (American Standard Code for Information Interchange) is a character encoding standard that assigns numeric values to characters. The ASCII format ranges from 0 to 127, where the first 32 characters (0 to 31) are control characters, and the remaining characters (32 to 127) are printable characters, including letters, digits, and symbols commonly used in English.
Here are some key points about ASCII and why it's important to understand:
1. Character Representation: ASCII defines how characters are represented in computers using numeric codes. Each character, such as letters, digits, punctuation marks, and control characters, is assigned a unique code.
2. Compatibility: ASCII is one of the oldest and most widely used character encoding standards. Understanding ASCII is crucial for ensuring compatibility when working with text-based data across different systems and platforms.
3. Debugging: Knowing ASCII codes can be helpful in debugging applications, especially when dealing with character encoding issues. For example, if you encounter unexpected characters in a text file or a communication protocol, understanding ASCII can help you identify and resolve the problem.
4. Interviews and Exams: In interviews or exams related to computer science or programming, having a basic understanding of ASCII can demonstrate your knowledge of fundamental concepts in computer science and programming.
5. Commonly Used Characters: While it's challenging to remember all 256 ASCII codes, some commonly used characters are worth remembering, such as:
- Control Characters: Including newline (LF), carriage return (CR), tab (TAB), and escape (ESC) characters.
- Digits: ASCII codes 48 to 57 represent the digits '0' to '9'.
- Uppercase and Lowercase Letters: ASCII codes 65 to 90 represent uppercase letters ('A' to 'Z'), and codes 97 to 122 represent lowercase letters ('a' to 'z').
- Punctuation Marks: Including comma (`,`), period (`.`), colon (`:`), semicolon (`;`), exclamation mark (`!`), question mark (`?`), and quotation marks (`"` and `'`).
- Whitespace Characters: Including space (ASCII 32), tab (ASCII 9), and newline (ASCII 10).
Familiarizing yourself with these commonly used ASCII characters, you can handle many text-processing tasks effectively and efficiently, whether it's writing code, debugging, or troubleshooting issues related to character encoding.
| Regular Expressions | |
Regular expressions provide a concise and flexible way to define patterns for matching text, including ASCII characters. By constructing regex patterns, you can easily identify and extract ASCII characters that match specific criteria, such as printable characters, digits, letters, or punctuation marks.
- For example, the regex pattern `[a-zA-Z0-9]` matches any alphanumeric ASCII character (letters and digits).
- Similarly, the pattern `[\x20-\x7E]` matches printable ASCII characters, excluding control characters, in the range from ASCII 32 (space) to ASCII 126 (tilde).
- Regular expressions can also be used to filter out or replace non-ASCII characters, which can be useful for sanitizing input data or ensuring compatibility with ASCII-based systems.
Incorporating regular expressions into your text processing tasks, you can efficiently handle ASCII characters and perform operations such as validation, extraction, and transformation, improving the robustness and flexibility of your applications or scripts.
| Ascii Chart (0-127) | |
Ascii Chart |
Value |
Char |
Hex |
HTML |
URL |
URL Path |
Value |
Char |
Hex |
HTML |
URL |
URL Path |
0 |
|
0 |
|
|
|
64 |
@ |
40 |
@ |
%40 |
@ |
1 |
|
1 |
|
%01 |
%01 |
65 |
A |
41 |
A |
A |
A |
2 |
|
2 |
|
%02 |
%02 |
66 |
B |
42 |
B |
B |
B |
3 |
|
3 |
|
%03 |
%03 |
67 |
C |
43 |
C |
C |
C |
4 |
|
4 |
|
%04 |
%04 |
68 |
D |
44 |
D |
D |
D |
5 |
|
5 |
|
%05 |
%05 |
69 |
E |
45 |
E |
E |
E |
6 |
|
6 |
|
%06 |
%06 |
70 |
F |
46 |
F |
F |
F |
7 |
|
7 |
|
%07 |
%07 |
71 |
G |
47 |
G |
G |
G |
8 |
|
8 |
|
%08 |
%08 |
72 |
H |
48 |
H |
H |
H |
9 |
|
9 |
|
%09 |
%09 |
73 |
I |
49 |
I |
I |
I |
10 |
|
A |
|
%0A |
%0A |
74 |
J |
4A |
J |
J |
J |
11 |
|
B |
|
%0B |
%0B |
75 |
K |
4B |
K |
K |
K |
12 |
|
C |
|
%0C |
%0C |
76 |
L |
4C |
L |
L |
L |
13 |
|
D |
|
%0D |
%0D |
77 |
M |
4D |
M |
M |
M |
14 |
|
E |
|
%0E |
%0E |
78 |
N |
4E |
N |
N |
N |
15 |
|
F |
|
%0F |
%0F |
79 |
O |
4F |
O |
O |
O |
16 |
|
10 |
|
%10 |
%10 |
80 |
P |
50 |
P |
P |
P |
17 |
|
11 |
|
%11 |
%11 |
81 |
Q |
51 |
Q |
Q |
Q |
18 |
|
12 |
|
%12 |
%12 |
82 |
R |
52 |
R |
R |
R |
19 |
|
13 |
|
%13 |
%13 |
83 |
S |
53 |
S |
S |
S |
20 |
|
14 |
|
%14 |
%14 |
84 |
T |
54 |
T |
T |
T |
21 |
|
15 |
|
%15 |
%15 |
85 |
U |
55 |
U |
U |
U |
22 |
|
16 |
|
%16 |
%16 |
86 |
V |
56 |
V |
V |
V |
23 |
|
17 |
|
%17 |
%17 |
87 |
W |
57 |
W |
W |
W |
24 |
|
18 |
|
%18 |
%18 |
88 |
X |
58 |
X |
X |
X |
25 |
|
19 |
|
%19 |
%19 |
89 |
Y |
59 |
Y |
Y |
Y |
26 |
|
1A |
|
%1A |
%1A |
90 |
Z |
5A |
Z |
Z |
Z |
27 |
|
1B |
|
%1B |
%1B |
91 |
[ |
5B |
[ |
%5B |
%5B |
28 |
|
1C |
|
%1C |
%1C |
92 |
\ |
5C |
\ |
%5C |
%5C |
29 |
|
1D |
|
%1D |
%1D |
93 |
] |
5D |
] |
%5D |
%5D |
30 |
|
1E |
|
%1E |
%1E |
94 |
^ |
5E |
^ |
%5E |
%5E |
31 |
|
1F |
|
%1F |
%1F |
95 |
_ |
5F |
_ |
%5F |
_ |
32 |
|
20 |
|
+ |
%20 |
96 |
` |
60 |
` |
%60 |
%60 |
33 |
! |
21 |
! |
%21 |
! |
97 |
a |
61 |
a |
a |
a |
34 |
" |
22 |
" |
%22 |
%22 |
98 |
b |
62 |
b |
b |
b |
35 |
# |
23 |
# |
%23 |
# |
99 |
c |
63 |
c |
c |
c |
36 |
$ |
24 |
$ |
%24 |
$ |
100 |
d |
64 |
d |
d |
d |
37 |
% |
25 |
% |
%25 |
%25 |
101 |
e |
65 |
e |
e |
e |
38 |
& |
26 |
& |
%26 |
& |
102 |
f |
66 |
f |
f |
f |
39 |
' |
27 |
' |
%27 |
%27 |
103 |
g |
67 |
g |
g |
g |
40 |
( |
28 |
( |
%28 |
%28 |
104 |
h |
68 |
h |
h |
h |
41 |
) |
29 |
) |
%29 |
%29 |
105 |
i |
69 |
i |
i |
i |
42 |
* |
2A |
* |
%2A |
* |
106 |
j |
6A |
j |
j |
j |
43 |
+ |
2B |
+ |
%2B |
+ |
107 |
k |
6B |
k |
k |
k |
44 |
, |
2C |
, |
%2C |
%2C |
108 |
l |
6C |
l |
l |
l |
45 |
- |
2D |
- |
%2D |
- |
109 |
m |
6D |
m |
m |
m |
46 |
. |
2E |
. |
%2E |
. |
110 |
n |
6E |
n |
n |
n |
47 |
/ |
2F |
/ |
%2F |
/ |
111 |
o |
6F |
o |
o |
o |
48 |
0 |
30 |
0 |
0 |
0 |
112 |
p |
70 |
p |
p |
p |
49 |
1 |
31 |
1 |
1 |
1 |
113 |
q |
71 |
q |
q |
q |
50 |
2 |
32 |
2 |
2 |
2 |
114 |
r |
72 |
r |
r |
r |
51 |
3 |
33 |
3 |
3 |
3 |
115 |
s |
73 |
s |
s |
s |
52 |
4 |
34 |
4 |
4 |
4 |
116 |
t |
74 |
t |
t |
t |
53 |
5 |
35 |
5 |
5 |
5 |
117 |
u |
75 |
u |
u |
u |
54 |
6 |
36 |
6 |
6 |
6 |
118 |
v |
76 |
v |
v |
v |
55 |
7 |
37 |
7 |
7 |
7 |
119 |
w |
77 |
w |
w |
w |
56 |
8 |
38 |
8 |
8 |
8 |
120 |
x |
78 |
x |
x |
x |
57 |
9 |
39 |
9 |
9 |
9 |
121 |
y |
79 |
y |
y |
y |
58 |
: |
3A |
: |
%3A |
: |
122 |
z |
7A |
z |
z |
z |
59 |
; |
3B |
; |
%3B |
%3B |
123 |
{ |
7B |
{ |
%7B |
%7B |
60 |
< |
3C |
< |
%3C |
%3C |
124 |
| |
7C |
| |
%7C |
%7C |
61 |
= |
3D |
= |
%3D |
%3D |
125 |
} |
7D |
} |
%7D |
%7D |
62 |
> |
3E |
> |
%3E |
%3E |
126 |
~ |
7E |
~ |
%7E |
~ |
63 |
? |
3F |
? |
%3F |
? |
127 |
|
7F |
|
%7F |
%7F |
|
| Ascii Chart (128-255) | |
Ascii Chart |
Value |
Char |
Hex |
HTML |
URL |
URL Path |
Value |
Char |
Hex |
HTML |
URL |
URL Path |
128 |
---- |
80 |
€ |
%80 |
%80 |
192 |
---- |
C0 |
À |
%C0 |
%C0 |
129 |
? |
81 |
? |
%81 |
%81 |
193 |
---- |
C1 |
Á |
%C1 |
%C1 |
130 |
---- |
82 |
‚ |
%82 |
%82 |
194 |
---- |
C2 |
 |
%C2 |
%C2 |
131 |
---- |
83 |
ƒ |
%83 |
%83 |
195 |
---- |
C3 |
à |
%C3 |
%C3 |
132 |
---- |
84 |
„ |
%84 |
%84 |
196 |
---- |
C4 |
Ä |
%C4 |
%C4 |
133 |
---- |
85 |
… |
%85 |
%85 |
197 |
---- |
C5 |
Å |
%C5 |
%C5 |
134 |
---- |
86 |
† |
%86 |
%86 |
198 |
---- |
C6 |
Æ |
%C6 |
%C6 |
135 |
---- |
87 |
‡ |
%87 |
%87 |
199 |
---- |
C7 |
Ç |
%C7 |
%C7 |
136 |
---- |
88 |
ˆ |
%88 |
%88 |
200 |
---- |
C8 |
È |
%C8 |
%C8 |
137 |
---- |
89 |
‰ |
%89 |
%89 |
201 |
---- |
C9 |
É |
%C9 |
%C9 |
138 |
---- |
8A |
Š |
%8A |
%8A |
202 |
---- |
CA |
Ê |
%CA |
%CA |
139 |
---- |
8B |
‹ |
%8B |
%8B |
203 |
---- |
CB |
Ë |
%CB |
%CB |
140 |
---- |
8C |
Œ |
%8C |
%8C |
204 |
---- |
CC |
Ì |
%CC |
%CC |
141 |
? |
8D |
? |
%8D |
%8D |
205 |
---- |
CD |
Í |
%CD |
%CD |
142 |
---- |
8E |
Ž |
%8E |
%8E |
206 |
---- |
CE |
Î |
%CE |
%CE |
143 |
? |
8F |
? |
%8F |
%8F |
207 |
---- |
CF |
Ï |
%CF |
%CF |
144 |
? |
90 |
? |
%90 |
%90 |
208 |
---- |
D0 |
Ð |
%D0 |
%D0 |
145 |
---- |
91 |
‘ |
%91 |
%91 |
209 |
---- |
D1 |
Ñ |
%D1 |
%D1 |
146 |
---- |
92 |
’ |
%92 |
%92 |
210 |
---- |
D2 |
Ò |
%D2 |
%D2 |
147 |
---- |
93 |
“ |
%93 |
%93 |
211 |
---- |
D3 |
Ó |
%D3 |
%D3 |
148 |
---- |
94 |
” |
%94 |
%94 |
212 |
---- |
D4 |
Ô |
%D4 |
%D4 |
149 |
---- |
95 |
• |
%95 |
%95 |
213 |
---- |
D5 |
Õ |
%D5 |
%D5 |
150 |
---- |
96 |
– |
%96 |
%96 |
214 |
---- |
D6 |
Ö |
%D6 |
%D6 |
151 |
---- |
97 |
— |
%97 |
%97 |
215 |
---- |
D7 |
× |
%D7 |
%D7 |
152 |
---- |
98 |
˜ |
%98 |
%98 |
216 |
---- |
D8 |
Ø |
%D8 |
%D8 |
153 |
---- |
99 |
™ |
%99 |
%99 |
217 |
---- |
D9 |
Ù |
%D9 |
%D9 |
154 |
---- |
9A |
š |
%9A |
%9A |
218 |
---- |
DA |
Ú |
%DA |
%DA |
155 |
---- |
9B |
› |
%9B |
%9B |
219 |
---- |
DB |
Û |
%DB |
%DB |
156 |
---- |
9C |
œ |
%9C |
%9C |
220 |
---- |
DC |
Ü |
%DC |
%DC |
157 |
? |
9D |
? |
%9D |
%9D |
221 |
---- |
DD |
Ý |
%DD |
%DD |
158 |
---- |
9E |
ž |
%9E |
%9E |
222 |
---- |
DE |
Þ |
%DE |
%DE |
159 |
---- |
9F |
Ÿ |
%9F |
%9F |
223 |
---- |
DF |
ß |
%DF |
%DF |
160 |
|
A0 |
  |
%A0 |
%A0 |
224 |
---- |
E0 |
à |
%E0 |
%E0 |
161 |
---- |
A1 |
¡ |
%A1 |
%A1 |
225 |
---- |
E1 |
á |
%E1 |
%E1 |
162 |
---- |
A2 |
¢ |
%A2 |
%A2 |
226 |
---- |
E2 |
â |
%E2 |
%E2 |
163 |
---- |
A3 |
£ |
%A3 |
%A3 |
227 |
---- |
E3 |
ã |
%E3 |
%E3 |
164 |
---- |
A4 |
¤ |
%A4 |
%A4 |
228 |
---- |
E4 |
ä |
%E4 |
%E4 |
165 |
---- |
A5 |
¥ |
%A5 |
%A5 |
229 |
---- |
E5 |
å |
%E5 |
%E5 |
166 |
---- |
A6 |
¦ |
%A6 |
%A6 |
230 |
---- |
E6 |
æ |
%E6 |
%E6 |
167 |
---- |
A7 |
§ |
%A7 |
%A7 |
231 |
---- |
E7 |
ç |
%E7 |
%E7 |
168 |
---- |
A8 |
¨ |
%A8 |
%A8 |
232 |
---- |
E8 |
è |
%E8 |
%E8 |
169 |
---- |
A9 |
© |
%A9 |
%A9 |
233 |
---- |
E9 |
é |
%E9 |
%E9 |
170 |
---- |
AA |
ª |
%AA |
%AA |
234 |
---- |
EA |
ê |
%EA |
%EA |
171 |
---- |
AB |
« |
%AB |
%AB |
235 |
---- |
EB |
ë |
%EB |
%EB |
172 |
---- |
AC |
¬ |
%AC |
%AC |
236 |
---- |
EC |
ì |
%EC |
%EC |
173 |
---- |
AD |
­ |
%AD |
%AD |
237 |
---- |
ED |
í |
%ED |
%ED |
174 |
---- |
AE |
® |
%AE |
%AE |
238 |
---- |
EE |
î |
%EE |
%EE |
175 |
---- |
AF |
¯ |
%AF |
%AF |
239 |
---- |
EF |
ï |
%EF |
%EF |
176 |
---- |
B0 |
° |
%B0 |
%B0 |
240 |
---- |
F0 |
ð |
%F0 |
%F0 |
177 |
---- |
B1 |
± |
%B1 |
%B1 |
241 |
---- |
F1 |
ñ |
%F1 |
%F1 |
178 |
---- |
B2 |
² |
%B2 |
%B2 |
242 |
---- |
F2 |
ò |
%F2 |
%F2 |
179 |
---- |
B3 |
³ |
%B3 |
%B3 |
243 |
---- |
F3 |
ó |
%F3 |
%F3 |
180 |
---- |
B4 |
´ |
%B4 |
%B4 |
244 |
---- |
F4 |
ô |
%F4 |
%F4 |
181 |
---- |
B5 |
µ |
%B5 |
%B5 |
245 |
---- |
F5 |
õ |
%F5 |
%F5 |
182 |
---- |
B6 |
¶ |
%B6 |
%B6 |
246 |
---- |
F6 |
ö |
%F6 |
%F6 |
183 |
---- |
B7 |
· |
%B7 |
%B7 |
247 |
---- |
F7 |
÷ |
%F7 |
%F7 |
184 |
---- |
B8 |
¸ |
%B8 |
%B8 |
248 |
---- |
F8 |
ø |
%F8 |
%F8 |
185 |
---- |
B9 |
¹ |
%B9 |
%B9 |
249 |
---- |
F9 |
ù |
%F9 |
%F9 |
186 |
---- |
BA |
º |
%BA |
%BA |
250 |
---- |
FA |
ú |
%FA |
%FA |
187 |
---- |
BB |
» |
%BB |
%BB |
251 |
---- |
FB |
û |
%FB |
%FB |
188 |
---- |
BC |
¼ |
%BC |
%BC |
252 |
---- |
FC |
ü |
%FC |
%FC |
189 |
---- |
BD |
½ |
%BD |
%BD |
253 |
---- |
FD |
ý |
%FD |
%FD |
190 |
---- |
BE |
¾ |
%BE |
%BE |
254 |
---- |
FE |
þ |
%FE |
%FE |
191 |
---- |
BF |
¿ |
%BF |
%BF |
255 |
---- |
FF |
ÿ |
%FF |
%FF |
|
|
|