ASCII is the original 7-bit character set: 128 codes, from 0 to 127, covering the English letters, digits, punctuation and a few control codes. It forms the first 128 code points of Unicode, so every ASCII character can be written in HTML either directly or with a numeric code such as A, and many have a named entity such as &.
Codes 0 to 31 (and 127) are invisible control codes, such as tab, line feed and carriage return, so they are not listed. The chart below starts at code 32, the space, followed by punctuation, digits, uppercase and lowercase letters. In HTML you only need entities for a few of these: <, > and & in text, plus " or ' inside attribute values.
☕
Enjoying this site?
Help keep it running with a small coffee donation.
Every bit of support is appreciated!
Buy us a coffee
Click a code to copy it, or a character for every code and an example.
Character Description Entity Decimal Hex CSS
SP
Space
—  
 
\0020
!
Exclamation Point
! !
!
\0021
"
Quotation mark (double quote)
" "
"
\0022
#
Number Sign
# #
#
\0023
$
Dollar Sign
$ $
$
\0024
%
Percent Sign
% %
%
\0025
&
Ampersand
& &
&
\0026
'
Apostrophe (single quote)
' '
'
\0027
(
Opening parenthesis
( (
(
\0028
)
Closing parenthesis
) )
)
\0029
*
Asterisk
* *
*
\002A
+
Plus sign
+ +
+
\002B
,
Comma
, ,
,
\002C
-
Hyphen-minus
— -
-
\002D
.
Period
. .
.
\002E
/
Slash
/ /
/
\002F
0
Zero
— 0
0
\0030
1
One
— 1
1
\0031
2
Two
— 2
2
\0032
3
Three
— 3
3
\0033
4
Four
— 4
4
\0034
5
Five
— 5
5
\0035
6
Six
— 6
6
\0036
7
Seven
— 7
7
\0037
8
Eight
— 8
8
\0038
9
Nine
— 9
9
\0039
:
Colon
: :
:
\003A
;
Semicolon
; ;
;
\003B
<
Less than sign
< <
<
\003C
=
Equal Sign
= =
=
\003D
>
Greater than sign
> >
>
\003E
?
Question mark
? ?
?
\003F
@
At symbol
@ @
@
\0040
A
Uppercase A
— A
A
\0041
B
Uppercase B
— B
B
\0042
C
Uppercase C
— C
C
\0043
D
Uppercase D
— D
D
\0044
E
Uppercase E
— E
E
\0045
F
Uppercase F
— F
F
\0046
G
Uppercase G
— G
G
\0047
H
Uppercase H
— H
H
\0048
I
Uppercase I
— I
I
\0049
J
Uppercase J
— J
J
\004A
K
Uppercase K
— K
K
\004B
L
Uppercase L
— L
L
\004C
M
Uppercase M
— M
M
\004D
N
Uppercase N
— N
N
\004E
O
Uppercase O
— O
O
\004F
P
Uppercase P
— P
P
\0050
Q
Uppercase Q
— Q
Q
\0051
R
Uppercase R
— R
R
\0052
S
Uppercase S
— S
S
\0053
T
Uppercase T
— T
T
\0054
U
Uppercase U
— U
U
\0055
V
Uppercase V
— V
V
\0056
W
Uppercase W
— W
W
\0057
X
Uppercase X
— X
X
\0058
Y
Uppercase Y
— Y
Y
\0059
Z
Uppercase Z
— Z
Z
\005A
[
Opening bracket
[ [
[
\005B
\
Backslash
\ \
\
\005C
]
Closing bracket
] ]
]
\005D
^
Circumflex accent (caret)
^ ^
^
\005E
_
Underscore
_ _
_
\005F
`
Grave accent (backtick)
` `
`
\0060
a
Lowercase a
— a
a
\0061
b
Lowercase b
— b
b
\0062
c
Lowercase c
— c
c
\0063
d
Lowercase d
— d
d
\0064
e
Lowercase e
— e
e
\0065
f
Lowercase f
— f
f
\0066
g
Lowercase g
— g
g
\0067
h
Lowercase h
— h
h
\0068
i
Lowercase i
— i
i
\0069
j
Lowercase j
— j
j
\006A
k
Lowercase k
— k
k
\006B
l
Lowercase l
— l
l
\006C
m
Lowercase m
— m
m
\006D
n
Lowercase n
— n
n
\006E
o
Lowercase o
— o
o
\006F
p
Lowercase p
— p
p
\0070
q
Lowercase q
— q
q
\0071
r
Lowercase r
— r
r
\0072
s
Lowercase s
— s
s
\0073
t
Lowercase t
— t
t
\0074
u
Lowercase u
— u
u
\0075
v
Lowercase v
— v
v
\0076
w
Lowercase w
— w
w
\0077
x
Lowercase x
— x
x
\0078
y
Lowercase y
— y
y
\0079
z
Lowercase z
— z
z
\007A
{
Opening brace
{ {
{
\007B
|
Vertical Bar
| |
|
\007C
}
Closing brace
} }
}
\007D
~
Tilde
— ~
~
\007E
No characters match your search.