ASCII Converter
Convert between text and ASCII codes
ASCII Table (32-126)
SP
32
!
33
"
34
#
35
$
36
%
37
&
38
'
39
(
40
)
41
*
42
+
43
,
44
-
45
.
46
/
47
0
48
1
49
2
50
3
51
4
52
5
53
6
54
7
55
8
56
9
57
:
58
;
59
<
60
=
61
>
62
?
63
@
64
A
65
B
66
C
67
D
68
E
69
F
70
G
71
H
72
I
73
J
74
K
75
L
76
M
77
N
78
O
79
P
80
Q
81
R
82
S
83
T
84
U
85
V
86
W
87
X
88
Y
89
Z
90
[
91
\
92
]
93
^
94
_
95
`
96
a
97
b
98
c
99
d
100
e
101
f
102
g
103
h
104
i
105
j
106
k
107
l
108
m
109
n
110
o
111
p
112
q
113
r
114
s
115
t
116
u
117
v
118
w
119
x
120
y
121
z
122
{
123
|
124
}
125
~
126
What is ASCII?
ASCII (American Standard Code for Information Interchange) is a character encoding standard that assigns a unique numerical code to each character in the English alphabet, digits, punctuation marks, and control characters. Developed in the 1960s, ASCII remains the foundational character set for virtually all modern text encoding systems, including Unicode and UTF-8.
The original ASCII standard defines 128 characters, numbered 0 through 127. Each character is represented by a 7-bit binary number. For example, the uppercase letter 'A' is assigned the decimal value 65, the lowercase 'a' is 97, and the digit '0' is 48. Control characters (0-31 and 127) handle formatting tasks like line feeds, carriage returns, and tab characters.
Understanding ASCII codes is essential for programmers, data scientists, and anyone working with text processing, file encoding, or communication protocols. This converter allows you to translate between human-readable text and its underlying numerical representations in decimal, hexadecimal, and binary formats.
The ASCII Character Table
The printable ASCII characters range from code 32 (space) to code 126 (tilde ~). This range includes all uppercase and lowercase English letters, digits 0-9, and common punctuation marks.
- Digits 0-9: ASCII codes 48-57. The digit '0' is 48, '1' is 49, and so on through '9' at 57.
- Uppercase A-Z: ASCII codes 65-90. 'A' is 65, 'B' is 66, through 'Z' at 90.
- Lowercase a-z: ASCII codes 97-122. 'a' is 97, 'b' is 98, through 'z' at 122.
- Punctuation and symbols: Spaces (32), exclamation mark (33), quote marks (34, 39), parentheses (40, 41), and many more.
- Control characters (0-31): Non-printable characters used for formatting, such as newline (10), carriage return (13), and tab (9).
Decimal, Hexadecimal, and Binary
ASCII codes can be expressed in three common number systems, each serving different purposes in computing.
- Decimal (base 10): The human-readable system. The letter 'H' is 72 in decimal. Easy for people to read and write.
- Hexadecimal (base 16): Uses digits 0-9 and letters A-F. 'H' is 48 in hex (0x48). Widely used in programming, debugging, and memory addresses.
- Binary (base 2): Uses only 0s and 1s. 'H' is 01001000 in binary (8 bits). The native language of computers and digital circuits.
All three representations encode the same character — they are just different ways of expressing the same numerical value. Converting between them is a fundamental skill in computer science.
How to Use This Calculator
This converter supports four modes for maximum flexibility:
- Text to ASCII: Enter any text and see its decimal, hexadecimal, and binary ASCII codes displayed simultaneously.
- Decimal to Text: Enter space-separated or comma-separated decimal numbers (0-127) to decode them into text characters.
- Hex to Text: Enter hexadecimal values (00-7F) to decode them into text. Use spaces between values.
- Binary to Text: Enter 8-bit binary values (00000000-01111111) to decode them into text characters.
The ASCII table below the converter shows all printable characters (codes 32-126) for quick reference. Click any character in the table to load it into the converter.
Real-World Applications
ASCII encoding is the backbone of text communication across virtually all computing systems. Email protocols (SMTP), web pages (HTML), and programming source files all rely on ASCII-compatible encoding. Even when extended character sets like UTF-8 are used, the first 128 characters remain identical to ASCII for backward compatibility.
Programmers use ASCII codes daily without always realizing it. When comparing characters in code ('A' < 'B'), the comparison uses their underlying ASCII values (65 < 66). Escape sequences like ' ' (newline, ASCII 10) and ' ' (tab, ASCII 9) are ASCII control characters that format text output.
Data communication protocols frequently use ASCII for human-readable commands. The AT command set used by modems and many IoT devices, HTTP headers, and FTP commands are all ASCII-based. Understanding ASCII helps troubleshoot encoding issues when systems using different character sets communicate.
Worked Examples
Converting Text to ASCII
Problem:
What are the ASCII codes for the word 'Hello'?
Solution Steps:
- 1H = 72 (decimal), 48 (hex), 01001000 (binary)
- 2e = 101 (decimal), 65 (hex), 01100101 (binary)
- 3l = 108 (decimal), 6C (hex), 01101100 (binary)
- 4l = 108 (decimal), 6C (hex), 01101100 (binary)
- 5o = 111 (decimal), 6F (hex), 01101111 (binary)
Result:
Hello = 72 101 108 108 111 (decimal) or 48 65 6C 6C 6F (hex)
Decoding ASCII Numbers
Problem:
What text do the decimal codes 67 97 116 represent?
Solution Steps:
- 167 in decimal corresponds to 'C' (uppercase)
- 297 in decimal corresponds to 'a' (lowercase)
- 3111 in decimal corresponds to 't' (lowercase)
- 4Concatenate the characters: C + a + t
Result:
The codes 67 97 116 spell 'Cat'
Hex to Text Conversion
Problem:
Decode the hexadecimal ASCII codes 4A 61 76 61 into text.
Solution Steps:
- 14A (hex) = 74 (decimal) = 'J'
- 261 (hex) = 97 (decimal) = 'a'
- 376 (hex) = 118 (decimal) = 'v'
- 461 (hex) = 97 (decimal) = 'a'
Result:
The hex codes 4A 61 76 61 spell 'Java'
Tips & Best Practices
- ✓Remember that uppercase letters start at ASCII 65 ('A') and lowercase at 97 ('a').
- ✓The difference between a letter and its uppercase form is always 32 in ASCII.
- ✓Hexadecimal is convenient for ASCII because each character fits in exactly two hex digits (00-7F).
- ✓The ASCII table only has 128 entries — if you see values above 127, it's extended ASCII or Unicode.
- ✓Control characters (0-31) are non-printable but essential for text formatting.
- ✓When debugging text encoding issues, check the hex values of the first few bytes first.
Frequently Asked Questions
Sources & References
- ASCII Standard (ANSI X3.4) (2024)
- Unicode Consortium (2024)
- Wikipedia - ASCII (2024)
Last updated: 2026-06-06
Help us improve!
How would you rate the ASCII Converter?
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
Formula Source: NIST Guide to SI Units
by National Institute of Standards