| DEC β | HEX β | OCT | BIN | CHAR | NAME | HTML | CSS ESC | COPY |
|---|
// browse all 128 ascii characters instantly
View all 128 ASCII characters with decimal, hex, octal, binary, and HTML entity values. Filter by category, search by character or code, copy any value instantly.
| DEC β | HEX β | OCT | BIN | CHAR | NAME | HTML | CSS ESC | COPY |
|---|
Scroll through all 128 ASCII characters sorted by decimal code by default.
Use the category buttons to narrow results, or type in the search box to find a specific character, name, or code.
Click any copy button in a row to copy that specific representation β dec, hex, char, or HTML entity β to your clipboard.
The ASCII Table Viewer is a complete reference for all 128 characters defined by the ASCII (American Standard Code for Information Interchange) standard. Each character is shown with its decimal, hexadecimal, octal, binary, HTML entity, and CSS escape representations. Non-printable control characters include their standard abbreviation and description.
ASCII (American Standard Code for Information Interchange) is a character encoding standard first published in 1963. It defines 128 characters using 7-bit integer values (0β127), including 33 non-printable control characters and 95 printable characters such as letters, digits, and punctuation.
Control characters are non-printable characters originally designed to control teletype machines and early terminals. Examples include NUL (null), LF (line feed), CR (carriage return), TAB (horizontal tab), ESC (escape), and DEL (delete). While most are invisible, they still play important roles in text encoding and terminal protocols.
You can represent any ASCII character in HTML using decimal entities like A (for "A") or hex entities like A. For common symbols, named entities exist: & for &, < for <, > for >, etc. This is useful when you need to include special characters in HTML without them being interpreted as markup.
ASCII covers only 128 characters (English letters, digits, basic punctuation, and control codes). Unicode is a superset of ASCII β the first 128 Unicode code points (U+0000 to U+007F) are identical to ASCII β but Unicode extends to over 143,000 characters covering virtually all of the world's writing systems, emoji, and special symbols.
Each row in the table shows all four numeric bases simultaneously. Decimal 65 = hex 41 = octal 101 = binary 01000001. You can also use dedicated conversion tools, or in most programming languages: hex(65) in Python returns '0x41', and (65).toString(2) in JavaScript returns '1000001'.
CSS escape codes (like \0041 for "A") let you safely include any Unicode character in CSS strings, identifiers, or content values β particularly useful when targeting characters that would otherwise break CSS syntax, such as quotes, backslashes, or non-ASCII characters in class names or pseudo-element content.
Space (ASCII 32, hex 0x20) is technically a printable character but often treated specially. In HTML, a raw space is collapsed; you need (non-breaking space) or   to preserve it in certain contexts. In URLs it becomes %20, and in programming languages the escape sequence is often \x20 or simply a space literal.
Yes. The entire ASCII table is generated and processed entirely in your browser using JavaScript. No characters, searches, or interactions are ever sent to any server. The tool works fully offline once the page is loaded.
An ASCII table is a reference chart listing all 128 characters defined by the ASCII standard, each paired with their numeric codes in various bases. ASCII β short for American Standard Code for Information Interchange β was developed in the early 1960s as a way to standardize character encoding across different computer systems and telecommunications equipment. Before ASCII, each manufacturer used their own proprietary encoding, making communication between devices nearly impossible.
The standard was first published in 1963 and revised several times, with the most widely used version being the 1968 revision (ANSI X3.4-1968). It maps integers 0 through 127 to specific characters, using 7 bits of storage β hence the 128-character limit (2β· = 128).
π‘ Looking for web development assets for your next project? MonsterONE offers unlimited downloads of templates, UI kits, icons, and developer resources β worth checking out.
The 128 ASCII characters are divided into two broad groups:
A useful pattern to remember: the difference between the codes for uppercase and lowercase letters is exactly 32 (or 0x20 in hex). So you can convert between cases by simply adding or subtracting 32, or toggling bit 5 of the byte β a trick used frequently in low-level programming.
Every ASCII character can be represented in four numeric bases, each useful in different contexts:
0x41 in C/Python, \x41 in strings, U+0041 in Unicode.\101 for "A"). Less common today, but still appears in legacy code and POSIX documentation.When writing HTML, certain characters must be escaped to prevent the browser from interpreting them as markup. The most critical ones are:
& β ampersand (&)< β less-than (<)> β greater-than (>)" β double quote (")' β apostrophe/single quote (')Beyond these named entities, any ASCII character can be represented using its decimal code (A) or hex code (A) as a numeric character reference. This technique is also valid for all Unicode characters, making it the most universal approach to encoding special characters in HTML.
Although most control characters were designed for teletype machines that no longer exist, many remain in active use today:
\0). Vital in low-level programming.\r\n). A common source of cross-platform text file issues.Most programming languages provide direct ways to work with ASCII codes. In Python, ord('A') returns 65 and chr(65) returns 'A'. JavaScript offers 'A'.charCodeAt(0) and String.fromCharCode(65). In C, characters are just small integers β 'A' == 65 is true, and you can do arithmetic directly on them. This close relationship between characters and integers is foundational to understanding string manipulation, sorting algorithms, and text processing.
Standard ASCII uses only 7 bits, leaving bit 8 free. Various "extended ASCII" encodings (like ISO 8859-1 / Latin-1 and Windows-1252) used this 8th bit to add 128 more characters (128β255), covering accented European characters. However, these extensions were not standardized across systems, leading to encoding incompatibilities.
Unicode solves this definitively. The first 128 Unicode code points (U+0000 to U+007F) are byte-for-byte identical to ASCII. UTF-8, the dominant web encoding, stores these characters in a single byte, making it fully backward-compatible with ASCII. Any valid ASCII document is also valid UTF-8.
Whether you're a frontend developer reaching for the right HTML entity, a systems programmer looking up escape sequences, a student learning about character encoding, or a DevOps engineer debugging a regex that behaves unexpectedly on certain characters β having an instant, searchable, filterable ASCII reference saves time and reduces errors. This viewer puts all 128 characters and their representations in one place with instant copy functionality, no installation required.