Press any key on your keyboard to see its ASCII code, or click a row of the table. The converter turns text into codes and codes back into text.

Press a key on your keyboard (or tap a row of the table) to see its ASCII code.

Codes in

ASCII table (0–127)

DecHexOctBinaryCharHTMLDescription
00000000000000NULNull^@ · \0
10100100000001SOHStart of Heading^A · Alt + 1 → ☺
20200200000010STXStart of Text^B · Alt + 2 → ☻
30300300000011ETXEnd of Text^C · Alt + 3 → ♥
40400400000100EOTEnd of Transmission^D · Alt + 4 → ♦
50500500000101ENQEnquiry^E · Alt + 5 → ♣
60600600000110ACKAcknowledge^F · Alt + 6 → ♠
70700700000111BELBell^G · \a · Alt + 7 → •
80801000001000BSBackspace^H · \b · Alt + 8 → ◘
90901100001001HTHorizontal Tab^I · \t · Alt + 9 → ○
100A01200001010LFLine Feed^J · \n · Alt + 10 → ◙
110B01300001011VTVertical Tab^K · \v · Alt + 11 → ♂
120C01400001100FFForm Feed^L · \f · Alt + 12 → ♀
130D01500001101CRCarriage Return^M · \r · Alt + 13 → ♪
140E01600001110SOShift Out^N · Alt + 14 → ♫
150F01700001111SIShift In^O · Alt + 15 → ☼
161002000010000DLEData Link Escape^P · Alt + 16 → ►
171102100010001DC1Device Control 1 (XON)^Q · Alt + 17 → ◄
181202200010010DC2Device Control 2^R · Alt + 18 → ↕
191302300010011DC3Device Control 3 (XOFF)^S · Alt + 19 → ‼
201402400010100DC4Device Control 4^T · Alt + 20 → ¶
211502500010101NAKNegative Acknowledge^U · Alt + 21 → §
221602600010110SYNSynchronous Idle^V · Alt + 22 → ▬
231702700010111ETBEnd of Transmission Block^W · Alt + 23 → ↨
241803000011000CANCancel^X · Alt + 24 → ↑
251903100011001EMEnd of Medium^Y · Alt + 25 → ↓
261A03200011010SUBSubstitute^Z · Alt + 26 → →
271B03300011011ESCEscape^[ · \e · Alt + 27 → ←
281C03400011100FSFile Separator^\ · Alt + 28 → ∟
291D03500011101GSGroup Separator^] · Alt + 29 → ↔
301E03600011110RSRecord Separator^^ · Alt + 30 → ▲
311F03700011111USUnit Separator^_ · Alt + 31 → ▼
322004000100000SP Space
332104100100001!!Exclamation mark
342204200100010""Double quote
352304300100011##Number sign (hash)
362404400100100$$Dollar sign
372504500100101%%Percent sign
382604600100110&&Ampersand
392704700100111''Apostrophe (single quote)
402805000101000((Left parenthesis
412905100101001))Right parenthesis
422A05200101010**Asterisk
432B05300101011++Plus sign
442C05400101100,,Comma
452D05500101101--Hyphen-minus
462E05600101110..Full stop (period)
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<&lt;Less-than sign
613D07500111101=&#61;Equals sign
623E07600111110>&gt;Greater-than sign
633F07700111111?&#63;Question mark
644010001000000@&#64;At sign
654110101000001A&#65;Capital letter A
664210201000010B&#66;Capital letter B
674310301000011C&#67;Capital letter C
684410401000100D&#68;Capital letter D
694510501000101E&#69;Capital letter E
704610601000110F&#70;Capital letter F
714710701000111G&#71;Capital letter G
724811001001000H&#72;Capital letter H
734911101001001I&#73;Capital letter I
744A11201001010J&#74;Capital letter J
754B11301001011K&#75;Capital letter K
764C11401001100L&#76;Capital letter L
774D11501001101M&#77;Capital letter M
784E11601001110N&#78;Capital letter N
794F11701001111O&#79;Capital letter O
805012001010000P&#80;Capital letter P
815112101010001Q&#81;Capital letter Q
825212201010010R&#82;Capital letter R
835312301010011S&#83;Capital letter S
845412401010100T&#84;Capital letter T
855512501010101U&#85;Capital letter U
865612601010110V&#86;Capital letter V
875712701010111W&#87;Capital letter W
885813001011000X&#88;Capital letter X
895913101011001Y&#89;Capital letter Y
905A13201011010Z&#90;Capital 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 (backtick)
976114101100001a&#97;Small letter a
986214201100010b&#98;Small letter b
996314301100011c&#99;Small letter c
1006414401100100d&#100;Small letter d
1016514501100101e&#101;Small letter e
1026614601100110f&#102;Small letter f
1036714701100111g&#103;Small letter g
1046815001101000h&#104;Small letter h
1056915101101001i&#105;Small letter i
1066A15201101010j&#106;Small letter j
1076B15301101011k&#107;Small letter k
1086C15401101100l&#108;Small letter l
1096D15501101101m&#109;Small letter m
1106E15601101110n&#110;Small letter n
1116F15701101111o&#111;Small letter o
1127016001110000p&#112;Small letter p
1137116101110001q&#113;Small letter q
1147216201110010r&#114;Small letter r
1157316301110011s&#115;Small letter s
1167416401110100t&#116;Small letter t
1177516501110101u&#117;Small letter u
1187616601110110v&#118;Small letter v
1197716701110111w&#119;Small letter w
1207817001111000x&#120;Small letter x
1217917101111001y&#121;Small letter y
1227A17201111010z&#122;Small letter z
1237B17301111011{&#123;Left curly brace
1247C17401111100|&#124;Vertical bar
1257D17501111101}&#125;Right curly brace
1267E17601111110~&#126;Tilde
1277F17701111111DELDelete^? · Alt + 127 → ⌂

Extended ASCII and Alt codes (128–255)

DecHexAlt + 128…255 CP437Alt + 0128…0255 Windows-1252HTMLUnicode
12880Ç€&euro;U+20AC
12981ü–
13082é‚&sbquo;U+201A
13183âƒ&fnof;U+0192
13284ä„&bdquo;U+201E
13385à…&hellip;U+2026
13486å†&dagger;U+2020
13587ç‡&Dagger;U+2021
13688êˆ&circ;U+02C6
13789ë‰&permil;U+2030
1388AèŠ&Scaron;U+0160
1398Bï‹&lsaquo;U+2039
1408CîŒ&OElig;U+0152
1418Dì–
1428EÄŽ&#381;U+017D
1438FÅ–
14490É–
14591æ‘&lsquo;U+2018
14692Æ’&rsquo;U+2019
14793ô“&ldquo;U+201C
14894ö”&rdquo;U+201D
14995ò•&bull;U+2022
15096û–&ndash;U+2013
15197ù—&mdash;U+2014
15298ÿ˜&tilde;U+02DC
15399Ö™&trade;U+2122
1549AÜš&scaron;U+0161
1559B¢›&rsaquo;U+203A
1569C£œ&oelig;U+0153
1579D¥–
1589E₧ž&#382;U+017E
1599FƒŸ&Yuml;U+0178
160A0áNBSP&nbsp;U+00A0
161A1í¡&iexcl;U+00A1
162A2ó¢&cent;U+00A2
163A3ú£&pound;U+00A3
164A4ñ¤&curren;U+00A4
165A5Ñ¥&yen;U+00A5
166A6ª¦&brvbar;U+00A6
167A7º§&sect;U+00A7
168A8¿¨&uml;U+00A8
169A9⌐©&copy;U+00A9
170AA»&ordf;U+00AA
171AB½«&laquo;U+00AB
172AC¼¬&not;U+00AC
173AD¡SHY&shy;U+00AD
174AE«®&reg;U+00AE
175AF»¯&macr;U+00AF
176B0░°&deg;U+00B0
177B1▒±&plusmn;U+00B1
178B2▓²&sup2;U+00B2
179B3│³&sup3;U+00B3
180B4┤´&acute;U+00B4
181B5╡µ&micro;U+00B5
182B6╢&para;U+00B6
183B7╖·&middot;U+00B7
184B8╕¸&cedil;U+00B8
185B9╣¹&sup1;U+00B9
186BA║º&ordm;U+00BA
187BB╗»&raquo;U+00BB
188BC╝¼&frac14;U+00BC
189BD╜½&frac12;U+00BD
190BE╛¾&frac34;U+00BE
191BF┐¿&iquest;U+00BF
192C0└À&Agrave;U+00C0
193C1┴Á&Aacute;U+00C1
194C2┬Â&Acirc;U+00C2
195C3├Ã&Atilde;U+00C3
196C4─Ä&Auml;U+00C4
197C5ŏ&Aring;U+00C5
198C6ƒ&AElig;U+00C6
199C7ǀ&Ccedil;U+00C7
200C8╚È&Egrave;U+00C8
201C9ɐ&Eacute;U+00C9
202CA╩Ê&Ecirc;U+00CA
203CB╦Ë&Euml;U+00CB
204CC╠Ì&Igrave;U+00CC
205CD═Í&Iacute;U+00CD
206CE╬Î&Icirc;U+00CE
207CF╧Ï&Iuml;U+00CF
208D0╨Ð&ETH;U+00D0
209D1ѥ&Ntilde;U+00D1
210D2╥Ò&Ograve;U+00D2
211D3╙Ó&Oacute;U+00D3
212D4╘Ô&Ocirc;U+00D4
213D5╒Õ&Otilde;U+00D5
214D6֙&Ouml;U+00D6
215D7╫×&times;U+00D7
216D8╪Ø&Oslash;U+00D8
217D9┘Ù&Ugrave;U+00D9
218DA┌Ú&Uacute;U+00DA
219DB█Û&Ucirc;U+00DB
220DCܚ&Uuml;U+00DC
221DD▌Ý&Yacute;U+00DD
222DE▐Þ&THORN;U+00DE
223DF▀ß&szlig;U+00DF
224E0αà&agrave;U+00E0
225E1ßá&aacute;U+00E1
226E2Γâ&acirc;U+00E2
227E3πã&atilde;U+00E3
228E4Σä&auml;U+00E4
229E5σå&aring;U+00E5
230E6µæ&aelig;U+00E6
231E7τç&ccedil;U+00E7
232E8Φè&egrave;U+00E8
233E9Θé&eacute;U+00E9
234EAΩê&ecirc;U+00EA
235EBδë&euml;U+00EB
236EC∞ì&igrave;U+00EC
237EDφí&iacute;U+00ED
238EEεî&icirc;U+00EE
239EF∩ï&iuml;U+00EF
240F0≡ð&eth;U+00F0
241F1±ñ&ntilde;U+00F1
242F2≥ò&ograve;U+00F2
243F3≤ó&oacute;U+00F3
244F4⌠ô&ocirc;U+00F4
245F5⌡õ&otilde;U+00F5
246F6÷ö&ouml;U+00F6
247F7≈÷&divide;U+00F7
248F8°ø&oslash;U+00F8
249F9∙ù&ugrave;U+00F9
250FA·ú&uacute;U+00FA
251FB√û&ucirc;U+00FB
252FCⁿü&uuml;U+00FC
253FD²ý&yacute;U+00FD
254FE■þ&thorn;U+00FE
255FFNBSPÿ&yuml;U+00FF

