Skip to main content
DevTools24

ASCII 表

交互式 ASCII 字符参考表。查看十进制、十六进制、八进制和二进制值。按可打印字符或控制字符筛选。

Showing 128 characters
CharDecHexDescription
·00x00NUL (Null)
·10x01SOH (Start of Heading)
·20x02STX (Start of Text)
·30x03ETX (End of Text)
·40x04EOT (End of Transmission)
·50x05ENQ (Enquiry)
·60x06ACK (Acknowledge)
·70x07BEL (Bell)
·80x08BS (Backspace)
·90x09HT (Horizontal Tab)
·100x0ALF (Line Feed)
·110x0BVT (Vertical Tab)
·120x0CFF (Form Feed)
·130x0DCR (Carriage Return)
·140x0ESO (Shift Out)
·150x0FSI (Shift In)
·160x10DLE (Data Link Escape)
·170x11DC1 (Device Control 1)
·180x12DC2 (Device Control 2)
·190x13DC3 (Device Control 3)
·200x14DC4 (Device Control 4)
·210x15NAK (Negative Acknowledge)
·220x16SYN (Synchronous Idle)
·230x17ETB (End of Trans. Block)
·240x18CAN (Cancel)
·250x19EM (End of Medium)
·260x1ASUB (Substitute)
·270x1BESC (Escape)
·280x1CFS (File Separator)
·290x1DGS (Group Separator)
·300x1ERS (Record Separator)
·310x1FUS (Unit Separator)
320x20Character
!330x21Exclamation mark
"340x22Double quote
#350x23Hash/Pound
$360x24Dollar sign
%370x25Percent
&380x26Ampersand
'390x27Single quote
(400x28Left parenthesis
)410x29Right parenthesis
*420x2AAsterisk
+430x2BPlus sign
,440x2CComma
-450x2DHyphen/Minus
.460x2EPeriod/Dot
/470x2FForward slash
0480x30Digit 0
1490x31Digit 1
2500x32Digit 2
3510x33Digit 3
4520x34Digit 4
5530x35Digit 5
6540x36Digit 6
7550x37Digit 7
8560x38Digit 8
9570x39Digit 9
:580x3AColon
;590x3BSemicolon
<600x3CLess than
=610x3DEquals sign
>620x3EGreater than
?630x3FQuestion mark
@640x40At sign
A650x41Uppercase A
B660x42Uppercase B
C670x43Uppercase C
D680x44Uppercase D
E690x45Uppercase E
F700x46Uppercase F
G710x47Uppercase G
H720x48Uppercase H
I730x49Uppercase I
J740x4AUppercase J
K750x4BUppercase K
L760x4CUppercase L
M770x4DUppercase M
N780x4EUppercase N
O790x4FUppercase O
P800x50Uppercase P
Q810x51Uppercase Q
R820x52Uppercase R
S830x53Uppercase S
T840x54Uppercase T
U850x55Uppercase U
V860x56Uppercase V
W870x57Uppercase W
X880x58Uppercase X
Y890x59Uppercase Y
Z900x5AUppercase Z
[910x5BLeft bracket
\920x5CBackslash
]930x5DRight bracket
^940x5ECaret
_950x5FUnderscore
`960x60Backtick
a970x61Lowercase a
b980x62Lowercase b
c990x63Lowercase c
d1000x64Lowercase d
e1010x65Lowercase e
f1020x66Lowercase f
g1030x67Lowercase g
h1040x68Lowercase h
i1050x69Lowercase i
j1060x6ALowercase j
k1070x6BLowercase k
l1080x6CLowercase l
m1090x6DLowercase m
n1100x6ELowercase n
o1110x6FLowercase o
p1120x70Lowercase p
q1130x71Lowercase q
r1140x72Lowercase r
s1150x73Lowercase s
t1160x74Lowercase t
u1170x75Lowercase u
v1180x76Lowercase v
w1190x77Lowercase w
x1200x78Lowercase x
y1210x79Lowercase y
z1220x7ALowercase z
{1230x7BLeft brace
|1240x7CVertical bar/Pipe
}1250x7DRight brace
~1260x7ETilde
·1270x7FDEL (Delete)

Quick Reference

0-31
Control characters
48-57
Digits 0-9
65-90
Uppercase A-Z
97-122
Lowercase a-z

ASCII 编码 - 技术详情

ASCII(美国信息交换标准代码)是一种 7 位字符编码标准,包含 128 个字符。它包括控制字符(0-31)、可打印字符(32-126)和 DEL(127)。ASCII 是 Unicode 和大多数文本编码的基础。

命令行替代方案

# Get ASCII value in terminal
printf '%d\n' "'A"  # 65
printf '%c\n' 65  # A

# Full ASCII table
man ascii

参考

查看官方规范