ASCII Table — Decimal, Hex, Octal, Binary & HTML Codes
All 128 ASCII codes in decimal, hex, octal and binary with HTML codes and control-character names, plus extended 128–255 and a text converter.
Extended ASCII 128–255: three different tables
ASCII stops at 127. Bytes 128–255 depend on the code page. Windows-1252 is what Alt+0nnn types and what browsers use for “ISO-8859-1” labelled pages. True ISO-8859-1 has invisible C1 control codes at 128–159 (highlighted). CP437 is the original IBM PC / DOS set that Alt+nnn still uses on U.S. Windows.
| Dec | Hex | Windows-1252 | ISO-8859-1 | CP437 (DOS) | HTML (&#nnn;) |
|---|---|---|---|---|---|
| Euro sign | PAD | Capital C with cedilla | |||
| undefined | HOP | Small u with diaeresis | |||
| Single low-9 quotation mark | BPH | Small e with acute | |||
| Florin (f with hook) | NBH | Small a with circumflex | |||
| Double low-9 quotation mark | IND | Small a with diaeresis | |||
| Horizontal ellipsis | NEL | Small a with grave | |||
| Dagger | SSA | Small a with ring above | |||
| Double dagger | ESA | Small c with cedilla | |||
| Modifier letter circumflex accent | HTS | Small e with circumflex | |||
| Per mille sign | HTJ | Small e with diaeresis | |||
| Capital S with caron | VTS | Small e with grave | |||
| Single left-pointing angle quotation mark | PLD | Small i with diaeresis | |||
| Latin capital ligature oe | PLU | Small i with circumflex | |||
| undefined | RI | Small i with grave | |||
| Capital Z with caron | SS2 | Capital A with diaeresis | |||
| undefined | SS3 | Capital A with ring above | |||
| undefined | DCS | Capital E with acute | |||
| Left single quotation mark | PU1 | Small ae | |||
| Right single quotation mark (apostrophe) | PU2 | Capital ae | |||
| Left double quotation mark | STS | Small o with circumflex | |||
| Right double quotation mark | CCH | Small o with diaeresis | |||
| Bullet | MW | Small o with grave | |||
| En dash | SPA | Small u with circumflex | |||
| Em dash | EPA | Small u with grave | |||
| Small tilde | SOS | Small y with diaeresis | |||
| Trademark sign | SGC | Capital O with diaeresis | |||
| Small s with caron | SCI | Capital U with diaeresis | |||
| Single right-pointing angle quotation mark | CSI | Cent sign | |||
| Latin small ligature oe | ST | Pound sign | |||
| undefined | OSC | Yen sign | |||
| Small z with caron | PM | Peseta sign | |||
| Capital Y with diaeresis | APC | Florin (f with hook) | |||
| Non-breaking space | same | Small a with acute | |||
| Inverted exclamation mark | same | Small i with acute | |||
| Cent sign | same | Small o with acute | |||
| Pound sign | same | Small u with acute | |||
| Currency sign | same | Small n with tilde | |||
| Yen sign | same | Capital N with tilde | |||
| Broken bar | same | Feminine ordinal indicator | |||
| Section sign | same | Masculine ordinal indicator | |||
| Diaeresis | same | Inverted question mark | |||
| Copyright sign | same | Reversed not sign | |||
| Feminine ordinal indicator | same | Not sign | |||
| Left guillemet («) | same | Vulgar fraction one half | |||
| Not sign | same | Vulgar fraction one quarter | |||
| Soft hyphen | same | Inverted exclamation mark | |||
| Registered sign | same | Left guillemet («) | |||
| Macron | same | Right guillemet (») | |||
| Degree sign | same | Light shade | |||
| Plus-minus sign | same | Medium shade | |||
| Superscript two | same | Dark shade | |||
| Superscript three | same | Box drawings light vertical | |||
| Acute accent | same | Box drawings light vertical and left | |||
| Micro sign | same | Box drawings vertical single and left double | |||
| Pilcrow (paragraph sign) | same | Box drawings vertical double and left single | |||
| Middle dot (interpunct) | same | Box drawings down double and left single | |||
| Cedilla | same | Box drawings down single and left double | |||
| Superscript one | same | Box drawings double vertical and left | |||
| Masculine ordinal indicator | same | Box drawings double vertical | |||
| Right guillemet (») | same | Box drawings double down and left | |||
| Vulgar fraction one quarter | same | Box drawings double up and left | |||
| Vulgar fraction one half | same | Box drawings up double and left single | |||
| Vulgar fraction three quarters | same | Box drawings up single and left double | |||
| Inverted question mark | same | Box drawings light down and left | |||
| Capital A with grave | same | Box drawings light up and right | |||
| Capital A with acute | same | Box drawings light up and horizontal | |||
| Capital A with circumflex | same | Box drawings light down and horizontal | |||
| Capital A with tilde | same | Box drawings light vertical and right | |||
| Capital A with diaeresis | same | Box drawings light horizontal | |||
| Capital A with ring above | same | Box drawings light vertical and horizontal | |||
| Capital ae | same | Box drawings vertical single and right double | |||
| Capital C with cedilla | same | Box drawings vertical double and right single | |||
| Capital E with grave | same | Box drawings double up and right | |||
| Capital E with acute | same | Box drawings double down and right | |||
| Capital E with circumflex | same | Box drawings double up and horizontal | |||
| Capital E with diaeresis | same | Box drawings double down and horizontal | |||
| Capital I with grave | same | Box drawings double vertical and right | |||
| Capital I with acute | same | Box drawings double horizontal | |||
| Capital I with circumflex | same | Box drawings double vertical and horizontal | |||
| Capital I with diaeresis | same | Box drawings up single and horizontal double | |||
| Capital eth | same | Box drawings up double and horizontal single | |||
| Capital N with tilde | same | Box drawings down single and horizontal double | |||
| Capital O with grave | same | Box drawings down double and horizontal single | |||
| Capital O with acute | same | Box drawings up double and right single | |||
| Capital O with circumflex | same | Box drawings up single and right double | |||
| Capital O with tilde | same | Box drawings down single and right double | |||
| Capital O with diaeresis | same | Box drawings down double and right single | |||
| Multiplication sign | same | Box drawings vertical double and horizontal single | |||
| Capital O with stroke | same | Box drawings vertical single and horizontal double | |||
| Capital U with grave | same | Box drawings light up and left | |||
| Capital U with acute | same | Box drawings light down and right | |||
| Capital U with circumflex | same | Full block | |||
| Capital U with diaeresis | same | Lower half block | |||
| Capital Y with acute | same | Left half block | |||
| Capital thorn | same | Right half block | |||
| Small sharp s | same | Upper half block | |||
| Small a with grave | same | Greek small alpha | |||
| Small a with acute | same | Small sharp s | |||
| Small a with circumflex | same | Greek capital gamma | |||
| Small a with tilde | same | Greek small pi | |||
| Small a with diaeresis | same | Greek capital sigma | |||
| Small a with ring above | same | Greek small sigma | |||
| Small ae | same | Micro sign | |||
| Small c with cedilla | same | Greek small tau | |||
| Small e with grave | same | Greek capital phi | |||
| Small e with acute | same | Greek capital theta | |||
| Small e with circumflex | same | Greek capital omega | |||
| Small e with diaeresis | same | Greek small delta | |||
| Small i with grave | same | Infinity | |||
| Small i with acute | same | Greek small phi | |||
| Small i with circumflex | same | Greek small epsilon | |||
| Small i with diaeresis | same | Intersection | |||
| Small eth | same | Identical to | |||
| Small n with tilde | same | Plus-minus sign | |||
| Small o with grave | same | Greater-than or equal to | |||
| Small o with acute | same | Less-than or equal to | |||
| Small o with circumflex | same | Top half integral | |||
| Small o with tilde | same | Bottom half integral | |||
| Small o with diaeresis | same | Division sign | |||
| Division sign | same | Almost equal to | |||
| Small o with stroke | same | Degree sign | |||
| Small u with grave | same | Bullet operator | |||
| Small u with acute | same | Middle dot (interpunct) | |||
| Small u with circumflex | same | Square root | |||
| Small u with diaeresis | same | Superscript latin small letter n | |||
| Small y with acute | same | Superscript two | |||
| Small thorn | same | Black square | |||
| Small y with diaeresis | same | Non-breaking space |
HTML note: browsers decode €–Ÿ as the Windows-1252 characters (so – shows –), but the correct reference is the Unicode one (–). Use the code point, not the byte.
Last verified: 2026-10-18 against RFC 20 (US-ASCII), the Unicode C0/C1 control charts and the Unicode Consortium's Windows-1252, ISO-8859-1 and CP437 mapping tables.
Runs entirely in your browser. Text you convert is never sent anywhere. Browse all free tools.
Found a problem, or something that could be better? We read every message and we fix things quickly.
This ASCII table lists all 128 ASCII characters with their decimal, hexadecimal, octal and binary codes, the HTML reference for each, and the name, caret notation and escape sequence of every control character. Click any value to copy it, filter to just the control codes, letters, digits or punctuation, and use the converter under the table to turn text into ASCII codes or a list of codes back into text.
ASCII itself only covers 0 to 127. The codes from 128 to 255, often called extended ASCII, are not one standard, so instead of picking one the second table shows the three versions you are likely to meet: Windows-1252, which is what Windows' Alt+0nnn codes and most “Latin-1” web pages really use; true ISO-8859-1, which has invisible control codes at 128–159; and the original IBM PC code page 437 with its box-drawing characters. If you have bytes from a file, knowing which of the three it was written in is what decides the character.
How to use
- Find the character in the table, or use the filter chips to show only control codes, letters, digits or punctuation.
- Click any decimal, hex, octal, binary, character or HTML value to copy it.
- For bytes above 127, check the extended table and pick the column for the encoding your text uses (Windows-1252 if unsure).
- To convert a string, type it in the Text box and choose decimal, hex, octal or binary output; to decode, paste codes into the Codes box.
Frequently asked questions
What is ASCII?
ASCII (American Standard Code for Information Interchange) is a 7-bit character code with 128 positions: 33 control codes (0–31 and 127) and 95 printable characters (32–126) covering the space, digits, English letters and common punctuation. It was first published in 1963, gained lowercase letters in 1967 and was last revised as ANSI X3.4-1986. Unicode and UTF-8 keep its first 128 characters unchanged.
What are the ASCII codes for A, a, 0 and space?
Capital A is 65 (hex 41), small a is 97 (hex 61), the digit 0 is 48 (hex 30) and the space is 32 (hex 20). Upper- and lowercase letters are exactly 32 apart, a single bit (0x20), and each digit's code is 48 plus its value, which is why code like c - '0' converts a digit character to its number.
Is extended ASCII (128–255) a standard?
No. ASCII is 7-bit and ends at 127. The upper half of an 8-bit byte was filled differently by different code pages: Windows-1252 and ISO-8859-1 for Western European text, code page 437 on the IBM PC, and many others for Greek, Cyrillic or Central European languages. Byte 233 is é in Windows-1252 and ISO-8859-1 but Θ in code page 437. Today, text should be stored as UTF-8 instead.
What is the difference between ASCII and UTF-8?
UTF-8 is a Unicode encoding that is backwards compatible with ASCII: the 128 ASCII characters are stored as the same single bytes, so a pure ASCII file is also valid UTF-8. Characters beyond ASCII take two to four bytes; é becomes C3 A9 and an emoji takes four bytes. Reading those bytes as Windows-1252 is what produces mojibake such as “é” for “é”.
What do \n, \r and \t mean in the ASCII table?
They are escape sequences for control codes: \n is Line Feed (10, 0x0A), \r is Carriage Return (13, 0x0D) and \t is Horizontal Tab (9). Linux and macOS end lines with LF, Windows with CR LF, and the classic Mac OS used CR alone. Other escapes are \0 for NUL (0), \a for Bell (7), \b for Backspace (8), \v for Vertical Tab (11) and \f for Form Feed (12).
How do I get the ASCII code of a character in code?
In JavaScript use 'A'.charCodeAt(0) (or codePointAt for characters beyond U+FFFF) and String.fromCharCode(65) to go back. In Python use ord('A') and chr(65). In C a char already is its code: (int)'A' is 65. Excel has =CODE("A") and =CHAR(65), though those use the system code page for values above 127.
How the ASCII table is laid out
The 128 codes fall into four rows of 32, and the layout was designed so that simple bit operations do useful work.
• 0–31: control codes. Holding Ctrl on a terminal clears bit 0x40 of the key, so Ctrl+M (77 → 13) sends Carriage Return and Ctrl+[ (91 → 27) sends Escape. That is where caret notation such as ^M and ^[ comes from.
• 32–63: space, punctuation and digits. The digits 0–9 are 48–57 (0x30–0x39), so the low four bits of a digit are its value.
• 64–95: @, the capital letters A–Z (65–90) and [ \ ] ^ _.
• 96–127: `, the small letters a–z (97–122), { | } ~ and DEL. Each lowercase letter is its capital plus 32, so flipping bit 0x20 changes case.
DEL is 127, all seven bits set, because on punched paper tape a mistaken character could be erased by punching out every hole.
Control characters you still run into
Most of the 33 control codes were for teleprinters and serial links and are unused today, but a handful matter in everyday programming.
• LF (10) and CR (13): line endings. A file with Windows CR LF endings opened on Linux shows ^M at line ends; git's core.autocrlf setting and most editors convert between the two.
• HT (9): the tab. TSV files and Makefiles depend on a real tab, not spaces.
• NUL (0): ends strings in C. A stray NUL in user input can truncate a string in C-based code and is a classic source of bugs.
• ESC (27): starts ANSI escape sequences, such as \x1b[31m for red text in a terminal.
• ETX (3), EOT (4) and SUB (26): what Ctrl+C, Ctrl+D and Ctrl+Z send. A Unix terminal turns Ctrl+C into an interrupt signal and Ctrl+D into end of input; Ctrl+Z marked end of file in DOS text files.
• BEL (7): printing it makes many terminals beep or flash.
Windows-1252, ISO-8859-1 and code page 437 compared
ISO-8859-1 (Latin-1) maps byte 128–159 to the C1 control codes and 160–255 to the characters that became Unicode's Latin-1 Supplement: non-breaking space, ¡ ¢ £, the accented letters and so on. Its code points equal its byte values, which is why Unicode U+00E9 is é and byte 233 is é.
Windows-1252 is identical from 160 to 255 but replaces the mostly unused C1 controls with 27 printable characters: € ‚ ƒ „ … † ‡ ˆ ‰ Š ‹ Œ Ž ‘ ’ “ ” • – — ˜ ™ š › œ ž Ÿ. Five bytes (129, 141, 143, 144, 157) are undefined. Because so much “Latin-1” text was really Windows-1252, the WHATWG Encoding Standard tells browsers to decode both labels as Windows-1252, and HTML treats – as – for the same reason.
Code page 437 is the original IBM PC set: accented letters in a different order, Greek letters and math signs, and the box-drawing and shading characters (░ ▒ ▓ │ ┤ ╣ ║) that DOS programs drew their screens with. It survives in Windows' Alt+nnn codes and in some barcode printers, terminals and old file formats.
Related free tools
- Number Base Converter — Convert integers of any size between binary, octal, decimal, hex, base 32, base 36 and any base 2–36, with a two's complement view.
- HTML Entity Encoder — Escape text for HTML with named or numeric entities, decode &-style references back to characters, and search an entity reference table.
- URL Encoder / Decoder — Percent-encode or decode text for URLs in component, full-URL or form mode, and edit a URL's query parameters in a table.
- Alt Codes & Mac Symbols — Every Windows Alt code and Mac Option shortcut for 600+ symbols, with HTML entities and Unicode escapes. Search, filter, click to copy.
- Copy & Paste Symbols — 1,200+ text symbols in 22 groups: click to copy, collect several at once, and see each one's Alt code, Mac shortcut and HTML entity.