ASCII table

Show

Showing 256 of 256 characters

DecHexOctBinaryCharHTMLDescription
00000000000000NUL—Null
10100100000001SOH—Start of heading
20200200000010STX—Start of text
30300300000011ETX—End of text
40400400000100EOT—End of transmission
50500500000101ENQ—Enquiry
60600600000110ACK—Acknowledge
70700700000111BEL—Bell
80801000001000BS—Backspace
90901100001001HT—Horizontal tab
100A01200001010LF—Line feed
110B01300001011VT—Vertical tab
120C01400001100FF—Form feed
130D01500001101CR—Carriage return
140E01600001110SO—Shift out
150F01700001111SI—Shift in
161002000010000DLE—Data link escape
171102100010001DC1—Device control 1
181202200010010DC2—Device control 2
191302300010011DC3—Device control 3
201402400010100DC4—Device control 4
211502500010101NAK—Negative acknowledge
221602600010110SYN—Synchronous idle
231702700010111ETB—End of transmission block
241803000011000CAN—Cancel
251903100011001EM—End of medium
261A03200011010SUB—Substitute
271B03300011011ESC—Escape
281C03400011100FS—File separator
291D03500011101GS—Group separator
301E03600011110RS—Record separator
311F03700011111US—Unit separator
322004000100000Space Space
332104100100001!!Exclamation mark
342204200100010""Quotation mark
352304300100011##Number sign
362404400100100$$Dollar sign
372504500100101%%Percent sign
382604600100110&&Ampersand
392704700100111''Apostrophe
402805000101000((Left parenthesis
412905100101001))Right parenthesis
422A05200101010**Asterisk
432B05300101011++Plus sign
442C05400101100,,Comma
452D05500101101--Hyphen-minus
462E05600101110..Full stop
472F05700101111//Slash
48300600011000000Digit 0
49310610011000111Digit 1
50320620011001022Digit 2
51330630011001133Digit 3
52340640011010044Digit 4
53350650011010155Digit 5
54360660011011066Digit 6
55370670011011177Digit 7
56380700011100088Digit 8
57390710011100199Digit 9
583A07200111010::Colon
593B07300111011;&#59;Semicolon
603C07400111100<&#60;Less-than sign
613D07500111101=&#61;Equals sign
623E07600111110>&#62;Greater-than sign
633F07700111111?&#63;Question mark
644010001000000@&#64;At sign
654110101000001A&#65;Uppercase letter A
664210201000010B&#66;Uppercase letter B
674310301000011C&#67;Uppercase letter C
684410401000100D&#68;Uppercase letter D
694510501000101E&#69;Uppercase letter E
704610601000110F&#70;Uppercase letter F
714710701000111G&#71;Uppercase letter G
724811001001000H&#72;Uppercase letter H
734911101001001I&#73;Uppercase letter I
744A11201001010J&#74;Uppercase letter J
754B11301001011K&#75;Uppercase letter K
764C11401001100L&#76;Uppercase letter L
774D11501001101M&#77;Uppercase letter M
784E11601001110N&#78;Uppercase letter N
794F11701001111O&#79;Uppercase letter O
805012001010000P&#80;Uppercase letter P
815112101010001Q&#81;Uppercase letter Q
825212201010010R&#82;Uppercase letter R
835312301010011S&#83;Uppercase letter S
845412401010100T&#84;Uppercase letter T
855512501010101U&#85;Uppercase letter U
865612601010110V&#86;Uppercase letter V
875712701010111W&#87;Uppercase letter W
885813001011000X&#88;Uppercase letter X
895913101011001Y&#89;Uppercase letter Y
905A13201011010Z&#90;Uppercase letter Z
915B13301011011[&#91;Left square bracket
925C13401011100\&#92;Backslash
935D13501011101]&#93;Right square bracket
945E13601011110^&#94;Caret
955F13701011111_&#95;Underscore
966014001100000`&#96;Grave accent
976114101100001a&#97;Lowercase letter a
986214201100010b&#98;Lowercase letter b
996314301100011c&#99;Lowercase letter c
1006414401100100d&#100;Lowercase letter d
1016514501100101e&#101;Lowercase letter e
1026614601100110f&#102;Lowercase letter f
1036714701100111g&#103;Lowercase letter g
1046815001101000h&#104;Lowercase letter h
1056915101101001i&#105;Lowercase letter i
1066A15201101010j&#106;Lowercase letter j
1076B15301101011k&#107;Lowercase letter k
1086C15401101100l&#108;Lowercase letter l
1096D15501101101m&#109;Lowercase letter m
1106E15601101110n&#110;Lowercase letter n
1116F15701101111o&#111;Lowercase letter o
1127016001110000p&#112;Lowercase letter p
1137116101110001q&#113;Lowercase letter q
1147216201110010r&#114;Lowercase letter r
1157316301110011s&#115;Lowercase letter s
1167416401110100t&#116;Lowercase letter t
1177516501110101u&#117;Lowercase letter u
1187616601110110v&#118;Lowercase letter v
1197716701110111w&#119;Lowercase letter w
1207817001111000x&#120;Lowercase letter x
1217917101111001y&#121;Lowercase letter y
1227A17201111010z&#122;Lowercase letter z
1237B17301111011{&#123;Left curly bracket
1247C17401111100|&#124;Vertical bar
1257D17501111101}&#125;Right curly bracket
1267E17601111110~&#126;Tilde
1277F17701111111DEL—Delete
1288020010000000€&#8364;Euro sign
1298120110000001——Not used in Windows-1252
1308220210000010‚&#8218;Single low-9 quotation mark
1318320310000011ƒ&#402;Latin small letter f with hook
1328420410000100„&#8222;Double low-9 quotation mark
1338520510000101…&#8230;Horizontal ellipsis
1348620610000110†&#8224;Dagger
1358720710000111‡&#8225;Double dagger
1368821010001000ˆ&#710;Modifier letter circumflex accent
1378921110001001‰&#8240;Per mille sign
1388A21210001010Š&#352;Latin capital letter S with caron
1398B21310001011‹&#8249;Single left-pointing angle quotation mark
1408C21410001100Œ&#338;Latin capital ligature OE
1418D21510001101——Not used in Windows-1252
1428E21610001110Ž&#381;Latin capital letter Z with caron
1438F21710001111——Not used in Windows-1252
1449022010010000——Not used in Windows-1252
1459122110010001‘&#8216;Left single quotation mark
1469222210010010’&#8217;Right single quotation mark
1479322310010011“&#8220;Left double quotation mark
1489422410010100”&#8221;Right double quotation mark
1499522510010101•&#8226;Bullet
1509622610010110–&#8211;En dash
1519722710010111—&#8212;Em dash
1529823010011000˜&#732;Small tilde
1539923110011001™&#8482;Trade mark sign
1549A23210011010š&#353;Latin small letter s with caron
1559B23310011011›&#8250;Single right-pointing angle quotation mark
1569C23410011100œ&#339;Latin small ligature oe
1579D23510011101——Not used in Windows-1252
1589E23610011110ž&#382;Latin small letter z with caron
1599F23710011111Ÿ&#376;Latin capital letter Y with diaeresis
160A024010100000NBSP&#160;No-break space
161A124110100001¡&#161;Inverted exclamation mark
162A224210100010¢&#162;Cent sign
163A324310100011£&#163;Pound sign
164A424410100100¤&#164;Currency sign
165A524510100101¥&#165;Yen sign
166A624610100110¦&#166;Broken bar
167A724710100111§&#167;Section sign
168A825010101000¨&#168;Diaeresis
169A925110101001©&#169;Copyright sign
170AA25210101010ª&#170;Feminine ordinal indicator
171AB25310101011«&#171;Left-pointing double angle quotation mark
172AC25410101100¬&#172;Not sign
173AD25510101101SHY&#173;Soft hyphen
174AE25610101110®&#174;Registered sign
175AF25710101111¯&#175;Macron
176B026010110000°&#176;Degree sign
177B126110110001±&#177;Plus-minus sign
178B226210110010²&#178;Superscript two
179B326310110011³&#179;Superscript three
180B426410110100´&#180;Acute accent
181B526510110101µ&#181;Micro sign
182B626610110110&#182;Pilcrow sign
183B726710110111·&#183;Middle dot
184B827010111000¸&#184;Cedilla
185B927110111001¹&#185;Superscript one
186BA27210111010º&#186;Masculine ordinal indicator
187BB27310111011»&#187;Right-pointing double angle quotation mark
188BC27410111100¼&#188;Vulgar fraction one quarter
189BD27510111101½&#189;Vulgar fraction one half
190BE27610111110¾&#190;Vulgar fraction three quarters
191BF27710111111¿&#191;Inverted question mark
192C030011000000À&#192;Latin capital letter A with grave
193C130111000001Á&#193;Latin capital letter A with acute
194C230211000010Â&#194;Latin capital letter A with circumflex
195C330311000011Ã&#195;Latin capital letter A with tilde
196C430411000100Ä&#196;Latin capital letter A with diaeresis
197C530511000101Å&#197;Latin capital letter A with ring above
198C630611000110Æ&#198;Latin capital letter AE
199C730711000111Ç&#199;Latin capital letter C with cedilla
200C831011001000È&#200;Latin capital letter E with grave
201C931111001001É&#201;Latin capital letter E with acute
202CA31211001010Ê&#202;Latin capital letter E with circumflex
203CB31311001011Ë&#203;Latin capital letter E with diaeresis
204CC31411001100Ì&#204;Latin capital letter I with grave
205CD31511001101Í&#205;Latin capital letter I with acute
206CE31611001110Î&#206;Latin capital letter I with circumflex
207CF31711001111Ï&#207;Latin capital letter I with diaeresis
208D032011010000Ð&#208;Latin capital letter Eth
209D132111010001Ñ&#209;Latin capital letter N with tilde
210D232211010010Ò&#210;Latin capital letter O with grave
211D332311010011Ó&#211;Latin capital letter O with acute
212D432411010100Ô&#212;Latin capital letter O with circumflex
213D532511010101Õ&#213;Latin capital letter O with tilde
214D632611010110Ö&#214;Latin capital letter O with diaeresis
215D732711010111×&#215;Multiplication sign
216D833011011000Ø&#216;Latin capital letter O with stroke
217D933111011001Ù&#217;Latin capital letter U with grave
218DA33211011010Ú&#218;Latin capital letter U with acute
219DB33311011011Û&#219;Latin capital letter U with circumflex
220DC33411011100Ü&#220;Latin capital letter U with diaeresis
221DD33511011101Ý&#221;Latin capital letter Y with acute
222DE33611011110Þ&#222;Latin capital letter Thorn
223DF33711011111ß&#223;Latin small letter sharp s
224E034011100000à&#224;Latin small letter a with grave
225E134111100001á&#225;Latin small letter a with acute
226E234211100010â&#226;Latin small letter a with circumflex
227E334311100011ã&#227;Latin small letter a with tilde
228E434411100100ä&#228;Latin small letter a with diaeresis
229E534511100101å&#229;Latin small letter a with ring above
230E634611100110æ&#230;Latin small letter ae
231E734711100111ç&#231;Latin small letter c with cedilla
232E835011101000è&#232;Latin small letter e with grave
233E935111101001é&#233;Latin small letter e with acute
234EA35211101010ê&#234;Latin small letter e with circumflex
235EB35311101011ë&#235;Latin small letter e with diaeresis
236EC35411101100ì&#236;Latin small letter i with grave
237ED35511101101í&#237;Latin small letter i with acute
238EE35611101110î&#238;Latin small letter i with circumflex
239EF35711101111ï&#239;Latin small letter i with diaeresis
240F036011110000ð&#240;Latin small letter eth
241F136111110001ñ&#241;Latin small letter n with tilde
242F236211110010ò&#242;Latin small letter o with grave
243F336311110011ó&#243;Latin small letter o with acute
244F436411110100ô&#244;Latin small letter o with circumflex
245F536511110101õ&#245;Latin small letter o with tilde
246F636611110110ö&#246;Latin small letter o with diaeresis
247F736711110111÷&#247;Division sign
248F837011111000ø&#248;Latin small letter o with stroke
249F937111111001ù&#249;Latin small letter u with grave
250FA37211111010ú&#250;Latin small letter u with acute
251FB37311111011û&#251;Latin small letter u with circumflex
252FC37411111100ü&#252;Latin small letter u with diaeresis
253FD37511111101ý&#253;Latin small letter y with acute
254FE37611111110þ&#254;Latin small letter thorn
255FF37711111111ÿ&#255;Latin small letter y with diaeresis
Guide

How to read the ASCII table

  1. Find the character in the Char column, or type it into the search box. You can also search by code, like 65, 0x41 or 01000001, or by name.
  2. Read across the row. Decimal, hex, octal and binary are four ways of writing the same code: A is 65, 41, 101 and 01000001.
  3. Use the form you need: binary for the bits, hex for code and byte dumps, and the HTML code, like &#65;, for web pages.

Worked example

Looking up the letter A in the ASCII table:

ColumnValue
Decimal65
Hex41
Octal101
Binary01000001
HTML&#65;

A = 65 = 0x41 = 0b01000001

  • Codes 0 to 31 and 127 are control characters. They don't print anything, so the table shows their short names, like LF for a new line.
  • Upper and lowercase letters are exactly 32 apart: A is 65 and a is 97.
  • Codes 128 to 255 are extended ASCII, which varies between systems. This table uses Windows-1252.
Learn

How the ASCII table is organized

The four blocks of 32, control codes, extended ASCII and how ASCII fits into Unicode.

Every letter, digit and symbol in plain English text has a numeric code, and an ASCII table lists all 128 of them. The table above shows every code in decimal, hex, octal and binary, with a name for each character, and it adds the extended codes 128 to 255 as well. Search for any character, code or name to jump straight to it. Here's how the ASCII table is organized, what the control characters do, and how ASCII relates to extended ASCII and Unicode.

What ASCII is

ASCII, the American Standard Code for Information Interchange, was published in 1963 so that different computers and teleprinters could exchange text. It assigns a number from 0 to 127 to each of 128 characters: 33 control codes and 95 printable characters, which are the space, the digits, the uppercase and lowercase English letters, and 32 punctuation marks and symbols. Because 128 is 2⁷, every ASCII code fits in 7 bits. Computers store each one in an 8-bit byte with a leading 0, which is why the binary column always starts with 0 for codes up to 127.

How the ASCII table is organized

ASCII is easiest to understand in four blocks of 32 codes. The first three bits of the binary code tell you which block a character belongs to:

CodesFirst bitsCharacters
0–31000Control characters such as tab, line feed and escape
32–63001Space, punctuation, symbols and the digits 0 to 9
64–95010@, the uppercase letters A to Z, and [ \ ] ^ _
96–127011`, the lowercase letters a to z, { | } ~ and DEL

