ModernCalcs

ASCII Table Generator

Full reference of all 128 ASCII characters with decimal, hex, octal and binary codes — plus a live text-to-ASCII converter.

H
72 / 0x48
e
101 / 0x65
l
108 / 0x6C
l
108 / 0x6C
o
111 / 0x6F
,
44 / 0x2C
SPACE
32 / 0x20
W
87 / 0x57
o
111 / 0x6F
r
114 / 0x72
l
108 / 0x6C
d
100 / 0x64
!
33 / 0x21
CharDecHexOctBinName
<NUL>00x0000000000000NUL
<SOH>10x0100100000001SOH
<STX>20x0200200000010STX
<ETX>30x0300300000011ETX
<EOT>40x0400400000100EOT
<ENQ>50x0500500000101ENQ
<ACK>60x0600600000110ACK
<BEL>70x0700700000111BEL
<BS>80x0801000001000BS
<TAB>90x0901100001001TAB
<LF>100x0A01200001010LF
<VT>110x0B01300001011VT
<FF>120x0C01400001100FF
<CR>130x0D01500001101CR
<SO>140x0E01600001110SO
<SI>150x0F01700001111SI
<DLE>160x1002000010000DLE
<DC1>170x1102100010001DC1
<DC2>180x1202200010010DC2
<DC3>190x1302300010011DC3
<DC4>200x1402400010100DC4
<NAK>210x1502500010101NAK
<SYN>220x1602600010110SYN
<ETB>230x1702700010111ETB
<CAN>240x1803000011000CAN
<EM>250x1903100011001EM
<SUB>260x1A03200011010SUB
<ESC>270x1B03300011011ESC
<FS>280x1C03400011100FS
<GS>290x1D03500011101GS
<RS>300x1E03600011110RS
<US>310x1F03700011111US
<SPACE>320x2004000100000SPACE
!330x2104100100001Printable
"340x2204200100010Printable
#350x2304300100011Printable
$360x2404400100100Printable
%370x2504500100101Printable
&380x2604600100110Printable
'390x2704700100111Printable
(400x2805000101000Printable
)410x2905100101001Printable
*420x2A05200101010Printable
+430x2B05300101011Printable
,440x2C05400101100Printable
-450x2D05500101101Printable
.460x2E05600101110Printable
/470x2F05700101111Printable
0480x3006000110000Printable
1490x3106100110001Printable
2500x3206200110010Printable
3510x3306300110011Printable
4520x3406400110100Printable
5530x3506500110101Printable
6540x3606600110110Printable
7550x3706700110111Printable
8560x3807000111000Printable
9570x3907100111001Printable
:580x3A07200111010Printable
;590x3B07300111011Printable
<600x3C07400111100Printable
=610x3D07500111101Printable
>620x3E07600111110Printable
?630x3F07700111111Printable
@640x4010001000000Printable
A650x4110101000001Printable
B660x4210201000010Printable
C670x4310301000011Printable
D680x4410401000100Printable
E690x4510501000101Printable
F700x4610601000110Printable
G710x4710701000111Printable
H720x4811001001000Printable
I730x4911101001001Printable
J740x4A11201001010Printable
K750x4B11301001011Printable
L760x4C11401001100Printable
M770x4D11501001101Printable
N780x4E11601001110Printable
O790x4F11701001111Printable
P800x5012001010000Printable
Q810x5112101010001Printable
R820x5212201010010Printable
S830x5312301010011Printable
T840x5412401010100Printable
U850x5512501010101Printable
V860x5612601010110Printable
W870x5712701010111Printable
X880x5813001011000Printable
Y890x5913101011001Printable
Z900x5A13201011010Printable
[910x5B13301011011Printable
\920x5C13401011100Printable
]930x5D13501011101Printable
^940x5E13601011110Printable
_950x5F13701011111Printable
`960x6014001100000Printable
a970x6114101100001Printable
b980x6214201100010Printable
c990x6314301100011Printable
d1000x6414401100100Printable
e1010x6514501100101Printable
f1020x6614601100110Printable
g1030x6714701100111Printable
h1040x6815001101000Printable
i1050x6915101101001Printable
j1060x6A15201101010Printable
k1070x6B15301101011Printable
l1080x6C15401101100Printable
m1090x6D15501101101Printable
n1100x6E15601101110Printable
o1110x6F15701101111Printable
p1120x7016001110000Printable
q1130x7116101110001Printable
r1140x7216201110010Printable
s1150x7316301110011Printable
t1160x7416401110100Printable
u1170x7516501110101Printable
v1180x7616601110110Printable
w1190x7716701110111Printable
x1200x7817001111000Printable
y1210x7917101111001Printable
z1220x7A17201111010Printable
{1230x7B17301111011Printable
|1240x7C17401111100Printable
}1250x7D17501111101Printable
~1260x7E17601111110Printable
<DEL>1270x7F17701111111DEL

ASCII Table: Reference for All 128 Character Codes

The American Standard Code for Information Interchange (ASCII) assigns every English letter, digit, punctuation mark and control signal a number from 0 to 127. Our ASCII table lets you search, filter, and instantly convert any text into its underlying character codes — all in decimal, hexadecimal, octal, and binary.

Formula
Character -> Decimal Code -> Hex / Octal / Binary

Example: 'A' -> 65 (decimal) -> 0x41 (hex) -> 101 (octal) -> 01000001 (binary).

Printable vs. Control Characters

Codes 32-126 are printable characters you can see (letters, digits, punctuation). Codes 0-31 and 127 are control characters like NUL, TAB, LF, and DEL — they were originally designed to control teleprinters and terminals rather than display a glyph.

Why Letter Case Differs by Exactly 32

Uppercase A-Z occupy 65-90 and lowercase a-z occupy 97-122. The gap between them is always 32, which is 0b00100000 in binary — a single bit. This means code can toggle a letter's case with a fast bitwise XOR against 32 instead of a lookup table.

ASCII's Role Inside UTF-8

UTF-8, the encoding behind almost all modern web text, was deliberately designed so that its first 128 code points are byte-for-byte identical to ASCII. Any valid ASCII file is automatically a valid UTF-8 file, which is why ASCII compatibility still matters in 2026.

Practical Examples

Encoding a Password Character

Finding the numeric code behind a symbol.

  • 1.Character: '!'
  • 2.Decimal: 33
  • 3.Hex: 0x21
  • 4.Binary: 00100001

Reading a Hex Dump

Turning raw hex bytes back into text.

  • 1.Hex bytes: 48 65 6C 6C 6F
  • 2.Decimal: 72 101 108 108 111
  • 3.Text: Hello

Common Control Codes You'll Actually See

  • 9 (TAB): Horizontal tab
  • 10 (LF): Line feed, used by Unix/macOS/Linux
  • 13 (CR): Carriage return, combined with LF for Windows line endings
  • 27 (ESC): Starts terminal escape sequences
  • 127 (DEL): Delete

Quick Ranges to Remember

  • 48-57: Digits 0-9
  • 65-90: Uppercase A-Z
  • 97-122: Lowercase a-z
  • 32: Space, the first printable character

Frequently Asked Questions

What is the ASCII table?

ASCII (American Standard Code for Information Interchange) maps 128 characters — control codes, digits, letters and symbols — to the numbers 0-127 used by computers to represent text.

What's the difference between ASCII and Unicode?

ASCII covers only 128 characters (basic English text and control codes). Unicode is a much larger standard covering virtually every writing system and emoji, and is backward-compatible with ASCII for code points 0-127.

What are 'control characters'?

Codes 0-31 and 127 are non-printable control characters used for things like line feeds (LF, 10), carriage returns (CR, 13), and tabs (TAB, 9) — they control text flow rather than displaying a glyph.

How do I convert a character to its ASCII code in JavaScript?

Use 'A'.charCodeAt(0) to get the decimal code, or String.fromCharCode(65) to go the other way.

Why is code 65 the letter 'A'?

ASCII assigns uppercase letters A-Z to decimal 65-90 and lowercase a-z to 97-122, a deliberate 32-value gap that lets you toggle case by flipping a single bit.

What is code 32?

Decimal 32 is the space character — the first printable character in the ASCII table.

Is ASCII still relevant today?

Yes. It's the foundation that UTF-8 is built on (the first 128 UTF-8 code points are identical to ASCII), and it's still used in protocols, file formats, and low-level programming.

What is 0x41 in ASCII?

0x41 is hexadecimal for decimal 65, which is the letter 'A'.