ASCII Table (0 to 127) and Extended ASCII Codes

Look up any code in decimal, hex, octal and binary, with its HTML entity and the Ctrl key for control characters.

Look up a code or character

Decimal, hex (0x41 or 41h), octal (\101), binary, one character, or words such as tab, newline or tilde. Single characters are case-sensitive.

Showing all 128 ASCII codes. Turn on "Show 128 to 255" to add the extended Windows-1252 codes.

ASCII codes with decimal, hex, octal, binary, character, HTML entity and name
DecHexOctBinCharHTMLName
00000000000000NULnoneNull \0, Ctrl+@
10100100000001SOHnoneStart of heading Ctrl+A
20200200000010STXnoneStart of text Ctrl+B
30300300000011ETXnoneEnd of text Ctrl+C
40400400000100EOTnoneEnd of transmission Ctrl+D
50500500000101ENQnoneEnquiry Ctrl+E
60600600000110ACKnoneAcknowledge Ctrl+F
70700700000111BELnoneBell (alert) \a, Ctrl+G
80801000001000BSnoneBackspace \b, Ctrl+H
90901100001001HT	Horizontal tab \t, Ctrl+I
100A01200001010LF
Line feed (newline) \n, Ctrl+J
110B01300001011VTnoneVertical tab \v, Ctrl+K
120C01400001100FFForm feed \f, Ctrl+L
130D01500001101CR
Carriage return \r, Ctrl+M
140E01600001110SOnoneShift out Ctrl+N
150F01700001111SInoneShift in Ctrl+O
161002000010000DLEnoneData link escape Ctrl+P
171102100010001DC1noneDevice control 1 (XON) Ctrl+Q
181202200010010DC2noneDevice control 2 Ctrl+R
191302300010011DC3noneDevice control 3 (XOFF) Ctrl+S
201402400010100DC4noneDevice control 4 Ctrl+T
211502500010101NAKnoneNegative acknowledge Ctrl+U
221602600010110SYNnoneSynchronous idle Ctrl+V
231702700010111ETBnoneEnd of transmission block Ctrl+W
241803000011000CANnoneCancel Ctrl+X
251903100011001EMnoneEnd of medium Ctrl+Y
261A03200011010SUBnoneSubstitute Ctrl+Z
271B03300011011ESCnoneEscape \e, Ctrl+[
281C03400011100FSnoneFile separator Ctrl+\
291D03500011101GSnoneGroup separator Ctrl+]
301E03600011110RSnoneRecord separator Ctrl+^
311F03700011111USnoneUnit separator Ctrl+_
322004000100000SP Space
332104100100001!!Exclamation mark
342204200100010"" "Double quote
352304300100011##Hash (number sign)
362404400100100$$Dollar sign
372504500100101%%Percent sign
382604600100110&& &Ampersand
392704700100111'' 'Single quote (apostrophe)
402805000101000((Left parenthesis
412905100101001))Right parenthesis
422A05200101010**Asterisk
432B05300101011++Plus sign
442C05400101100,,Comma
452D05500101101--Hyphen-minus
462E05600101110..Period (full stop)
472F05700101111//Slash (forward slash)
48300600011000000Digit zero
49310610011000111Digit one
50320620011001022Digit two
51330630011001133Digit three
52340640011010044Digit four
53350650011010155Digit five
54360660011011066Digit six
55370670011011177Digit seven
56380700011100088Digit eight
57390710011100199Digit nine
583A07200111010::Colon
593B07300111011;&#59;Semicolon
603C07400111100<&#60; &lt;Less-than sign
613D07500111101=&#61;Equals sign
623E07600111110>&#62; &gt;Greater-than sign
633F07700111111?&#63;Question mark
644010001000000@&#64;At sign
654110101000001A&#65;Uppercase A
664210201000010B&#66;Uppercase B
674310301000011C&#67;Uppercase C
684410401000100D&#68;Uppercase D
694510501000101E&#69;Uppercase E
704610601000110F&#70;Uppercase F
714710701000111G&#71;Uppercase G
724811001001000H&#72;Uppercase H
734911101001001I&#73;Uppercase I
744A11201001010J&#74;Uppercase J
754B11301001011K&#75;Uppercase K
764C11401001100L&#76;Uppercase L
774D11501001101M&#77;Uppercase M
784E11601001110N&#78;Uppercase N
794F11701001111O&#79;Uppercase O
805012001010000P&#80;Uppercase P
815112101010001Q&#81;Uppercase Q
825212201010010R&#82;Uppercase R
835312301010011S&#83;Uppercase S
845412401010100T&#84;Uppercase T
855512501010101U&#85;Uppercase U
865612601010110V&#86;Uppercase V
875712701010111W&#87;Uppercase W
885813001011000X&#88;Uppercase X
895913101011001Y&#89;Uppercase Y
905A13201011010Z&#90;Uppercase Z
915B13301011011[&#91;Left square bracket
925C13401011100\&#92;Backslash
935D13501011101]&#93;Right square bracket
945E13601011110^&#94;Caret (circumflex)
955F13701011111_&#95;Underscore
966014001100000`&#96;Backtick (grave accent)
976114101100001a&#97;Lowercase a
986214201100010b&#98;Lowercase b
996314301100011c&#99;Lowercase c
1006414401100100d&#100;Lowercase d
1016514501100101e&#101;Lowercase e
1026614601100110f&#102;Lowercase f
1036714701100111g&#103;Lowercase g
1046815001101000h&#104;Lowercase h
1056915101101001i&#105;Lowercase i
1066A15201101010j&#106;Lowercase j
1076B15301101011k&#107;Lowercase k
1086C15401101100l&#108;Lowercase l
1096D15501101101m&#109;Lowercase m
1106E15601101110n&#110;Lowercase n
1116F15701101111o&#111;Lowercase o
1127016001110000p&#112;Lowercase p
1137116101110001q&#113;Lowercase q
1147216201110010r&#114;Lowercase r
1157316301110011s&#115;Lowercase s
1167416401110100t&#116;Lowercase t
1177516501110101u&#117;Lowercase u
1187616601110110v&#118;Lowercase v
1197716701110111w&#119;Lowercase w
1207817001111000x&#120;Lowercase x
1217917101111001y&#121;Lowercase y
1227A17201111010z&#122;Lowercase z
1237B17301111011{&#123;Left curly brace
1247C17401111100|&#124;Vertical bar (pipe)
1257D17501111101}&#125;Right curly brace
1267E17601111110~&#126;Tilde
1277F17701111111DELnoneDelete Ctrl+?

How to use the ASCII table

  1. Scroll the table, or type in Search by code, character or name. A decimal code (65), hex (0x41), octal (\101), binary (01000001), one character (A) or a word such as tab, newline or tilde all work, and so do control keys like Ctrl+C.
  2. Read across a row: Dec, Hex, Oct, Bin, the character, its HTML entity and its Name. Control codes show an abbreviation such as LF, with the escape sequence and Ctrl key underneath.
  3. Press Show 128 to 255 (Windows-1252) to add the extended codes. They are not part of ASCII.

How the ASCII table works

ASCII (American Standard Code for Information Interchange) is a 7-bit code with 128 values: 33 control codes (0 to 31 and 127) and 95 printable characters (32 to 126, including the space). It is described in RFC 20, and the first 128 Unicode code points are identical, so every ASCII file is also valid UTF-8.

The digits 0 to 9 are codes 48 to 57, so a digit's value is its code minus 48. A letter and its other case differ by exactly 32 (one bit): A is 65 and a is 97. A control code is its Ctrl key with the top bits cleared: Ctrl+J is 0x4A AND 0x1F = 0x0A, the line feed.

Worked example

With the search box empty, the status line begins "Showing all 128 ASCII codes." and the table lists every code from 0 to 127. Row 65 shows Dec 65, Hex 41, Oct 101, Bin 01000001, Char A, HTML &#65; and Name Uppercase A. Check it by hand: 65 = 64 + 1, which is 0100 0001 in binary, 0x41 in hex and 101 in octal. Type 65 and the table narrows to that row.

Limits and edge cases

To convert whole strings instead of single codes, use the binary text converter, the number base converter or the HTML entity encoder.

Frequently asked questions

What is the ASCII code for space, tab and newline?

Space is 32 (hex 20), tab is 9, line feed (the newline on Linux and macOS) is 10 and carriage return is 13. Windows text files end each line with 13 followed by 10.

How many characters are in ASCII?

ASCII has 128 codes: 95 printable characters (32 to 126, including the space) and 33 control codes (0 to 31 and 127). "Extended ASCII" with 256 characters is not one standard but a family of 8-bit code pages.

What is the difference between ASCII and Unicode?

ASCII covers 128 characters, enough for unaccented English. Unicode covers over 150,000 characters from every script, and its first 128 code points match ASCII, so plain ASCII text is already valid UTF-8.

Why are uppercase and lowercase letters 32 apart?

A is 65 (01000001) and a is 97 (01100001), so they differ only in the bit worth 32. Flipping that one bit changes the case, and it is why sorting by ASCII code puts uppercase before lowercase.

Sources: RFC 20, ASCII format for network interchange, the Unicode chart for C0 Controls and Basic Latin and the WHATWG Encoding Standard entry for windows-1252.