This layout was chosen on purpose. Within each letter block, the last five bits give the position in the alphabet, so A ends in 00001 and Z in 11010, which is 26. The digits 0 to 9 are codes 48 to 57, so subtracting 48 from a digit's code gives its value, and the last four bits of each digit are its value in binary.

Control characters

The 33 control codes were designed to steer teleprinters: ring a bell, move the print head back, or feed a new line of paper. Most are rarely used now, but a few are everywhere. Code 9 is the tab (HT), 10 is the line feed (LF) that ends a line on Linux and macOS, and 13 is the carriage return (CR) that Windows puts before each line feed. Code 27 (ESC) starts the escape sequences that color text in a terminal, 0 (NUL) marks the end of a string in C, and 127 (DEL) originally meant "ignore this character". The table shows the standard short name and meaning of every control code.

Letters, case and a single bit

Uppercase A is 65 and lowercase a is 97, a difference of exactly 32. In binary that's a single bit: 01000001 versus 01100001. The same holds for every letter, so programs can change case by flipping one bit, and sorting by code puts all uppercase letters before all lowercase ones. That's why a plain code-order sort lists "Zebra" before "apple".

Extended ASCII (codes 128 to 255)

ASCII itself stops at 127. When 8-bit bytes became standard, the spare codes 128 to 255 were filled with accented letters, symbols and line-drawing characters, but different systems filled them differently. The table above uses Windows-1252, the most common choice in Western software and the encoding many old web pages use. Its codes 160 to 255 match ISO-8859-1 (Latin-1), so é is 233 in both, but 128 to 159 differ: in Windows-1252, 128 is the euro sign €, while in Latin-1 those codes are control characters. The original IBM PC code page, CP437, used the same range for box-drawing characters instead. "Extended ASCII" doesn't mean one fixed table, so always check which code page your data uses.

