ASCII Table Reference

Beginner
⏱️ 10 min read
📚 Updated: Jul 2026
🎯 3 Examples
Dec · Hex · Oct

What You’ll Learn

This page explains the ASCII character table in plain language. You will learn what each code means, how to read decimal and hexadecimal values, and how to use ASCII in HTML and JavaScript.

01

What is ASCII

History & purpose.

02

What it contains

Control & printable.

03

Full table

Codes 0–255.

04

Number systems

Dec, hex, oct.

05

Practical use

HTML & JS examples.

06

Quick lookup

Common codes.

What is ASCII Table?

The ASCII table, also known as the ASCII character set, is a standardized table that assigns unique numeric codes to represent characters in digital computing systems.

ASCII stands for the American Standard Code for Information Interchange. It was one of the earliest character encoding standards, developed in the 1960s, and remains the foundation of text on computers and the web today.

When you type the letter A on a keyboard, the computer does not store the shape of the letter—it stores the number 65. The ASCII table is the dictionary that maps numbers to characters (and back).

💡
Beginner tip

Think of ASCII as a phone book: every character has a unique number. Programmers use these numbers when parsing files, building protocols, escaping special characters, and debugging encoding issues.

What do ASCII Table Contains?

The standard ASCII table consists of 128 characters, numbered from 0 to 127. These include uppercase and lowercase letters, digits, punctuation marks, special symbols, and control characters.

The first 32 codes (0–31) are control characters—non-printable codes used to control devices such as printers and terminals (for example, line feed, tab, and escape).

Code 127 is DEL (delete). The remaining codes (32–126) represent printable characters, including space (code 32), letters, digits, and symbols.

Many systems also refer to extended ASCII (codes 128–255) for additional symbols and accented letters. The full table below includes both standard and extended ranges for reference.

Range (Dec)TypeExamples
0–31Control charactersNUL (0), TAB (9), LF (10), CR (13), ESC (27)
32SpaceSpace character (not visible, but printable)
48–57Digits0 through 9
65–90Uppercase lettersA (65) through Z (90)
97–122Lowercase lettersa (97) through z (122)
127ControlDEL (delete)
128–255Extended ASCIIVaries by encoding (e.g. é, ½, box-drawing)

🔢 Decimal, Hexadecimal & Octal

Each ASCII character can be written as the same code in different number bases. Developers often use hexadecimal because it is compact and aligns with bytes.

CharacterDecimalHexadecimalOctal
A6541101
a9761141
0483060
Space322040
New line (LF)100A012
  • Decimal (Dec) — base 10, everyday counting (65 for A).
  • Hexadecimal (Hex) — base 16, uses 0–9 and A–F (41 for A).
  • Octal (Oct) — base 8, common in older Unix file permissions and legacy systems.

ASCII Table

Here is the complete ASCII table showing decimal, hexadecimal, octal, character, and description for codes 0 through 255. Use the search box to filter by number, character, or description.

Need a searchable, filterable view? Try our Interactive ASCII Tool (standard ASCII 0–127 with categories and copy buttons).

