Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

ASCII Table & Character Code Chart (Dec, Hex, Octal, Binary, HTML)

Every ASCII code in every notation, the control codes explained, and 128–255 by code page.

Free, no sign-up On this device: nothing is sent
+3 +1 more details No uploadWorks offline once opened Developer
Dec Hex Oct Binary Char HTML Name
0 00 000 00000000 ␀ NUL � Null
1 01 001 00000001 ␁ SOH  Start of Heading
2 02 002 00000010 ␂ STX  Start of Text
3 03 003 00000011 ␃ ETX  End of Text
4 04 004 00000100 ␄ EOT  End of Transmission
5 05 005 00000101 ␅ ENQ  Enquiry
6 06 006 00000110 ␆ ACK  Acknowledge
7 07 007 00000111 ␇ BEL  Bell
8 08 010 00001000 ␈ BS  Backspace
9 09 011 00001001 ␉ HT 	 Horizontal Tabulation
10 0A 012 00001010 ␊ LF 
 Line Feed
11 0B 013 00001011 ␋ VT  Vertical Tabulation
12 0C 014 00001100 ␌ FF  Form Feed
13 0D 015 00001101 ␍ CR 
 Carriage Return
14 0E 016 00001110 ␎ SO  Shift Out
15 0F 017 00001111 ␏ SI  Shift In
16 10 020 00010000 ␐ DLE  Data Link Escape
17 11 021 00010001 ␑ DC1  Device Control 1
18 12 022 00010010 ␒ DC2  Device Control 2
19 13 023 00010011 ␓ DC3  Device Control 3
20 14 024 00010100 ␔ DC4  Device Control 4 (Stop)
21 15 025 00010101 ␕ NAK  Negative Acknowledge
22 16 026 00010110 ␖ SYN  Synchronous Idle
23 17 027 00010111 ␗ ETB  End of Transmission Block
24 18 030 00011000 ␘ CAN  Cancel
25 19 031 00011001 ␙ EM  End of Medium
26 1A 032 00011010 ␚ SUB  Substitute
27 1B 033 00011011 ␛ ESC  Escape
28 1C 034 00011100 ␜ FS  File Separator
29 1D 035 00011101 ␝ GS  Group Separator
30 1E 036 00011110 ␞ RS  Record Separator
31 1F 037 00011111 ␟ US  Unit Separator
32 20 040 00100000 ␠ SP   SPACE
33 21 041 00100001 ! ! EXCLAMATION MARK
34 22 042 00100010 " " QUOTATION MARK
35 23 043 00100011 # # NUMBER SIGN
36 24 044 00100100 $ $ DOLLAR SIGN
37 25 045 00100101 % % PERCENT SIGN
38 26 046 00100110 & & AMPERSAND
39 27 047 00100111 ' ' APOSTROPHE
40 28 050 00101000 ( ( LEFT PARENTHESIS
41 29 051 00101001 ) ) RIGHT PARENTHESIS
42 2A 052 00101010 * * ASTERISK
43 2B 053 00101011 + + PLUS SIGN
44 2C 054 00101100 , , COMMA
45 2D 055 00101101 - - HYPHEN-MINUS
46 2E 056 00101110 . . FULL STOP
47 2F 057 00101111 / / SOLIDUS
48 30 060 00110000 0 0 DIGIT ZERO
49 31 061 00110001 1 1 DIGIT ONE
50 32 062 00110010 2 2 DIGIT TWO
51 33 063 00110011 3 3 DIGIT THREE
52 34 064 00110100 4 4 DIGIT FOUR
53 35 065 00110101 5 5 DIGIT FIVE
54 36 066 00110110 6 6 DIGIT SIX
55 37 067 00110111 7 7 DIGIT SEVEN
56 38 070 00111000 8 8 DIGIT EIGHT
57 39 071 00111001 9 9 DIGIT NINE
58 3A 072 00111010 : : COLON
59 3B 073 00111011 ; ; SEMICOLON
60 3C 074 00111100 < &lt; LESS-THAN SIGN
61 3D 075 00111101 = &equals; EQUALS SIGN
62 3E 076 00111110 > &gt; GREATER-THAN SIGN
63 3F 077 00111111 ? &quest; QUESTION MARK
64 40 100 01000000 @ &commat; COMMERCIAL AT
65 41 101 01000001 A &#65; LATIN CAPITAL LETTER A
66 42 102 01000010 B &#66; LATIN CAPITAL LETTER B
67 43 103 01000011 C &#67; LATIN CAPITAL LETTER C
68 44 104 01000100 D &#68; LATIN CAPITAL LETTER D
69 45 105 01000101 E &#69; LATIN CAPITAL LETTER E
70 46 106 01000110 F &#70; LATIN CAPITAL LETTER F
71 47 107 01000111 G &#71; LATIN CAPITAL LETTER G
72 48 110 01001000 H &#72; LATIN CAPITAL LETTER H
73 49 111 01001001 I &#73; LATIN CAPITAL LETTER I
74 4A 112 01001010 J &#74; LATIN CAPITAL LETTER J
75 4B 113 01001011 K &#75; LATIN CAPITAL LETTER K
76 4C 114 01001100 L &#76; LATIN CAPITAL LETTER L
77 4D 115 01001101 M &#77; LATIN CAPITAL LETTER M
78 4E 116 01001110 N &#78; LATIN CAPITAL LETTER N
79 4F 117 01001111 O &#79; LATIN CAPITAL LETTER O
80 50 120 01010000 P &#80; LATIN CAPITAL LETTER P
81 51 121 01010001 Q &#81; LATIN CAPITAL LETTER Q
82 52 122 01010010 R &#82; LATIN CAPITAL LETTER R
83 53 123 01010011 S &#83; LATIN CAPITAL LETTER S
84 54 124 01010100 T &#84; LATIN CAPITAL LETTER T
85 55 125 01010101 U &#85; LATIN CAPITAL LETTER U
86 56 126 01010110 V &#86; LATIN CAPITAL LETTER V
87 57 127 01010111 W &#87; LATIN CAPITAL LETTER W
88 58 130 01011000 X &#88; LATIN CAPITAL LETTER X
89 59 131 01011001 Y &#89; LATIN CAPITAL LETTER Y
90 5A 132 01011010 Z &#90; LATIN CAPITAL LETTER Z
91 5B 133 01011011 [ &lsqb; LEFT SQUARE BRACKET
92 5C 134 01011100 \ &bsol; REVERSE SOLIDUS
93 5D 135 01011101 ] &rsqb; RIGHT SQUARE BRACKET
94 5E 136 01011110 ^ &Hat; CIRCUMFLEX ACCENT
95 5F 137 01011111 _ &lowbar; LOW LINE
96 60 140 01100000 ` &grave; GRAVE ACCENT
97 61 141 01100001 a &#97; LATIN SMALL LETTER A
98 62 142 01100010 b &#98; LATIN SMALL LETTER B
99 63 143 01100011 c &#99; LATIN SMALL LETTER C
100 64 144 01100100 d &#100; LATIN SMALL LETTER D
101 65 145 01100101 e &#101; LATIN SMALL LETTER E
102 66 146 01100110 f &#102; LATIN SMALL LETTER F
103 67 147 01100111 g &#103; LATIN SMALL LETTER G
104 68 150 01101000 h &#104; LATIN SMALL LETTER H
105 69 151 01101001 i &#105; LATIN SMALL LETTER I
106 6A 152 01101010 j &#106; LATIN SMALL LETTER J
107 6B 153 01101011 k &#107; LATIN SMALL LETTER K
108 6C 154 01101100 l &#108; LATIN SMALL LETTER L
109 6D 155 01101101 m &#109; LATIN SMALL LETTER M
110 6E 156 01101110 n &#110; LATIN SMALL LETTER N
111 6F 157 01101111 o &#111; LATIN SMALL LETTER O
112 70 160 01110000 p &#112; LATIN SMALL LETTER P
113 71 161 01110001 q &#113; LATIN SMALL LETTER Q
114 72 162 01110010 r &#114; LATIN SMALL LETTER R
115 73 163 01110011 s &#115; LATIN SMALL LETTER S
116 74 164 01110100 t &#116; LATIN SMALL LETTER T
117 75 165 01110101 u &#117; LATIN SMALL LETTER U
118 76 166 01110110 v &#118; LATIN SMALL LETTER V
119 77 167 01110111 w &#119; LATIN SMALL LETTER W
120 78 170 01111000 x &#120; LATIN SMALL LETTER X
121 79 171 01111001 y &#121; LATIN SMALL LETTER Y
122 7A 172 01111010 z &#122; LATIN SMALL LETTER Z
123 7B 173 01111011 { &lcub; LEFT CURLY BRACKET
124 7C 174 01111100 | &verbar; VERTICAL LINE
125 7D 175 01111101 } &rcub; RIGHT CURLY BRACKET
126 7E 176 01111110 ~ &#126; TILDE
127 7F 177 01111111 ␡ DEL &#127; Delete

Click or tap a cell to copy it. Keyboard: the arrow keys move, Enter copies. Char copies the character itself.

Codes of a text

Each character’s code appears below as you type.

Next steps Done. What next?

Start over

All developer tools

About the ASCII Table & Character Code Chart (Dec, Hex, Octal, Binary, HTML)

ASCII numbers the 128 characters every computer shares: control codes, the space, digits, letters and punctuation, 0 to 127. This chart shows each one in decimal, hexadecimal, octal and 8-bit binary, with the character, its numeric and named HTML entity, its caret notation (^C), the escape you write in C, JavaScript, Python and JSON, and its URL encoding. The 33 control codes have their abbreviation, their name from RFC 20 and what they do today: LF ends a line on Linux and macOS and CR LF on Windows, ESC starts terminal colour codes, and Ctrl+D sends EOT, the end of input.

Bytes 128 to 255 are not ASCII, and what they mean depends on the code page. Tabs show them in Windows-1252, ISO-8859-1 (Latin-1) and IBM code page 437 with each byte’s Unicode code point, and side by side, so you can see why byte 0xE9 is é in one and Θ in another, and why “café” turns into “café” when UTF-8 is read as Windows-1252. Search by a character, a name or any code (0x41, 65, &amp;, \n), click any cell to copy it, print the 0–127 chart on one page, or type a text to see its codes.

How to use it

  1. Search with whatever you have: a character (A), a number in any base (65, 0x41, 0101, 0b1000001), an entity (&lt;), an escape (\t), caret notation (^[) or words of a name (line feed, curly brace). The table keeps the matching rows; a single match opens its details.
  2. Click or tap any cell to copy what it shows. With the keyboard, Tab into the table, move with the arrow keys (Home, End, Page Up and Page Down too) and press Enter to copy.
  3. Read the detail card for the selected code: every notation with its own Copy button, and for a control code its RFC 20 name, group and modern use.
  4. Open Windows-1252, ISO-8859-1 or Code page 437 for bytes 128–255, or Compare to see the three side by side.
  5. Type or paste a text under Codes of a text to see each character’s code, the whole text as decimal, hex, octal or binary bytes, code points, HTML references or a C, JavaScript or URL-encoded string, and garbled text read back as UTF-8.
  6. Press Print chart for the 0–127 table on one A4 or Letter page.

Examples

The letter A
Input
A
Result
Decimal 65 · hex 0x41 · octal 0101 · binary 01000001 · &#65; · URL %41
A newline in every notation
Input
\n
Result
LF (Line Feed) · decimal 10 · hex 0x0A · caret ^J · C, JavaScript, Python and JSON \n · URL %0A
One byte, three code pages
Input
0xE9 on the Compare tab
Result
Windows-1252: é (U+00E9) · ISO-8859-1: é (U+00E9) · Code page 437: Θ (U+0398)
Why “café” shows as “café”
Input
café
Result
UTF-8 bytes 63 61 66 C3 A9 · read as Windows-1252: café · read as code page 437: caf├⌐

UTF-8 writes é as two bytes. A program that assumes a one-byte code page shows each byte as a character of its own. Paste “café” under Codes of a text and it is read back as “café”.

How the table is laid out

ASCII is a 7-bit code. 0–31 and 127 are control codes, 32 is the space, 48–57 are the digits, 65–90 the capital letters and 97–122 the small letters, with punctuation in between.

  • A capital and its small letter differ by one bit, 32 (0x20): A is 0x41 and a is 0x61, so flipping that bit changes the case.
  • A digit’s value is its code minus 48 (0x30): 7 is 55.
  • A control code’s caret notation is ^ and the character 64 places above it: ^@ is NUL, ^[ is ESC and ^? is DEL. A terminal sends the same code for Ctrl and that key, which is why Ctrl+[ works as Esc and Ctrl+H as Backspace.
  • In a URL only letters, digits and - . _ ~ may stand as they are (RFC 3986); everything else is percent-encoded, %20 for the space.

Extended ASCII and code pages

There is no single “extended ASCII”. Bytes 128–255 meant different characters on different systems:

  • Windows-1252, the code page of Western European Windows, puts curly quotes, dashes, the euro sign and ™ in 128–159 and leaves five bytes undefined.
  • ISO-8859-1 keeps 128–159 for the C1 control codes and agrees with Windows-1252 from 160 to 255.
  • Code page 437, the character set of the original IBM PC and of the Windows console in the United States, has accented letters, box-drawing characters, shading blocks and Greek letters there.

Web browsers decode a page labelled iso-8859-1, latin1, ascii or us-ascii as Windows-1252, and its five undefined bytes as the C1 controls of the same number, as the WHATWG Encoding Standard requires. Unicode keeps ASCII as its first 128 code points and Latin-1 as the next 128, and UTF-8 stores the ASCII ones as the same single bytes, so an ASCII file is also valid UTF-8.

Sources

Limitations

  • The 128–255 tabs cover three code pages. Others, such as ISO-8859-2 to ISO-8859-16, Windows-1250 to Windows-1258, Mac OS Roman or code page 850, put other characters on those bytes.
  • Code page 437 also has pictures for 1–31 and 127 (☺, ♥, ♪ and others) that DOS and many fonts draw; its mapping file, and this chart, list those bytes as the control codes.
  • Copying a control code from the Char column copies the invisible character itself, which most editors do not show; copy its escape or caret notation from the detail card instead.
  • Names of characters outside ASCII and these three code pages are not listed here; the Unicode Character Inspector names any character.

Privacy

On this device: nothing is sent

Everything happens in your browser. What you enter or open here is not uploaded or stored by MySmartCoPilot.

Frequently asked questions

What is the ASCII code of A?

Capital A is 65 in decimal, 0x41 in hexadecimal, 0101 in octal and 01000001 in binary. Small a is 97 (0x61): every small letter is its capital plus 32.

What is the difference between ASCII and Unicode?

ASCII has 128 codes. Unicode has room for more than a million characters and keeps ASCII as its first 128 code points, U+0000 to U+007F. UTF-8 stores those 128 as the same single bytes, so plain ASCII text is already valid UTF-8, while every other character takes two to four bytes.

Is there an extended ASCII with 256 characters?

Not as one standard. Many 8-bit code pages keep ASCII in 0–127 and add their own characters in 128–255: Windows-1252 and ISO-8859-1 for Western European languages, code page 437 on the original IBM PC, and many more. Open the tabs above to compare three of them byte by byte.

Why does my text show é instead of é?

UTF-8 stores é as the two bytes C3 A9. A program that reads the file as Windows-1252 or Latin-1 shows each byte as a character of its own, Ã and ©. Open the file as UTF-8 in that program, or paste the garbled text under Codes of a text: when it is UTF-8 read in one of the three code pages, the page reads it back for you.

What are CR and LF?

Carriage return (13, \r) and line feed (10, \n) come from teleprinters, which needed one code to move the print head back and one to move the paper up. Linux and macOS end lines with LF alone, Windows with CR LF, and HTTP and e-mail headers also use CR LF.

How do I type a character by its code on Windows?

Hold Alt and type the code with a leading zero on the numeric keypad (with Num Lock on): Microsoft’s example is Alt+0176 for the degree sign °. On English and Western European set-ups that number is the character’s Windows-1252 code from the tab above, so Alt+0233 gives é.

Is the chart free to use?

Yes. It is a free reference page: search, copy and print as much as you like. Everything runs in your browser and works offline once the page has loaded.

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.