The ASCII table shows all 128 ASCII character codes (0–127) with their decimal, hexadecimal, octal, binary, HTML entity, and character representations. ASCII is the foundational character encoding for computers — every letter, digit, and symbol in English text maps to a number 0-127. Click any row to see full details and copy representations.
Quick Converter
| Dec | Hex | Oct | Bin | Char | HTML | Name / Description |
|---|
No characters match your search
How to Use the ASCII Table
The ASCII table is one of the most fundamental references in computing. Every developer eventually needs to look up a character code — whether to understand a binary protocol, write a character escape in code, or decode raw byte data. This interactive ASCII table lets you quickly find any character and see all its representations.
Finding a Character
Use the Quick Converter at the top to enter any representation and immediately see all others. Type a character to get its code, type a decimal number to get the character, or type a hex value (like 0x41 or just 41) to look up by hex code. Use the search bar to filter the full table by decimal, hex, binary, or character name.
Reading the Color-Coded Table
Characters are color-coded for quick identification: red for control characters (0–31) and DEL (127) — non-printable, blue for digits (48–57), green for uppercase letters (65–90), teal for lowercase letters (97–122), and purple for symbols and punctuation.
Control Characters (0–31)
Control characters are non-printable characters that originated in the teletype era. The most important in modern programming: 0 (NUL — null terminator in C strings), 9 (HT — horizontal tab, \\t), 10 (LF — line feed, \\n, Unix newline), 13 (CR — carriage return, \\r, part of Windows \\r\\n), and 27 (ESC — escape, used in ANSI escape codes for terminal colors).
ASCII in Programming
In JavaScript: 'A'.charCodeAt(0) returns 65, String.fromCharCode(65) returns 'A'. In Python: ord('A') returns 65, chr(65) returns 'A'. In C: you can cast directly — (int)'A' is 65. The classic trick: lowercase letter = uppercase letter + 32 (since lowercase 'a' = 97 = 65 + 32).
FAQ
Is this ASCII table free?
Yes, completely free. The full ASCII reference is embedded in the page and works offline. No account required.
What is ASCII?
ASCII (American Standard Code for Information Interchange) is a character encoding standard that assigns numbers 0-127 to letters, digits, punctuation marks, and control characters. Published in 1963, it became the basis for most modern character encodings including Unicode, which extends ASCII with thousands of additional characters.
What are the ASCII control characters (0-31)?
Characters 0-31 are control characters — non-printable codes that originally controlled teleprinters and terminals. Common ones: 9 (Tab), 10 (Line Feed / newline in Unix), 13 (Carriage Return), 27 (Escape), 32 (Space). In programming, you'll frequently encounter \n (10), \r (13), \t (9), and \0 (0, null terminator).
How do I use ASCII codes in HTML?
Use HTML entities: decimal format A for A, or hex format A for A. Named entities work for special characters like & for &, < for <, > for >, " for ". For non-ASCII Unicode characters, HTML5 supports the full range: ☃ for ☃.
What is the difference between ASCII and Unicode?
ASCII uses 7 bits to encode 128 characters (0-127), covering only English letters, digits, and basic punctuation. Unicode supports over 1 million code points covering all world languages, emoji, mathematical symbols, and more. UTF-8, the most common Unicode encoding, is backward-compatible with ASCII — the first 128 UTF-8 code points are identical to ASCII.
How do I convert a character to its ASCII code in JavaScript?
'A'.charCodeAt(0) returns 65. String.fromCharCode(65) returns 'A'. In modern JS, use 'A'.codePointAt(0) for full Unicode support. In Python: ord('A') returns 65, chr(65) returns 'A'. In C: (int)'A' returns 65.