DecHexOctCharDescription
000000^@Null (NUL)
101001^AStart of heading (SOH)
202002^BStart of text (STX)
303003^CEnd of text (ETX)
404004^DEnd of transmission (EOT)
505005^EEnquiry (ENQ)
606006^FAcknowledge (ACK)
707007^GBell (BEL)
808010^HBackspace (BS)
909011^IHorizontal tab (HT)
100A012^JLine feed (LF)
110B013^KVertical tab (VT)
120C014^LNew page/form feed (FF)
130D015^MCarriage return (CR)
140E016^NShift out (SO)
150F017^OShift in (SI)
1610020^PData link escape (DLE)
1711021^QDevice control 1 (DC1)
1812022^RDevice control 2 (DC2)
1913023^SDevice control 3 (DC3)
2014024^TDevice control 4 (DC4)
2115025^UNegative acknowledge (NAK)
2216026^VSynchronous idle (SYN)
2317027^WEnd of transmission block (ETB)
2418030^XCancel (CAN)
2519031^YEnd of medium (EM)
261A032^ZSubstitute (SUB)
271B033^[Escape (ESC)
281C034^\File separator (FS)
291D035^]Group separator (GS)
301E036^^Record separator (RS)
311F037^_Unit separator (US)
3220040Space
3321041!Exclamation mark
3422042"Quotation mark/Double quote
3523043#Number sign
3624044$Dollar sign
3725045%Percent sign
3826046&Ampersand
3927047'Apostrophe/Single quote
4028050(Left parenthesis
4129051)Right parenthesis
422A052*Asterisk
432B053+Plus sign
442C054,Comma
452D055-Hyphen/Minus
462E056.Full stop/Period
472F057/Solidus/Slash
48300600Digit zero
49310611Digit one
50320622Digit two
51330633Digit three
52340644Digit four
53350655Digit five
54360666Digit six
55370677Digit seven
56380708Digit eight
57390719Digit nine
583A072:Colon
593B073;Semicolon
603C074<Less-than sign
613D075=Equal/Equality sign
623E076>Greater-than sign
633F077?Question mark
6440100@Commercial at/At sign
6541101ALatin capital letter A
6642102BLatin capital letter B
6743103CLatin capital letter C
6844104DLatin capital letter D
6945105ELatin capital letter E
7046106FLatin capital letter F
7147107GLatin capital letter G
7248110HLatin capital letter H
7349111ILatin capital letter I
744A112JLatin capital letter J
754B113KLatin capital letter K
764C114LLatin capital letter L
774D115MLatin capital letter M
784E116NLatin capital letter N
794F117OLatin capital letter O
8050120PLatin capital letter P
8151121QLatin capital letter Q
8252122RLatin capital letter R
8353123SLatin capital letter S
8454124TLatin capital letter T
8555125ULatin capital letter U
8656126VLatin capital letter V
8757127WLatin capital letter W
8858130XLatin capital letter X
8959131YLatin capital letter Y
905A132ZLatin capital letter Z
915B133[Left square bracket
925C134\Reverse solidus/Backslash
935D135]Right square bracket
945E136^Circumflex accent/Caret
955F137_Underscore/Low line
9660140`Grave accent
9761141aLatin small letter a
9862142bLatin small letter b
9963143cLatin small letter c
10064144dLatin small letter d
10165145eLatin small letter e
10266146fLatin small letter f
10367147gLatin small letter g
10468150hLatin small letter h
10569151iLatin small letter i
1066A152jLatin small letter j
1076B153kLatin small letter k
1086C154lLatin small letter l
1096D155mLatin small letter m
1106E156nLatin small letter n
1116F157oLatin small letter o
11270160pLatin small letter p
11371161qLatin small letter q
11472162rLatin small letter r
11573163sLatin small letter s
11674164tLatin small letter t
11775165uLatin small letter u
11876166vLatin small letter v
11977167wLatin small letter w
12078170xLatin small letter x
12179171yLatin small letter y
1227A172zLatin small letter z
1237B173{Left curly bracket
1247C174|Vertical line/Vertical bar
1257D175}Right curly bracket
1267E176~Tilde
1277F177DELDelete (DEL)
12880200
12981201
13082202
13183203
13284204
13385205
13486206
13587207
13688210
13789211
1388A212
1398B213
1408C214
1418D215
1428E216
1438F217
14490220
14591221
14692222
14793223
14894224
14995225
15197227
15298230
15399231
1549A232
1559B233
1569C234
1579D235
1589E236
1599F237
160A0240No-break space
161A1241¡Inverted exclamation mark
162A2242¢Cent sign
163A3243£Pound sign
164A4244¤Currency sign
165A5245¥Yen/Yuan sign
166A6246¦Broken bar
167A7247§Section sign
168A8250¨Diaeresis
169A9251©Copyright sign
170AA252ªFeminine ordinal indicator
171AB253«Left-pointing double angle quotation mark
172AC254¬Not sign
173AD255Soft hyphen
174AE256®Registered trademark sign
175AF257¯Macron
176B0260°Degree sign
177B1261±Plus-minus sign
178B2262²Superscript two
179B3263³Superscript three
180B4264´Acute accent
181B5265µMicro sign (mu)
182B6266Pilcrow sign
183B7267·Middle dot
184B8270¸Cedilla
185B9271¹Superscript one
186BA272ºMasculine ordinal indicator
187BB273»Right-pointing double angle quotation mark
188BC274¼Vulgar fraction one quarter
189BD275½Vulgar fraction one half
190BE276¾Vulgar fraction three quarters
191BF277¿Inverted question mark
192C0300ÀLatin capital letter A with grave
193C1301ÁLatin capital letter A with acute
194C2302ÂLatin capital letter A with circumflex
195C3303ÃLatin capital letter A with tilde
196C4304ÄLatin capital letter A with diaeresis
197C5305ÅLatin capital letter A with ring above
198C6306ÆLatin capital letter AE
199C7307ÇLatin capital letter C with cedilla
200C8310ÈLatin capital letter E with grave
201C9311ÉLatin capital letter E with acute
202CA312ÊLatin capital letter E with circumflex
203CB313ËLatin capital letter E with diaeresis
204CC314ÌLatin capital letter I with grave
205CD315ÍLatin capital letter I with acute
206CE316ÎLatin capital letter I with circumflex
207CF317ÏLatin capital letter I with diaeresis
208D0320ÐLatin capital letter ETH
209D1321ÑLatin capital letter N with tilde
210D2322ÒLatin capital letter O with grave
211D3323ÓLatin capital letter O with acute
212D4324ÔLatin capital letter O with circumflex
213D5325ÕLatin capital letter O with tilde
214D6326ÖLatin capital letter O with diaeresis
215D7327×Multiplication sign
216D8330ØLatin capital letter O with stroke
217D9331ÙLatin capital letter U with grave
218DA332ÚLatin capital letter U with acute
219DB333ÛLatin capital letter U with circumflex
220DC334ÜLatin capital letter U with diaeresis
221DD335ÝLatin capital letter Y with acute
222DE336ÞLatin capital letter THORN
223DF337ßLatin small letter sharp s
224E0340àLatin small letter a with grave
225E1341áLatin small letter a with acute
226E2342âLatin small letter a with circumflex
227E3343ãLatin small letter a with tilde
228E4344äLatin small letter a with diaeresis
229E5345åLatin small letter a with ring above
230E6346æLatin small letter ae
231E7347çLatin small letter c with cedilla
232E8350èLatin small letter e with grave
233E9351éLatin small letter e with acute
234EA352êLatin small letter e with circumflex
235EB353ëLatin small letter e with diaeresis
236EC354ìLatin small letter i with grave
237ED355íLatin small letter i with acute
238EE356îLatin small letter i with circumflex
239EF357ïLatin small letter i with diaeresis
240F0360ðLatin small letter eth
241F1361ñLatin small letter n with tilde
242F2362òLatin small letter o with grave
243F3363óLatin small letter o with acute
244F4364ôLatin small letter o with circumflex
245F5365õLatin small letter o with tilde
246F6366öLatin small letter o with diaeresis
247F7367÷Division sign/Obelus
248F8370øLatin small letter o with stroke
249F9371ùLatin small letter u with grave
250FA372úLatin small letter u with acute
251FB373ûLatin small letter u with circumflex
252FC374üLatin small letter u with diaeresis
253FD375ýLatin small letter y with acute
254FE376þLatin small letter thorn
255FF377ÿLatin small letter y with diaeresis

⚡ Common ASCII Codes

CharacterDecHexNotes
Space3220First printable character
0948–5730–39Digits
AZ65–9041–5AUppercase letters
az97–12261–7ALowercase letters
Tab909Horizontal tab (HT)
New line100ALine feed (LF)
Carriage return130DCR (often paired with LF on Windows)

🛠 How to Use ASCII Codes

In HTML

Use numeric character references: &#65; (decimal) or &#x41; (hex) both display A. See HTML Entities for named entities like &copy;.

In JavaScript

"A".charCodeAt(0) returns 65. String.fromCharCode(65) returns "A".

In C

Characters are integers: char c = 'A'; stores 65. Print with printf("%c", 65); or printf("%d", 'A');.

In Python

ord('A') returns 65. chr(65) returns 'A'.

Examples Gallery

Three practical snippets. Use View Output to preview here, or open Try It Yourself to edit and run live in the browser.

Example 1 — HTML numeric entities

HTML
<p>Letter A: &#65;</p>
<p>Same letter (hex): &#x41;</p>
<p>Copyright symbol: &#169;</p>
Try It Yourself

Example 2 — JavaScript charCodeAt and fromCharCode

JavaScript
var letter = "A";
console.log(letter.charCodeAt(0));  // 65
console.log(String.fromCharCode(65)); // "A"
console.log("a".charCodeAt(0));      // 97
Try It Yourself

Example 3 — Loop through printable ASCII (32–126)

JavaScript
for (var i = 32; i <= 126; i++) {
  document.write(String.fromCharCode(i) + " ");
}
Try It Yourself

🌐 ASCII vs Unicode

Unicode is a universal character set with over a million code points, including emoji, scripts from every language, and mathematical symbols. The first 128 Unicode code points are identical to ASCII.

On the web, text is almost always stored as UTF-8, which encodes ASCII characters in one byte and uses multiple bytes for other characters. Plain ASCII files are valid UTF-8 files.

Summary

  • ASCII maps characters to numbers 0–127 (standard) with extended codes up to 255.
  • Codes 0–31 and 127 are control characters; 32–126 are printable.
  • Uppercase A = 65 (hex 41); lowercase a = 97 (hex 61).
  • Use decimal or hex HTML entities, JavaScript charCodeAt, or language equivalents.
  • Modern web pages use UTF-8, which is backward-compatible with ASCII.

💡 Best Practices

✅ Do

  • Use UTF-8 encoding for all web pages (<meta charset="UTF-8">)
  • Prefer actual Unicode characters over numeric entities when possible
  • Use entities for reserved HTML characters: &lt;, &gt;, &amp;
  • Remember LF (10) vs CR (13) when handling line endings across OSes
  • Bookmark this table or use the interactive tool for quick lookup

❌ Don’t

  • Assume extended ASCII (128+) looks the same on every system
  • Hard-code binary data as text without checking encoding
  • Confuse ASCII codes with keyboard key codes (they differ in JS events)
  • Use deprecated encodings like ISO-8859-1 for new projects
  • Forget that code 32 is space—it is easy to miss in debug output

❓ Frequently Asked Questions

An ASCII table lists every character in the American Standard Code for Information Interchange along with its numeric code in decimal, hexadecimal, and sometimes octal. Each letter, digit, symbol, and control character has a unique number computers use internally.
Standard ASCII defines 128 characters numbered 0 through 127. Codes 0–31 and 127 are control characters (non-printable). Codes 32–126 are printable characters including space, letters, digits, and punctuation.
Extended ASCII (often codes 128–255) adds extra symbols and accented letters. The exact characters depend on the encoding (Windows-1252, ISO-8859-1, etc.). Modern web pages use UTF-8 (Unicode), which includes ASCII as its first 128 codes.
Uppercase A is decimal 65, hexadecimal 41, and octal 101. Lowercase a is decimal 97 (hex 61). You can remember that uppercase letters are 65–90 and lowercase are 97–122.
Use numeric character references: decimal &#65; for A or hexadecimal &#x41; for A. Named entities like &amp;copy; work for some common symbols. See our HTML Entities tutorial for more.
Unicode is a much larger character set that includes every ASCII character with the same code points 0–127. UTF-8 is the standard web encoding and stores ASCII characters in a single byte, so ASCII text is valid UTF-8.
Did you know?

The @ symbol (ASCII code 64) was almost dropped from ASCII because it was rarely used in the 1960s. Today it is essential for every email address. The name “ASCII” was first published in 1963, and the standard was last updated in 1986—yet it still powers virtually all English text on computers.

Try It Yourself

Open the HTML entity example and experiment with decimal and hex character codes.

Try Example 1 →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful