DeveloperInformationEducation

ASCII Table

Full ASCII reference (0-127) with decimal, hex, octal, binary, character, and HTML entity columns. Searchable, grouped by control and printable.

ALatin Capital Letter A

Dec

65

Hex

0x41

Oct

101

Bin

01000001

HTML

A

DecHexOctBinCharNameHTML Entity
00x00000000000NULNull�
10x01100000001SOHStart of Heading
20x02200000010STXStart of Text
30x03300000011ETXEnd of Text
40x04400000100EOTEnd of Transmission
50x05500000101ENQEnquiry
60x06600000110ACKAcknowledge
70x07700000111BELBell
80x081000001000BSBackspace
90x091100001001HTHorizontal Tab	
100x0A1200001010LFLine Feed

110x0B1300001011VTVertical Tab
120x0C1400001100FFForm Feed
130x0D1500001101CRCarriage Return
140x0E1600001110SOShift Out
150x0F1700001111SIShift In
160x102000010000DLEData Link Escape
170x112100010001DC1Device Control 1
180x122200010010DC2Device Control 2
190x132300010011DC3Device Control 3
200x142400010100DC4Device Control 4
210x152500010101NAKNegative Ack
220x162600010110SYNSync Idle
230x172700010111ETBEnd of Trans Block
240x183000011000CANCancel
250x193100011001EMEnd of Medium
260x1A3200011010SUBSubstitute
270x1B3300011011ESCEscape
280x1C3400011100FSFile Separator
290x1D3500011101GSGroup Separator
300x1E3600011110RSRecord Separator
310x1F3700011111USUnit Separator
320x204000100000SPSpace 
330x214100100001!Exclamation mark!
340x224200100010"Double quote"
350x234300100011#Number sign#
360x244400100100$Dollar sign$
370x254500100101%Percent%
380x264600100110&Ampersand&
390x274700100111'Apostrophe'
400x285000101000(Left parenthesis(
410x295100101001)Right parenthesis)
420x2A5200101010*Asterisk*
430x2B5300101011+Plus+
440x2C5400101100,Comma,
450x2D5500101101-Hyphen-
460x2E5600101110.Period.
470x2F5700101111/Slash/
480x3060001100000Digit 00
490x3161001100011Digit 11
500x3262001100102Digit 22
510x3363001100113Digit 33
520x3464001101004Digit 44
530x3565001101015Digit 55
540x3666001101106Digit 66
550x3767001101117Digit 77
560x3870001110008Digit 88
570x3971001110019Digit 99
580x3A7200111010:Colon:
590x3B7300111011;Semicolon&#59;
600x3C7400111100<Less than&lt;
610x3D7500111101=Equals&#61;
620x3E7600111110>Greater than&gt;
630x3F7700111111?Question mark&#63;
640x4010001000000@At sign&#64;
650x4110101000001ALatin Capital Letter A&#65;
660x4210201000010BLatin Capital Letter B&#66;
670x4310301000011CLatin Capital Letter C&#67;
680x4410401000100DLatin Capital Letter D&#68;
690x4510501000101ELatin Capital Letter E&#69;
700x4610601000110FLatin Capital Letter F&#70;
710x4710701000111GLatin Capital Letter G&#71;
720x4811001001000HLatin Capital Letter H&#72;
730x4911101001001ILatin Capital Letter I&#73;
740x4A11201001010JLatin Capital Letter J&#74;
750x4B11301001011KLatin Capital Letter K&#75;
760x4C11401001100LLatin Capital Letter L&#76;
770x4D11501001101MLatin Capital Letter M&#77;
780x4E11601001110NLatin Capital Letter N&#78;
790x4F11701001111OLatin Capital Letter O&#79;
800x5012001010000PLatin Capital Letter P&#80;
810x5112101010001QLatin Capital Letter Q&#81;
820x5212201010010RLatin Capital Letter R&#82;
830x5312301010011SLatin Capital Letter S&#83;
840x5412401010100TLatin Capital Letter T&#84;
850x5512501010101ULatin Capital Letter U&#85;
860x5612601010110VLatin Capital Letter V&#86;
870x5712701010111WLatin Capital Letter W&#87;
880x5813001011000XLatin Capital Letter X&#88;
890x5913101011001YLatin Capital Letter Y&#89;
900x5A13201011010ZLatin Capital Letter Z&#90;
910x5B13301011011[Left bracket&#91;
920x5C13401011100\Backslash&#92;
930x5D13501011101]Right bracket&#93;
940x5E13601011110^Caret&#94;
950x5F13701011111_Underscore&#95;
960x6014001100000`Backtick&#96;
970x6114101100001aLatin Small Letter a&#97;
980x6214201100010bLatin Small Letter b&#98;
990x6314301100011cLatin Small Letter c&#99;
1000x6414401100100dLatin Small Letter d&#100;
1010x6514501100101eLatin Small Letter e&#101;
1020x6614601100110fLatin Small Letter f&#102;
1030x6714701100111gLatin Small Letter g&#103;
1040x6815001101000hLatin Small Letter h&#104;
1050x6915101101001iLatin Small Letter i&#105;
1060x6A15201101010jLatin Small Letter j&#106;
1070x6B15301101011kLatin Small Letter k&#107;
1080x6C15401101100lLatin Small Letter l&#108;
1090x6D15501101101mLatin Small Letter m&#109;
1100x6E15601101110nLatin Small Letter n&#110;
1110x6F15701101111oLatin Small Letter o&#111;
1120x7016001110000pLatin Small Letter p&#112;
1130x7116101110001qLatin Small Letter q&#113;
1140x7216201110010rLatin Small Letter r&#114;
1150x7316301110011sLatin Small Letter s&#115;
1160x7416401110100tLatin Small Letter t&#116;
1170x7516501110101uLatin Small Letter u&#117;
1180x7616601110110vLatin Small Letter v&#118;
1190x7716701110111wLatin Small Letter w&#119;
1200x7817001111000xLatin Small Letter x&#120;
1210x7917101111001yLatin Small Letter y&#121;
1220x7A17201111010zLatin Small Letter z&#122;
1230x7B17301111011{Left brace&#123;
1240x7C17401111100|Pipe&#124;
1250x7D17501111101}Right brace&#125;
1260x7E17601111110~Tilde&#126;
1270x7F17701111111DELDelete&#127;

What is ASCII?

ASCII — the American Standard Code for Information Interchange — was published by ANSI in 1963 to give every English letter, digit, and common symbol a single, unambiguous numeric code. It uses 7 bits per character, giving exactly 128 codepoints (0–127). The first 32 plus code 127 are control characters; the remaining 95 (codes 32–126) are printable glyphs.

ASCII underpins almost every modern text encoding. It became the base layer of ISO/IEC 646 in 1972, was extended by national variants and 8-bit code pages, and ultimately became the first 128 codepoints of Unicode. Today the codes you see in this table are bit-for-bit identical to the first byte range of UTF-8 — six decades later, the original choices still drive the web.

Control vs printable

Control characters (0–31, 127)

Non-displayable signaling codes inherited from teletype and early terminals. They drive cursor movement, line endings (LF / CR), bell, tab, escape sequences, and end-of-file markers. Most are invisible in modern text but still meaningful to shells, printers, and serial protocols.

Printable characters (32–126)

Visible glyphs starting with space (32) through tilde (126). This range covers the 10 digits, both letter cases, and a curated set of punctuation marks that became the foundation of virtually every programming language and file format.

HTML entities — when to escape

HTML reserves a handful of ASCII characters for its own syntax. If you want them to appear as literal text in the rendered page, you must replace them with an entity reference — a named token like &amp; or a numeric form like &#38;.

  • Inside HTML body text: always escape &, <, and > as &amp;, &lt;, &gt;.
  • Inside attribute values: also escape " as &quot;. If the attribute uses single quotes, escape ' as &apos; instead.
  • Named vs numeric: Named entities like &copy; are easier to read but limited to a defined list. Numeric entities like &#169; or hex &#xA9; work for any Unicode codepoint.
  • XML & XHTML: only five entities are predefined — &amp;, &lt;, &gt;, &quot;, and &apos;. Anything else must be numeric.

Beyond ASCII — Unicode & UTF-8

ASCII forms the first 128 codepoints (U+0000 to U+007F) of Unicode. UTF-8 was designed so that those codepoints encode to a single byte, unchanged from their ASCII value. The practical consequence: every valid ASCII file is already a valid UTF-8 file, and any tool that processes UTF-8 byte-by-byte handles ASCII text correctly without special cases. Higher codepoints — accented Latin, CJK, emoji — use two to four bytes, but the original 128 stay stable forever.