{ ASCII Table Viewer }

// 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.

βŒ•
Showing 128 characters Β·
DEC ↕ HEX ↕ OCT BIN CHAR NAME HTML CSS ESC COPY

HOW TO USE

  1. 01
    Browse the Table

    Scroll through all 128 ASCII characters sorted by decimal code by default.

  2. 02
    Filter or Search

    Use the category buttons to narrow results, or type in the search box to find a specific character, name, or code.

  3. 03
    Copy Values

    Click any copy button in a row to copy that specific representation β€” dec, hex, char, or HTML entity β€” to your clipboard.

FEATURES

All 128 characters Dec / Hex / Oct / Bin HTML entities CSS escape codes Search & filter Table + Grid view One-click copy 100% browser-based

USE CASES

  • πŸ”§ Looking up escape sequences in HTML or CSS
  • πŸ”§ Debugging character encoding issues
  • πŸ”§ Learning low-level character representations
  • πŸ”§ Reference for systems and embedded programming

WHAT IS THIS?

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.

RELATED TOOLS

FREQUENTLY ASKED QUESTIONS

What is the ASCII standard?

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.

What are control characters (0–31 and 127)?

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.

How do I use ASCII codes in HTML?

You can represent any ASCII character in HTML using decimal entities like &#65; (for "A") or hex entities like &#x41;. For common symbols, named entities exist: &amp; for &, &lt; for <, &gt; for >, etc. This is useful when you need to include special characters in HTML without them being interpreted as markup.

What is the difference between ASCII and Unicode?

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.

How do I convert decimal to hex or binary?

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'.

What are CSS escape codes used for?

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.

Why does the space character have so many representations?

Space (ASCII 32, hex 0x20) is technically a printable character but often treated specially. In HTML, a raw space is collapsed; you need &nbsp; (non-breaking space) or &#32; 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.

Is this tool completely private and offline?

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.

What Is an ASCII Table?

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 Structure of the ASCII Character Set

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.

Numeric Representations: Decimal, Hex, Octal, and Binary

Every ASCII character can be represented in four numeric bases, each useful in different contexts:

HTML Entities and Web Development

When writing HTML, certain characters must be escaped to prevent the browser from interpreting them as markup. The most critical ones are:

Beyond these named entities, any ASCII character can be represented using its decimal code (&#65;) or hex code (&#x41;) 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.

Control Characters and Their Modern Relevance

Although most control characters were designed for teletype machines that no longer exist, many remain in active use today:

ASCII in Programming Languages

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.

Extended ASCII and Unicode

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.

Why This Tool Is Useful

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.

β˜•