⮝ Back to top ⮝

ASCII Table: Characters and Codes

Every ASCII code in decimal, hex, octal and binary, with its HTML code and name, plus the extended codes 128 to 255. Click any cell to copy it.

Copied
➤
×
⠿▚≡

Type a character, a code or a name. Click any cell to copy it.

Control characters: codes 0 to 31 and 127

DecHexOctBinAbbrHTMLUnicodeName
00000000000000noneU+0000Null \0
10100100000001U+0001Start of heading
20200200000010U+0002Start of text
30300300000011U+0003End of text
40400400000100U+0004End of transmission
50500500000101U+0005Enquiry
60600600000110U+0006Acknowledge
70700700000111U+0007Bell \a
80801000001000U+0008Backspace \b
90901100001001	 	U+0009Horizontal tab \t
100A01200001010
 
U+000ALine feed, new line \n
110B01300001011U+000BVertical tab \v
120C01400001100U+000CForm feed, new page \f
130D01500001101
U+000DCarriage return \r
140E01600001110U+000EShift out
150F01700001111U+000FShift in
161002000010000U+0010Data link escape
171102100010001U+0011Device control 1
181202200010010U+0012Device control 2
191302300010011U+0013Device control 3
201402400010100U+0014Device control 4
211502500010101U+0015Negative acknowledge
221602600010110U+0016Synchronous idle
231702700010111U+0017End of transmission block
241803000011000U+0018Cancel
251903100011001U+0019End of medium
261A03200011010U+001ASubstitute
271B03300011011U+001BEscape
281C03400011100U+001CFile separator
291D03500011101U+001DGroup separator
301E03600011110U+001ERecord separator
311F03700011111U+001FUnit separator
1277F17701111111U+007FDelete

Control codes tell a printer or a terminal what to do, like ring a bell or start a new line. They have no picture, so the table shows their short name instead. The tab (9), the line feed (10) and the carriage return (13) are still in daily use. Windows ends a line of text with 13 and 10, while Linux and macOS use only 10. The signs after some names, like \n, show how you write the code in C and Python.