English Keyboard Online · Keyboard Tester · Special Characters Keyboard · Word and character counter · Fancy text generator · Case converter

How to read the ASCII table

Each row gives one code in four number systems. Decimal is what Alt codes and most programming tutorials use. Hexadecimal is how codes appear in URLs (%20 is a space), in escape sequences such as \x41 and in hex editors; two hex digits cover one byte. Octal survives in Unix tools and old C code, and binary shows the seven bits ASCII was designed around.

The first 32 codes and code 127 are control characters. They were commands for teleprinters and terminals rather than symbols to print: 7 rang the bell, 8 moved back one position, 10 fed the paper one line and 13 returned the carriage to the left edge. A few are still in daily use. Windows ends lines with CR LF (13 10), Linux and macOS with LF alone, 9 is the tab and 27 starts the escape sequences that color text in a terminal. The small grey line under each control gives its caret notation (^J, the way terminals show it), its escape in C, JavaScript or Python (\n) and the symbol Alt plus that number types on Windows.

The order of the printable characters is not random. Digits start at 48, so subtracting 48 from a digit's code gives its value. Capitals start at 65 and small letters at 97: the two differ by exactly 32, a single bit, which is why converting case in ASCII is one operation. Sorting text by code puts every capital before every small letter, which explains why "Zebra" can come before "apple" in a plain sort.