ASCII and Unicode

Unicode covers every writing system, and its first 128 code points are exactly the ASCII table. UTF-8, the encoding used by almost every website, stores those characters as the same single bytes, so plain ASCII text is already valid UTF-8. Characters beyond ASCII take 2 to 4 bytes in UTF-8, though. é is the single byte 233 in Windows-1252 but the two bytes C3 A9 in UTF-8, which is why text decoded with the wrong encoding shows up as é.

Getting around the table

  • Use the Control, Printable and Extended filters to narrow the table, and search to find a single character.
  • HTML accepts numeric character codes in decimal or hex, so &#65; and &#x41; both display A.
  • To convert whole words, use the ASCII to binary converter or the binary to ASCII converter. For just the letters, see the binary alphabet.

Bookmark this page as a reference. Every ASCII and Windows-1252 code is in one table, and the search finds any character by its code, its name or the character itself.

FAQ

Frequently asked questions

Quick answers about the ascii table and how it works.

What is the ASCII table?

It's the list of the 128 characters defined by ASCII, each with a code from 0 to 127. The codes cover the English letters, the digits, punctuation, the space and 33 control characters. This table shows each code in decimal, hex, octal and binary.

How many characters are in ASCII?

128: 95 printable characters (codes 32 to 126) and 33 control characters (codes 0 to 31 and 127). Codes 128 to 255 aren't part of ASCII itself. They belong to extended character sets such as Windows-1252.

What is the ASCII code for A?

Uppercase A is 65, which is 41 in hex and 01000001 in binary. Lowercase a is 97, the digit 0 is 48 and a space is 32.

What is extended ASCII?

It's a general name for 8-bit character sets that use codes 128 to 255 for extra characters. There isn't one standard. Windows-1252, shown in this table, puts the euro sign at 128, ISO-8859-1 uses 128 to 159 for control codes, and the old IBM PC set CP437 uses that range for box-drawing characters.

What's the difference between ASCII and Unicode?

ASCII has 128 characters. Unicode has room for over a million and covers every writing system, and its first 128 code points are the same as ASCII. In UTF-8, the most common Unicode encoding, ASCII characters keep their single-byte codes, so ASCII text is also valid UTF-8.

How do I type a character from its ASCII code?

On Windows, hold Alt and type the code on the numeric keypad: Alt + 65 types A. For extended characters, start with a 0, so Alt + 0128 types € on systems set to a Western language. In HTML, write the code as &#65;.

Still have a question?Contact us