Reference

ASCII table.

The printable ASCII characters with their decimal, hex and HTML codes, plus the control codes worth knowing.

Tap any row to copy the value in the first column.

Printable characters (32–126)

DecHexCharHTMLDescription
3220space Space
3321!!Exclamation mark
3422""Double quote
3523##Number sign (hash)
3624$$Dollar sign
3725%%Percent sign
3826&&Ampersand
3927''Apostrophe
4028((Left parenthesis
4129))Right parenthesis
422A**Asterisk
432B++Plus sign
442C,,Comma
452D--Hyphen / minus
462E..Period (full stop)
472F//Forward slash
483000Digit 0
493111Digit 1
503222Digit 2
513333Digit 3
523444Digit 4
533555Digit 5
543666Digit 6
553777Digit 7
563888Digit 8
573999Digit 9
583A::Colon
593B;&#59;Semicolon
603C<&#60;Less-than sign
613D=&#61;Equals sign
623E>&#62;Greater-than sign
633F?&#63;Question mark
6440@&#64;At sign
6541A&#65;Capital letter A
6642B&#66;Capital letter B
6743C&#67;Capital letter C
6844D&#68;Capital letter D
6945E&#69;Capital letter E
7046F&#70;Capital letter F
7147G&#71;Capital letter G
7248H&#72;Capital letter H
7349I&#73;Capital letter I
744AJ&#74;Capital letter J
754BK&#75;Capital letter K
764CL&#76;Capital letter L
774DM&#77;Capital letter M
784EN&#78;Capital letter N
794FO&#79;Capital letter O
8050P&#80;Capital letter P
8151Q&#81;Capital letter Q
8252R&#82;Capital letter R
8353S&#83;Capital letter S
8454T&#84;Capital letter T
8555U&#85;Capital letter U
8656V&#86;Capital letter V
8757W&#87;Capital letter W
8858X&#88;Capital letter X
8959Y&#89;Capital letter Y
905AZ&#90;Capital letter Z
915B[&#91;Left square bracket
925C\&#92;Backslash
935D]&#93;Right square bracket
945E^&#94;Caret
955F_&#95;Underscore
9660`&#96;Backtick (grave)
9761a&#97;Small letter a
9862b&#98;Small letter b
9963c&#99;Small letter c
10064d&#100;Small letter d
10165e&#101;Small letter e
10266f&#102;Small letter f
10367g&#103;Small letter g
10468h&#104;Small letter h
10569i&#105;Small letter i
1066Aj&#106;Small letter j
1076Bk&#107;Small letter k
1086Cl&#108;Small letter l
1096Dm&#109;Small letter m
1106En&#110;Small letter n
1116Fo&#111;Small letter o
11270p&#112;Small letter p
11371q&#113;Small letter q
11472r&#114;Small letter r
11573s&#115;Small letter s
11674t&#116;Small letter t
11775u&#117;Small letter u
11876v&#118;Small letter v
11977w&#119;Small letter w
12078x&#120;Small letter x
12179y&#121;Small letter y
1227Az&#122;Small letter z
1237B{&#123;Left curly brace
1247C|&#124;Vertical bar (pipe)
1257D}&#125;Right curly brace
1267E~&#126;Tilde

Common control characters

DecHexAbbrDescription
000NULNull character
707BELBell / alert
808BSBackspace
909TABHorizontal tab (\t)
100ALFLine feed — newline (\n)
130DCRCarriage return (\r)
271BESCEscape
1277FDELDelete

What ASCII actually is

ASCII maps numbers to characters — the letter A is 65, a space is 32, the digit 0 is 48. It defines 128 codes in total: the first 32 (0–31) plus 127 are invisible control characters like tab, newline and carriage return, and the rest (32–126) are the printable letters, digits and symbols in the table above. Almost every text-based system builds on this foundation, which is why it's worth knowing where to look.

Why the codes still matter

A few practical patterns fall out of the numbering. Uppercase and lowercase letters are exactly 32 apart (A is 65, a is 97), which is how case conversion works at the byte level. The digits 0–9 sit at 48–57, so subtracting 48 from a digit's code gives its value. And the difference between a line feed (10) and a carriage return (13) is the root of the classic Windows-versus-Unix newline difference. Modern UTF-8 is a superset of ASCII — the first 128 characters are identical — so this table is still the base layer underneath today's text. To convert between decimal, hex and binary, use the number base converter.

FAQ

What's the difference between ASCII and Unicode?
ASCII defines 128 characters (English letters, digits, basic symbols and control codes). Unicode is a much larger standard covering virtually every writing system. UTF-8, the dominant Unicode encoding, is backward-compatible: its first 128 code points are exactly ASCII.
What are control characters?
Codes 0–31 and 127 don't print a visible glyph — they control text flow and devices. The common ones are tab (9), line feed/newline (10) and carriage return (13).

More references