How to use the ascii table
- Filter by typing a decimal, hex, octal or binary value (for example
65,0x41) or a name such astilde. - Hover a character button (or long-press on a phone) to read its name and its code in decimal, hex, octal and binary.
- Click a character to copy it and add it to the text box below the grid; use Copy to take the whole string.
- Scroll down for the reference tables with control characters, printable ASCII and common Latin-1 symbols with their HTML entities.
How the table is organized
This ASCII table covers the full 8-bit range, 0 to 255. Codes 0 to 127 are the standard ASCII set defined in ANSI X3.4-1986. Codes 128 to 255 follow the ISO-8859-1 (Latin-1) assignment, which matches the first 256 Unicode code points (U+0000 to U+00FF). For most positions it also matches the Windows-1252 code page, except 128 to 159, where Windows-1252 puts printable symbols such as the euro sign.
The grid is split into six groups: control characters (0 to 31 and 127), printable ASCII (32 to 126), C1 controls (128 to 159), Latin-1 punctuation and symbols (160 to 191), and uppercase and lowercase accented letters (192 to 255). Each button carries its code in four bases:
- Decimal: the value in base 10, for example 65 for A.
- Hex: base 16 with a 0x prefix, for example 0x41.
- Octal: base 8 written with three digits, for example 101.
- Binary: the 8-bit pattern, for example 01000001.
Control characters show their standard abbreviation (NUL, LF, ESC and so on) because they have no visible glyph, and clicking one copies that abbreviation, not the invisible control code.
Control characters (0-31 and 127)
These non-printing codes were designed for teletype and data transmission control. Most have no visual representation; the table shows their traditional two- or three-letter abbreviations.
| Dec | Hex | Abbr | Name | Common use |
|---|---|---|---|---|
| 0 | 0x00 | NUL | Null | String terminator in C |
| 7 | 0x07 | BEL | Bell | Audible alert |
| 8 | 0x08 | BS | Backspace | Move cursor left |
| 9 | 0x09 | HT | Horizontal Tab | Tab stop |
| 10 | 0x0A | LF | Line Feed | New line (Unix) |
| 13 | 0x0D | CR | Carriage Return | New line (Mac classic), part of CRLF (Windows) |
| 27 | 0x1B | ESC | Escape | ANSI escape sequences |
| 127 | 0x7F | DEL | Delete | Rubout character |
Printable ASCII (32-126)
These 95 codes are the characters you can type on a US keyboard. Code 32 is the space character. Codes 48-57 are digits 0-9, 65-90 are uppercase A-Z, 97-122 are lowercase a-z.
| Dec | Hex | Char | HTML | Name |
|---|---|---|---|---|
| 32 | 0x20 |   | Space | |
| 33 | 0x21 | ! | ! | Exclamation Mark |
| 34 | 0x22 | " | " | Quotation Mark |
| 38 | 0x26 | & | & | Ampersand |
| 60 | 0x3C | < | < | Less-Than Sign |
| 62 | 0x3E | > | > | Greater-Than Sign |
| 64 | 0x40 | @ | @ | Commercial At |
| 96 | 0x60 | ` | ` | Grave Accent |
| 126 | 0x7E | ~ | ~ | Tilde |
Extended Latin-1 (128-255)
Codes 128-159 are additional control codes in ISO-8859-1 (C1 controls). Codes 160-255 add accented letters, currency symbols, and punctuation used in Western European languages. The table below shows a selection of the most used symbols; the grid above has all 96.
| Dec | Hex | Char | HTML | Name |
|---|---|---|---|---|
| 160 | 0xA0 | | No-Break Space | |
| 161 | 0xA1 | ¡ | ¡ | Inverted Exclamation Mark |
| 163 | 0xA3 | £ | £ | Pound Sign |
| 167 | 0xA7 | § | § | Section Sign |
| 169 | 0xA9 | © | © | Copyright Sign |
| 174 | 0xAE | ® | ® | Registered Sign |
| 176 | 0xB0 | ° | ° | Degree Sign |
| 181 | 0xB5 | µ | µ | Micro Sign |
| 183 | 0xB7 | · | · | Middle Dot |
| 191 | 0xBF | ¿ | ¿ | Inverted Question Mark |
| 215 | 0xD7 | × | × | Multiplication Sign |
| 247 | 0xF7 | ÷ | ÷ | Division Sign |
Typing ASCII codes on different systems
Windows: hold Alt and type the decimal code on the numeric keypad, for example Alt+0169 for the copyright sign. A leading zero selects the Windows ANSI code page; without it, the result depends on the active OEM code page (usually CP437 or CP850).
Mac: use Option key combinations for common symbols (for example Option+G for the copyright sign on a US layout). For arbitrary Unicode, enable Unicode Hex Input in System Settings, then hold Option and type the four-digit hex code.
Linux (GTK and Qt apps): press Ctrl+Shift+U, release, type the hex code, then press Enter or Space.
HTML: use named entities (for example ©) or numeric references: decimal © or hexadecimal ©.
Common pitfalls
- Extended ASCII is not universal. Codes 128-255 vary by code page (Windows-1252, ISO-8859-1, CP437, MacRoman, etc.). Always declare your encoding (e.g.,
<meta charset="utf-8">) and prefer UTF-8. - Control characters in text files. CR (13) and LF (10) line endings differ across platforms. Use tools like
dos2unixor editor settings to normalize. - HTML entities vs. raw characters. In UTF-8 documents you can paste © directly; entities are only required for characters that have special meaning in HTML (<, >, &, ") or when the document encoding cannot represent the character.
- Null bytes in strings. Many languages treat NUL (0) as a string terminator. Embedding it can cause truncation or security issues.
Worked examples
| Example | Input | Result |
|---|---|---|
| Find the code for the letter A (try 65) | This input could not be calculated. | |
| Look up a symbol by name (try copyright) | This input could not be calculated. | |
| Find control characters by hex (try 0x0A) | This input could not be calculated. |
FAQ
What is the difference between ASCII and extended ASCII?
Standard ASCII defines 128 codes (0-127). Extended ASCII refers to any 8-bit superset that adds 128 more codes (128-255). The most common extended set is ISO-8859-1 (Latin-1), which this table uses for codes 128-255.
Why do some extended characters show as boxes or question marks?
Your font lacks a glyph for that code point, or the page encoding does not match the byte values. Use a font with broad Unicode coverage (e.g., DejaVu Sans, Noto Sans) and ensure the document is served as UTF-8.
How do I type a character from its decimal code on Windows?
Hold Alt and type the decimal number on the numeric keypad with a leading zero (e.g., Alt+0169 for ©). Without the leading zero, the result depends on the active OEM code page (usually CP437).
What are the HTML entities for reserved characters?
Less-than: < or <. Greater-than: > or >. Ampersand: & or &. Quotation mark: " or ". Apostrophe: ' or ' (not defined in HTML4 but valid in HTML5 and XML).
Is this table the same as Unicode?
Codes 0-255 in this table match the first 256 Unicode code points (U+0000 to U+00FF) exactly. Unicode continues far beyond 255 to over 140,000 characters covering virtually all writing systems.
Can I use control characters like BEL (7) in modern web pages?
Browsers ignore most control characters in HTML. BEL does not produce a sound. For audible alerts, use the Web Audio API or <audio>. For formatting, use CSS.
Why does the table show abbreviations like NUL, SOH for control characters?
Control characters have no printable glyph. The two- or three-letter abbreviations (from ASCII and ISO 6429) are the standard way to represent them visually in documentation and debugging output.