ASCII Converter

Text to ASCII codes and codes back to text.

How do you convert text to ASCII?

Replace each character with its number in the ASCII table. "Hello" becomes 72 101 108 108 111. Characters outside ASCII (accents, Korean, emoji) are shown as their Unicode code point, so "é" is 233 and "한" is 54620.

ASCII table (0–127)

Codes 0–31 and 127 are control characters; 32 is the space. Letters start at 65 (A) and 97 (a); digits at 48 (0).

DecHexBinaryCharacter
0000000000NUL
1010000001SOH
2020000010STX
3030000011ETX
4040000100EOT
5050000101ENQ
6060000110ACK
7070000111BEL
8080001000BS
9090001001HT
100A0001010LF
110B0001011VT
120C0001100FF
130D0001101CR
140E0001110SO
150F0001111SI
16100010000DLE
17110010001DC1
18120010010DC2
19130010011DC3
20140010100DC4
21150010101NAK
22160010110SYN
23170010111ETB
24180011000CAN
25190011001EM
261A0011010SUB
271B0011011ESC
281C0011100FS
291D0011101GS
301E0011110RS
311F0011111US
32200100000Space
33210100001!
34220100010"
35230100011#
36240100100$
37250100101%
38260100110&
39270100111'
40280101000(
41290101001)
422A0101010*
432B0101011+
442C0101100,
452D0101101-
462E0101110.
472F0101111/
483001100000
493101100011
503201100102
513301100113
523401101004
533501101015
543601101106
553701101117
563801110008
573901110019
583A0111010:
593B0111011;
603C0111100<
613D0111101=
623E0111110>
633F0111111?
64401000000@
65411000001A
66421000010B
67431000011C
68441000100D
69451000101E
70461000110F
71471000111G
72481001000H
73491001001I
744A1001010J
754B1001011K
764C1001100L
774D1001101M
784E1001110N
794F1001111O
80501010000P
81511010001Q
82521010010R
83531010011S
84541010100T
85551010101U
86561010110V
87571010111W
88581011000X
89591011001Y
905A1011010Z
915B1011011[
925C1011100\
935D1011101]
945E1011110^
955F1011111_
96601100000`
97611100001a
98621100010b
99631100011c
100641100100d
101651100101e
102661100110f
103671100111g
104681101000h
105691101001i
1066A1101010j
1076B1101011k
1086C1101100l
1096D1101101m
1106E1101110n
1116F1101111o
112701110000p
113711110001q
114721110010r
115731110011s
116741110100t
117751110101u
118761110110v
119771110111w
120781111000x
121791111001y
1227A1111010z
1237B1111011{
1247C1111100|
1257D1111101}
1267E1111110~
1277F1111111DEL

What is the difference between ASCII and Unicode?

ASCII defines 128 characters: English letters, digits, punctuation and control codes. Unicode includes all of ASCII with the same numbers and adds over 150,000 characters for other scripts and emoji. UTF-8 stores the ASCII range as single bytes, which is why plain English text is identical in ASCII and UTF-8.

What is extended ASCII?

Codes 128–255 were used by various 8-bit code pages (such as Windows-1252 or ISO-8859-1) with different characters in each. They are not part of ASCII itself, so this converter uses Unicode code points for anything above 127.

ASCII codes in programming

LanguageCharacter → codeCode → character
Pythonord("A") → 65chr(65)
JavaScript"A".codePointAt(0)String.fromCodePoint(65)
C / C++(int)'A'(char)65
Excel=CODE("A")=CHAR(65)

Sources: RFC 20, ASCII format for network interchange · RFC 3629 (UTF-8). Checked October 2026.

Frequently asked questions

What is the ASCII code for A?

Upper case A is 65 (hex 41). Lower case a is 97 (hex 61).

What is ASCII 32?

The space character.

How do I convert ASCII codes back to text?

Choose ASCII → Text and paste the decimal numbers separated by spaces or commas, for example 72 105.

Why is my code above 127?

The character is not in ASCII. The converter shows its Unicode code point instead, which works in Python chr() and JavaScript String.fromCodePoint().