Extended ASCII and Alt codes on Windows

ASCII stops at 127. The second table covers 128 to 255 in the two 8-bit sets that Windows still uses when you type Alt codes:

  • Alt + 128 to 255 (no leading zero) types the character from the old DOS code page: 437, the original IBM PC set, on US Windows, with accented letters, the box-drawing lines ║ ╔ ╗ ═, shading blocks ░ ▒ ▓ and a few Greek and math signs. UK and Western European Windows use code page 850 instead, which swaps some of the lines and Greek letters for more accented capitals such as Á and Ê, so the same code can give a different character there.
  • Alt + 0128 to 0255 (leading zero) types the character from Windows-1252: the euro sign €, curly quotes, dashes and the full set of Western European letters. From 160 to 255 these are also the Unicode characters with the same number, so the HTML column works in any page.

A character that is in neither table, such as ★ or ≠, has no Alt code in most programs. In Word you can type its Unicode number followed by Alt + X, and the site's special characters keyboard lets you click and copy it.

Converting text to ASCII codes

Type or paste text in the left box and its codes appear on the right, separated by spaces, in the format you pick. It also works the other way: paste a list of codes, for example 72 101 108 108 111, and you get the text back ("Hello"). Hex codes can be written as 41, 0x41, \x41 or &#x41;, and binary codes with or without 0b. Characters outside ASCII are given by their Unicode code point, so é shows as 233. The text stays in your browser.

Frequently Asked Questions

What is the ASCII code of A?

Capital A is 65 in decimal (41 in hex, 01000001 in binary). The capitals run from A = 65 to Z = 90 and the small letters from a = 97 to z = 122, so a small letter is always its capital plus 32. The digits 0 to 9 are 48 to 57.

How many characters are in ASCII?

128, numbered 0 to 127: 33 control characters (0–31 and 127, such as tab, line feed and escape) and 95 printable ones, from the space (32) to the tilde ~ (126). ASCII is a 7-bit code; anything numbered 128 or more belongs to another character set.

What is extended ASCII?

There is no single extended ASCII. The name is used for any 8-bit code page that keeps ASCII for 0–127 and adds 128 more characters. The two you are most likely to meet are code page 437, the original IBM PC set with box-drawing lines, and Windows-1252, the Western European set used by Windows. The second table on this page shows both side by side.

Why does Alt + 130 give é but Alt + 0130 gives ‚?

Without a leading zero, Windows reads the number in the old DOS code page (437 in the US, 850 in the UK and most of Europe), where 130 is é in both. With a leading zero, it uses the Windows code page, Windows-1252 on English and Western European systems, where 130 is a low quotation mark. For accented letters the zero form is the one to remember: é is Alt + 0233.

How do I type an Alt code?

Hold the left Alt key, type the number on the numeric keypad, then release Alt. The digits in the row above the letters do not work, and Num Lock has to be on. On a laptop without a keypad, use the Fn key overlay if it has one, or Windows' on-screen keyboard with its numeric pad turned on.

What are Alt + 1 to Alt + 31 for?

They type the small symbols code page 437 put in place of the control characters: Alt + 1 gives ☺, Alt + 3 ♥, Alt + 4 ♦, Alt + 5 ♣, Alt + 6 ♠, Alt + 16 ►, Alt + 24 ↑ and so on. Each one is listed under the control character in the table, after the arrow.

Is ASCII the same as Unicode?

The first 128 Unicode code points are exactly ASCII, and UTF-8 stores them as the same single bytes, so a plain ASCII file is also valid UTF-8. Beyond 127 they part ways: é is 233 in Unicode and Windows-1252, but 130 in code page 437, and takes two bytes (C3 A9) in UTF-8.