Code 127, DEL, is a control code too. On old paper tape it had all seven holes punched, so it could cover up a wrong character. In a terminal, Ctrl and a key send a control code: Ctrl+C sends 3 and Ctrl+[ sends 27, the ESC code.

Printable ASCII characters: codes 32 to 126

DecHexOctBinCharHTMLUnicodeName
322004000100000 U+0020Space
332104100100001! !U+0021Exclamation mark
342204200100010" "U+0022Quotation mark (double quote)
352304300100011# #U+0023Number sign (hash)
362404400100100$ $U+0024Dollar sign
372504500100101% %U+0025Percent sign
382604600100110& &U+0026Ampersand
392704700100111' 'U+0027Apostrophe (single quote)
402805000101000( (U+0028Left parenthesis
412905100101001) )U+0029Right parenthesis
422A05200101010* *U+002AAsterisk (star)
432B05300101011+ +U+002BPlus sign
442C05400101100, ,U+002CComma
452D05500101101-U+002DHyphen-minus
462E05600101110. .U+002EFull stop (period, dot)
472F05700101111/ /U+002FSolidus (slash)
4830060001100000U+0030Digit zero
4931061001100011U+0031Digit one
5032062001100102U+0032Digit two
5133063001100113U+0033Digit three
5234064001101004U+0034Digit four
5335065001101015U+0035Digit five
5436066001101106U+0036Digit six
5537067001101117U+0037Digit seven
5638070001110008U+0038Digit eight
5739071001110019U+0039Digit nine
583A07200111010: :U+003AColon
593B07300111011&#59; ;U+003BSemicolon
603C07400111100< <U+003CLess-than sign
613D07500111101= =U+003DEquals sign
623E07600111110> >U+003EGreater-than sign
633F07700111111? ?U+003FQuestion mark
644010001000000@ @U+0040Commercial at (at sign)
654110101000001AU+0041Latin capital letter A
664210201000010BU+0042Latin capital letter B
674310301000011CU+0043Latin capital letter C
684410401000100DU+0044Latin capital letter D
694510501000101EU+0045Latin capital letter E
704610601000110FU+0046Latin capital letter F
714710701000111GU+0047Latin capital letter G
724811001001000HU+0048Latin capital letter H
734911101001001IU+0049Latin capital letter I
744A11201001010JU+004ALatin capital letter J
754B11301001011KU+004BLatin capital letter K
764C11401001100LU+004CLatin capital letter L
774D11501001101MU+004DLatin capital letter M
784E11601001110NU+004ELatin capital letter N
794F11701001111OU+004FLatin capital letter O
805012001010000PU+0050Latin capital letter P
815112101010001QU+0051Latin capital letter Q
825212201010010RU+0052Latin capital letter R
835312301010011SU+0053Latin capital letter S
845412401010100TU+0054Latin capital letter T
855512501010101UU+0055Latin capital letter U
865612601010110VU+0056Latin capital letter V
875712701010111WU+0057Latin capital letter W
885813001011000XU+0058Latin capital letter X
895913101011001YU+0059Latin capital letter Y
905A13201011010ZU+005ALatin capital letter Z
915B13301011011[ [U+005BLeft square bracket
925C13401011100\ \U+005CReverse solidus (backslash)
935D13501011101] ]U+005DRight square bracket
945E13601011110^ ^U+005ECircumflex accent (caret)
955F13701011111_ _U+005FLow line (underscore)
966014001100000` `U+0060Grave accent (backtick)
976114101100001aU+0061Latin small letter a
986214201100010bU+0062Latin small letter b
996314301100011cU+0063Latin small letter c
1006414401100100dU+0064Latin small letter d
1016514501100101eU+0065Latin small letter e
1026614601100110fU+0066Latin small letter f
1036714701100111gU+0067Latin small letter g
1046815001101000hU+0068Latin small letter h
1056915101101001iU+0069Latin small letter i
1066A15201101010jU+006ALatin small letter j
1076B15301101011kU+006BLatin small letter k
1086C15401101100lU+006CLatin small letter l
1096D15501101101mU+006DLatin small letter m
1106E15601101110nU+006ELatin small letter n
1116F15701101111oU+006FLatin small letter o
1127016001110000pU+0070Latin small letter p
1137116101110001qU+0071Latin small letter q
1147216201110010rU+0072Latin small letter r
1157316301110011sU+0073Latin small letter s
1167416401110100tU+0074Latin small letter t
1177516501110101uU+0075Latin small letter u
1187616601110110vU+0076Latin small letter v
1197716701110111wU+0077Latin small letter w
1207817001111000xU+0078Latin small letter x
1217917101111001yU+0079Latin small letter y
1227A17201111010zU+007ALatin small letter z
1237B17301111011{ {U+007BLeft curly bracket (brace)
1247C17401111100| |U+007CVertical line (pipe)
1257D17501111101} }U+007DRight curly bracket (brace)
1267E17601111110~U+007ETilde

These 95 characters are the space, 32 signs, the digits 0 to 9 and the letters A to Z and a to z. You can type all of them on a US keyboard. A small letter is always 32 more than its capital, so A is 65 and a is 97. The digits start at 48, so the code of 7 is 48 + 7 = 55.

Extended ASCII: Windows-1252, codes 128 to 255

DecHexOctBinCharHTMLUnicodeName
1288020010000000€ €U+20ACEuro sign
1298120110000001unusednonenoneNot used in Windows-1252. Browsers read it as the invisible control code U+0081.
1308220210000010‚ ‚U+201ASingle low-9 quotation mark
1318320310000011ƒ ƒU+0192Latin small letter f with hook
1328420410000100„ „U+201EDouble low-9 quotation mark
1338520510000101… …U+2026Horizontal ellipsis (three dots)
1348620610000110† †U+2020Dagger
1358720710000111‡ ‡U+2021Double dagger
1368821010001000ˆ ˆU+02C6Modifier letter circumflex accent
1378921110001001‰ ‰U+2030Per mille sign
1388A21210001010Š ŠU+0160Latin capital letter S with caron
1398B21310001011‹ ‹U+2039Single left-pointing angle quotation mark
1408C21410001100Œ ŒU+0152Latin capital ligature OE
1418D21510001101unusednonenoneNot used in Windows-1252. Browsers read it as the invisible control code U+008D.
1428E21610001110Ž ŽU+017DLatin capital letter Z with caron
1438F21710001111unusednonenoneNot used in Windows-1252. Browsers read it as the invisible control code U+008F.
1449022010010000unusednonenoneNot used in Windows-1252. Browsers read it as the invisible control code U+0090.
1459122110010001‘ ‘U+2018Left single quotation mark
1469222210010010’ ’U+2019Right single quotation mark
1479322310010011“ “U+201CLeft double quotation mark
1489422410010100” ”U+201DRight double quotation mark
1499522510010101• •U+2022Bullet
1509622610010110– –U+2013En dash
1519722710010111— —U+2014Em dash
1529823010011000˜ ˜U+02DCSmall tilde
1539923110011001™ ™U+2122Trade mark sign (trademark)
1549A23210011010š šU+0161Latin small letter s with caron
1559B23310011011› ›U+203ASingle right-pointing angle quotation mark
1569C23410011100œ œU+0153Latin small ligature oe
1579D23510011101unusednonenoneNot used in Windows-1252. Browsers read it as the invisible control code U+009D.
1589E23610011110ž žU+017ELatin small letter z with caron
1599F23710011111Ÿ ŸU+0178Latin capital letter Y with diaeresis
160A024010100000   U+00A0No-break space
161A124110100001¡ ¡U+00A1Inverted exclamation mark
162A224210100010¢ ¢U+00A2Cent sign
163A324310100011£ £U+00A3Pound sign
164A424410100100¤ ¤U+00A4Currency sign
165A524510100101¥ ¥U+00A5Yen sign
166A624610100110¦ ¦U+00A6Broken bar
167A724710100111§ §U+00A7Section sign
168A825010101000¨ ¨U+00A8Diaeresis (umlaut)
169A925110101001© ©U+00A9Copyright sign
170AA25210101010ª ªU+00AAFeminine ordinal indicator
171AB25310101011« «U+00ABLeft-pointing double angle quotation mark (guillemet)
172AC25410101100¬ ¬U+00ACNot sign
173AD25510101101­ ­U+00ADSoft hyphen
174AE25610101110® ®U+00AERegistered sign
175AF25710101111¯ ¯U+00AFMacron
176B026010110000° °U+00B0Degree sign
177B126110110001± ±U+00B1Plus-minus sign
178B226210110010² ²U+00B2Superscript two
179B326310110011³ ³U+00B3Superscript three
180B426410110100´ ´U+00B4Acute accent
181B526510110101µ µU+00B5Micro sign
182B626610110110¶ ¶U+00B6Pilcrow sign (paragraph sign)
183B726710110111· ·U+00B7Middle dot
184B827010111000¸ ¸U+00B8Cedilla
185B927110111001¹ ¹U+00B9Superscript one
186BA27210111010º ºU+00BAMasculine ordinal indicator
187BB27310111011» »U+00BBRight-pointing double angle quotation mark (guillemet)
188BC27410111100¼ ¼U+00BCVulgar fraction one quarter
189BD27510111101½ ½U+00BDVulgar fraction one half
190BE27610111110¾ ¾U+00BEVulgar fraction three quarters
191BF27710111111¿ ¿U+00BFInverted question mark
192C030011000000À ÀU+00C0Latin capital letter A with grave
193C130111000001Á ÁU+00C1Latin capital letter A with acute
194C230211000010Â ÂU+00C2Latin capital letter A with circumflex
195C330311000011Ã ÃU+00C3Latin capital letter A with tilde
196C430411000100Ä ÄU+00C4Latin capital letter A with diaeresis
197C530511000101Å ÅU+00C5Latin capital letter A with ring above
198C630611000110Æ ÆU+00C6Latin capital letter AE
199C730711000111Ç ÇU+00C7Latin capital letter C with cedilla
200C831011001000È ÈU+00C8Latin capital letter E with grave
201C931111001001É ÉU+00C9Latin capital letter E with acute
202CA31211001010Ê ÊU+00CALatin capital letter E with circumflex
203CB31311001011Ë ËU+00CBLatin capital letter E with diaeresis
204CC31411001100Ì ÌU+00CCLatin capital letter I with grave
205CD31511001101Í ÍU+00CDLatin capital letter I with acute
206CE31611001110Î ÎU+00CELatin capital letter I with circumflex
207CF31711001111Ï ÏU+00CFLatin capital letter I with diaeresis
208D032011010000Ð ÐU+00D0Latin capital letter Eth
209D132111010001Ñ ÑU+00D1Latin capital letter N with tilde
210D232211010010Ò ÒU+00D2Latin capital letter O with grave
211D332311010011Ó ÓU+00D3Latin capital letter O with acute
212D432411010100Ô ÔU+00D4Latin capital letter O with circumflex
213D532511010101Õ ÕU+00D5Latin capital letter O with tilde
214D632611010110Ö ÖU+00D6Latin capital letter O with diaeresis
215D732711010111× ×U+00D7Multiplication sign (times)
216D833011011000Ø ØU+00D8Latin capital letter O with stroke
217D933111011001Ù ÙU+00D9Latin capital letter U with grave
218DA33211011010Ú ÚU+00DALatin capital letter U with acute
219DB33311011011Û ÛU+00DBLatin capital letter U with circumflex
220DC33411011100Ü ÜU+00DCLatin capital letter U with diaeresis
221DD33511011101Ý ÝU+00DDLatin capital letter Y with acute
222DE33611011110Þ ÞU+00DELatin capital letter Thorn
223DF33711011111ß ßU+00DFLatin small letter sharp s (eszett)
224E034011100000à àU+00E0Latin small letter a with grave
225E134111100001á áU+00E1Latin small letter a with acute
226E234211100010â âU+00E2Latin small letter a with circumflex
227E334311100011ã ãU+00E3Latin small letter a with tilde
228E434411100100ä äU+00E4Latin small letter a with diaeresis
229E534511100101å åU+00E5Latin small letter a with ring above
230E634611100110æ æU+00E6Latin small letter ae
231E734711100111ç çU+00E7Latin small letter c with cedilla
232E835011101000è èU+00E8Latin small letter e with grave
233E935111101001é éU+00E9Latin small letter e with acute
234EA35211101010ê êU+00EALatin small letter e with circumflex
235EB35311101011ë ëU+00EBLatin small letter e with diaeresis
236EC35411101100ì ìU+00ECLatin small letter i with grave
237ED35511101101í íU+00EDLatin small letter i with acute
238EE35611101110î îU+00EELatin small letter i with circumflex
239EF35711101111ï ïU+00EFLatin small letter i with diaeresis
240F036011110000ð ðU+00F0Latin small letter eth
241F136111110001ñ ñU+00F1Latin small letter n with tilde
242F236211110010ò òU+00F2Latin small letter o with grave
243F336311110011ó óU+00F3Latin small letter o with acute
244F436411110100ô ôU+00F4Latin small letter o with circumflex
245F536511110101õ õU+00F5Latin small letter o with tilde
246F636611110110ö öU+00F6Latin small letter o with diaeresis
247F736711110111÷ ÷U+00F7Division sign
248F837011111000ø øU+00F8Latin small letter o with stroke
249F937111111001ù ùU+00F9Latin small letter u with grave
250FA37211111010ú úU+00FALatin small letter u with acute
251FB37311111011û ûU+00FBLatin small letter u with circumflex
252FC37411111100ü üU+00FCLatin small letter u with diaeresis
253FD37511111101ý ýU+00FDLatin small letter y with acute
254FE37611111110þ þU+00FELatin small letter thorn
255FF37711111111ÿ ÿU+00FFLatin small letter y with diaeresis

Codes 128 to 255 are not part of ASCII. This table shows Windows-1252, the set that web browsers use for old pages marked "ASCII" or "ISO-8859-1". The Unicode column gives the real code of each character. For codes 128 to 159 the two numbers are not the same: € is 128 in Windows-1252 but U+20AC in Unicode, so its HTML code is €.

Five codes have no character in Windows-1252: 129, 141, 143, 144 and 157. In ISO-8859-1, also called Latin-1, all the codes from 128 to 159 are control codes. Codes 160 to 255 are the same in Windows-1252, ISO-8859-1 and Unicode (U+00A0 to U+00FF).

More characters by category

ASCII Table: Decimal, Hex, Octal, Binary and HTML Codes

ASCII table with codes 0 to 127 and extended codes 128 to 255 in decimal, hex, octal and binary, with HTML codes and names. Click any cell to copy.

What is ASCII?

Drawing of an old computer with a pixel heart

ASCII is a code that gives each letter, digit and sign a number from 0 to 127. For example, A is 65 and a is 97. Computers store these numbers, not the letters. ASCII was first published in 1963. Unicode, the modern standard, uses the same numbers for its first 128 characters.

The 128 ASCII codes form two groups:

How to use this ASCII table 🔍

Each row is one code. Click any cell to copy it. A click on a character also adds it to the bar at the bottom of the screen, so you can collect a few and copy them together.

ColumnExampleWhat it is
Dec65The code as a normal number
Hex41The same number in base 16 (hexadecimal)
Oct101The same number in base 8 (octal)
Bin01000001The 8 bits of the byte (binary)
CharAThe character itself
HTMLAThe code for a web page. Some characters also have a name, like & for &.
UnicodeU+0041The code in Unicode, the system that phones and computers use today
NameLatin capital letter AThe official name, with a common name for some signs

To find a code, type in the filter box above the tables. A character like é, a number like 233 or a word like "euro" all work. A plain number is checked in every column, so 41 finds ")", "A" and "!": that is 41 in decimal, hex and octal. Start with 0x for hex only (0x41), 0b for binary (0b1000001) or U+ for Unicode (U+20AC).

What is extended ASCII?

ASCII uses 7 bits, so it stops at 127. A computer byte has 8 bits and can hold numbers up to 255. Many companies used the extra codes 128 to 255 for their own characters. That is why "extended ASCII" is not one standard. The same code can mean different things:

CodeCode page 437 (old DOS computers)Windows-1252ISO 8859-1 (Latin-1)
128Ç€a control code
153Ö™a control code
176░°°
233Θéé

The table on this page uses Windows-1252, because web browsers do too. Codes 160 to 255 are the same in Windows-1252, ISO 8859-1 and Unicode. Codes 128 to 159 are not: Windows-1252 has 27 symbols there, like € and ™, and ISO 8859-1 has control codes.

Today most text is saved as UTF-8. It keeps the codes 0 to 127 the same as ASCII and uses two to four bytes for every other character. So a file with only ASCII characters is also a correct UTF-8 file.

Typing extended characters on Windows ⌨️

On a Windows computer, hold Alt and type a code on the number pad. A zero at the start picks the set. With English settings, Alt+0233 types é from Windows-1252, and Alt+130 types é from code page 437.

More character tools

Need symbols that are not in ASCII? Search all Unicode characters by name, or browse the symbols page. For pictures made of characters, try the ASCII art tools. To write in bold or cursive letters, use the fancy text generator.

Frequently asked questions

How many ASCII characters are there?

ASCII has 128 characters, with the codes 0 to 127. Of these, 95 are printable and 33 are control characters.

What is the ASCII code for A?

Capital A is 65, and small a is 97. Each small letter is always 32 higher than its capital letter.

What is the ASCII code for a space?

A space is 32, or 20 in hex. The no-break space (  in HTML) is not in ASCII. It is 160 in Windows-1252 and U+00A0 in Unicode.

What is the ASCII code for Enter?

A new line is the line feed, code 10, written \n in code. Windows ends each line with two codes, the carriage return (13) and the line feed (10). Linux and macOS use only the line feed.

What is the difference between ASCII and Unicode?

ASCII has 128 characters. Unicode has about 155,000 and covers almost every writing system, plus emojis. The first 128 Unicode characters are the same as ASCII.

Is extended ASCII a standard?

No. Extended ASCII is a name for many 8-bit sets, such as code page 437, Windows-1252 and ISO 8859-1. They share codes 0 to 127 but differ above that.

Is the euro sign in ASCII?

No. ASCII stops at 127. The € sign is 128 in Windows-1252 and U+20AC in Unicode, so in HTML you write € or €.

How do I find a character by its code?

Type the code into the filter box above the tables, like 169 or 0xA9. To search all Unicode characters by name or code, use the box at the top of the page.