TFT

ASCII Code Converter and Table

Convert characters to ASCII codes in decimal, hex, binary, or octal formats, and convert ASCII codes back to characters. Includes a complete ASCII table for quick reference.

Dec
Hex
Oct
Bin
Char
Description
0
00
000
0000000
Control: NUL
1
01
001
0000001
Control: SOH
2
02
002
0000010
Control: STX
3
03
003
0000011
Control: ETX
4
04
004
0000100
Control: EOT
5
05
005
0000101
Control: ENQ
6
06
006
0000110
Control: ACK
7
07
007
0000111
Control: BEL
8
08
010
0001000
Control: BS
9
09
011
0001001
Control: TAB
10
0A
012
0001010
Control: LF
11
0B
013
0001011
Control: VT
12
0C
014
0001100
Control: FF
13
0D
015
0001101
Control: CR
14
0E
016
0001110
Control: SO
15
0F
017
0001111
Control: SI
16
10
020
0010000
Control: DLE
17
11
021
0010001
Control: DC1
18
12
022
0010010
Control: DC2
19
13
023
0010011
Control: DC3
20
14
024
0010100
Control: DC4
21
15
025
0010101
Control: NAK
22
16
026
0010110
Control: SYN
23
17
027
0010111
Control: ETB
24
18
030
0011000
Control: CAN
25
19
031
0011001
Control: EM
26
1A
032
0011010
Control: SUB
27
1B
033
0011011
Control: ESC
28
1C
034
0011100
Control: FS
29
1D
035
0011101
Control: GS
30
1E
036
0011110
Control: RS
31
1F
037
0011111
Control: US
32
20
040
0100000
Space
33
21
041
0100001
!
Printable: "!"
34
22
042
0100010
"
Printable: """
35
23
043
0100011
#
Printable: "#"
36
24
044
0100100
$
Printable: "$"
37
25
045
0100101
%
Printable: "%"
38
26
046
0100110
&
Printable: "&"
39
27
047
0100111
'
Printable: "'"
40
28
050
0101000
(
Printable: "("
41
29
051
0101001
)
Printable: ")"
42
2A
052
0101010
*
Printable: "*"
43
2B
053
0101011
+
Printable: "+"
44
2C
054
0101100
,
Printable: ","
45
2D
055
0101101
-
Printable: "-"
46
2E
056
0101110
.
Printable: "."
47
2F
057
0101111
/
Printable: "/"
48
30
060
0110000
0
Printable: "0"
49
31
061
0110001
1
Printable: "1"
50
32
062
0110010
2
Printable: "2"
51
33
063
0110011
3
Printable: "3"
52
34
064
0110100
4
Printable: "4"
53
35
065
0110101
5
Printable: "5"
54
36
066
0110110
6
Printable: "6"
55
37
067
0110111
7
Printable: "7"
56
38
070
0111000
8
Printable: "8"
57
39
071
0111001
9
Printable: "9"
58
3A
072
0111010
:
Printable: ":"
59
3B
073
0111011
;
Printable: ";"
60
3C
074
0111100
<
Printable: "<"
61
3D
075
0111101
=
Printable: "="
62
3E
076
0111110
>
Printable: ">"
63
3F
077
0111111
?
Printable: "?"
64
40
100
1000000
@
Printable: "@"
65
41
101
1000001
A
Printable: "A"
66
42
102
1000010
B
Printable: "B"
67
43
103
1000011
C
Printable: "C"
68
44
104
1000100
D
Printable: "D"
69
45
105
1000101
E
Printable: "E"
70
46
106
1000110
F
Printable: "F"
71
47
107
1000111
G
Printable: "G"
72
48
110
1001000
H
Printable: "H"
73
49
111
1001001
I
Printable: "I"
74
4A
112
1001010
J
Printable: "J"
75
4B
113
1001011
K
Printable: "K"
76
4C
114
1001100
L
Printable: "L"
77
4D
115
1001101
M
Printable: "M"
78
4E
116
1001110
N
Printable: "N"
79
4F
117
1001111
O
Printable: "O"
80
50
120
1010000
P
Printable: "P"
81
51
121
1010001
Q
Printable: "Q"
82
52
122
1010010
R
Printable: "R"
83
53
123
1010011
S
Printable: "S"
84
54
124
1010100
T
Printable: "T"
85
55
125
1010101
U
Printable: "U"
86
56
126
1010110
V
Printable: "V"
87
57
127
1010111
W
Printable: "W"
88
58
130
1011000
X
Printable: "X"
89
59
131
1011001
Y
Printable: "Y"
90
5A
132
1011010
Z
Printable: "Z"
91
5B
133
1011011
[
Printable: "["
92
5C
134
1011100
\
Printable: "\"
93
5D
135
1011101
]
Printable: "]"
94
5E
136
1011110
^
Printable: "^"
95
5F
137
1011111
_
Printable: "_"
96
60
140
1100000
`
Printable: "`"
97
61
141
1100001
a
Printable: "a"
98
62
142
1100010
b
Printable: "b"
99
63
143
1100011
c
Printable: "c"
100
64
144
1100100
d
Printable: "d"
101
65
145
1100101
e
Printable: "e"
102
66
146
1100110
f
Printable: "f"
103
67
147
1100111
g
Printable: "g"
104
68
150
1101000
h
Printable: "h"
105
69
151
1101001
i
Printable: "i"
106
6A
152
1101010
j
Printable: "j"
107
6B
153
1101011
k
Printable: "k"
108
6C
154
1101100
l
Printable: "l"
109
6D
155
1101101
m
Printable: "m"
110
6E
156
1101110
n
Printable: "n"
111
6F
157
1101111
o
Printable: "o"
112
70
160
1110000
p
Printable: "p"
113
71
161
1110001
q
Printable: "q"
114
72
162
1110010
r
Printable: "r"
115
73
163
1110011
s
Printable: "s"
116
74
164
1110100
t
Printable: "t"
117
75
165
1110101
u
Printable: "u"
118
76
166
1110110
v
Printable: "v"
119
77
167
1110111
w
Printable: "w"
120
78
170
1111000
x
Printable: "x"
121
79
171
1111001
y
Printable: "y"
122
7A
172
1111010
z
Printable: "z"
123
7B
173
1111011
{
Printable: "{"
124
7C
174
1111100
|
Printable: "|"
125
7D
175
1111101
}
Printable: "}"
126
7E
176
1111110
~
Printable: "~"
127
7F
177
1111111
Control: DEL

How the ASCII Code Converter Works

Our ASCII code converter translates text to and from ASCII (American Standard Code for Information Interchange) numeric codes. Each character is represented by a number from 0-127, providing a fundamental encoding scheme still used in computing and data communication.

Conversion Process

  1. Input text is processed character by character
  2. Each character is mapped to its ASCII code (0-127)
  3. Codes are output in selected format (decimal, hex, octal, or binary)
  4. For decoding, numeric codes are converted back to characters
  5. Control characters (0-31) are identified but not displayed
  6. Extended ASCII (128-255) is supported for decoding

The tool includes a complete ASCII table reference showing decimal, hexadecimal, octal, and binary representations for all 128 ASCII codes, along with character descriptions and control character names.

Common Use Cases

Programming Education

Learn character encoding fundamentals and understand how computers represent text internally.

Data Protocol Analysis

Analyze and debug serial communication, terminal protocols, and legacy systems using ASCII codes.

Control Character Handling

Work with control characters (CR, LF, TAB, ESC) for terminal output and file format processing.

Character Encoding Debugging

Identify encoding issues by examining raw ASCII values of problematic text.

Retro Computing

Work with legacy systems and file formats that use ASCII encoding exclusively.

Security Analysis

Analyze payloads, shellcode, and encoded data in security research and penetration testing.

What to Know Before Using This Tool

ASCII Code Ranges

0-31: Control Characters
Non-printable codes like NUL, TAB, LF, CR, ESC
32-126: Printable Characters
Space, digits, letters, and punctuation
127: DEL
Delete control character

Output Format Options

  • Decimal: Standard ASCII numbers (65 for 'A')
  • Hexadecimal: Base-16 representation (41 for 'A')
  • Octal: Base-8 representation (101 for 'A')
  • Binary: Base-2 representation (01000001 for 'A')

Unicode vs ASCII

ASCII only covers 128 characters (English alphabet and basic symbols). For international text, use UTF-8 encoding. This tool handles ASCII range primarily but can decode extended values (128-255) as UTF-8 bytes.

Frequently Asked Questions

What is ASCII?

ASCII (American Standard Code for Information Interchange) is a character encoding standard developed in the 1960s. It assigns numeric codes 0-127 to English letters, digits, punctuation, and control characters.

What are control characters?

Control characters (codes 0-31 and 127) are non-printable codes that control device behavior. Examples include TAB (9), LF/Line Feed (10), CR/Carriage Return (13), and ESC (27).

Why use octal or binary output?

Octal was historically used in Unix permissions and some programming contexts. Binary shows the actual bit patterns, useful for understanding low-level data representation and bitwise operations.

Can I convert non-English text?

ASCII only supports English characters. For accented letters, non-Latin scripts, or emojis, the text is encoded as UTF-8 bytes, which may produce multiple ASCII values per character.

How do I find a specific ASCII code?

Use the ASCII table reference with the search function. Search by character, code number, or description to quickly find the ASCII value you need.

What is the ASCII code for space?

Space is ASCII code 32 (decimal), 0x20 (hex), 040 (octal), or 00100000 (binary). It is the first printable ASCII character after the control characters.