ASCII Table
Searchable ASCII table with decimal, hex, octal, binary, and HTML entity codes for all 128 characters.
| Char | Dec | Hex | Oct | Bin | HTML | Name |
|---|
No characters match your search.
About this tool
ASCII (American Standard Code for Information Interchange) is a 7-bit character encoding that assigns the numbers 0–127 to 128 characters: 33 control codes (NUL, BEL, ESC, CR, LF…) and 95 printable characters (letters, digits, punctuation, space). It is the foundation of every modern text format — UTF-8, HTML, JSON, and URL encoding are all designed to be backward-compatible with it.
This table lets you look up any ASCII character's codes in every common base at once: decimal (e.g. 65 = A), hexadecimal (0x41), octal (101), 7-bit binary (1000001), and the HTML entity (A). Search by character, code, or name — typing tab finds HT (Horizontal Tab, decimal 9), typing 64 finds the at sign. Use the category buttons to narrow to control characters, letters, digits, or symbols.
Typical use: decoding a byte dump, building a lexer or parser, writing regex for specific character ranges, debugging encoding issues, or looking up the escape sequence for a control character in a config file.
FAQ
Why are characters 0–31 and 127 shown as abbreviations instead of symbols? ›
Those are control characters — non-printable codes originally designed for teletype and terminal control. NUL (0) is the string terminator in C; BEL (7) rings the bell; BS (8) is backspace; HT (9) is tab; LF (10) is the Unix newline; CR (13) is the carriage return; ESC (27) starts escape sequences; DEL (127) is delete. They have no visible glyph, so the table shows their standard abbreviation.
What is the difference between decimal 10 and decimal 13? ›
Decimal 10 is LF (Line Feed) and decimal 13 is CR (Carriage Return). Unix systems use a single LF to end lines; classic Mac OS used a single CR; Windows uses the pair CRLF. This is why files transferred between systems sometimes show extra blank lines or missing line breaks.
How do I type an ASCII character directly from its code? ›
On Windows, hold Alt and type the decimal code on the numeric keypad (Alt+65 = A). On Linux in many apps, type Ctrl+Shift+U, then the hex code, then Enter. On macOS, most layout editors use Option-based shortcuts instead. The HTML entity column gives you the string to paste into markup regardless of platform.
Is this the full Unicode table? ›
No — this covers the original 7-bit ASCII range (0–127). Unicode extends far beyond it to over 140,000 characters across virtually every writing system. For characters above U+007F (é, →, 😊) use the Unicode Inspector tool, which shows code point, UTF-8/UTF-16 encodings, and name.
What does the HTML entity column mean? ›
It shows the numeric character reference you can paste into HTML or XML to represent that character unambiguously. For example &#60; produces < and &#62; produces >. Named entities like &lt; and &gt; are shorthand aliases for those same code points.