Developer Runs locally Ready to use Built-in examples No tracking

ASCII Table

The full standard ASCII table from 0 to 127, searchable by character, decimal, hex or control code abbreviation, with decimal, hex, octal and binary representations.

The ASCII table is where representing text inside a computer begins: standard ASCII uses 7 bits for 128 code points, of which 0 to 31 and 127 are non-printable control characters — newline, tab, backspace and the rest — while 32 to 126 are printable. It comes up when looking up a code point, confirming an encoding, or checking a protocol payload against its specification.

One thing to keep in mind is that ASCII covers only English letters and common symbols; CJK text and other scripts belong to Unicode and UTF-8 instead. The values met most often while debugging are 0x0A for line feed, 0x0D for carriage return and 0x41 for the letter A, and the hexadecimal, decimal, octal and binary columns here all describe the same code point.

    How to use

    1. Search by character, decimal, hex or control-code abbreviation.
    2. Read the decimal, hex, octal and binary forms.
    3. Check whether a code point is printable or a control character.
    4. Remember ASCII stops at 127; anything beyond it needs Unicode.

    How it works

    How to look things up

    Type any form into the search box: a single character (A), a decimal code (65), two hex digits (4A), or a control-character abbreviation (LF). The table filters live, and an unique match shows the character's full encoding details above it.

    Search priority

    Matching follows a fixed priority: a single printable character first; then 1–3 pure digits parse as decimal; then a two-character string with letters parses as hex; finally control-character abbreviations match by prefix. So entering 65 finds the character A, not hex 0x65.

    Using the four number bases

    Decimal serves everyday lookups and code assignments; hex dominates memory and protocol-packet debugging; octal appears in Unix file permissions and old escape notations (\101 is A); binary helps inspect individual bits.

    What control characters are

    0–31 and 127 are invisible characters that control device behavior rather than display: LF (10) newline, CR (13) carriage return, HT (9) horizontal tab, BEL (7) bell. Collectively they're the control characters, listed with standard abbreviations and meanings.

    Code example

    JavaScript Getting code points and converting back

    // Character to code point
    "A".charCodeAt(0);         // 65
    "A".codePointAt(0);        // 65
    
    // Code point to character
    String.fromCharCode(65);   // "A"
    String.fromCharCode(0x4a); // "J"
    
    // Bytes in UTF-8 (non-ASCII characters take multiple bytes)
    new TextEncoder().encode("€"); // Uint8Array(3) [226, 130, 172]
    

    Shell Inspecting code points on the command line

    # Character to hex code point
    printf "%x\n" "'A"        # 41
    
    # Octal escape (101 octal = 65 = A)
    printf "\101\n"
    
    # Show invisible characters (newline, tab)
    printf "a\tb\n" | cat -A
    

    FAQ

    Why does the table stop at 127 instead of 255?

    0–127 is standard ASCII, interpreted identically everywhere. 128–255 is the extension range whose meaning depends on the code page — Windows-1252, ISO-8859-1 and GBK all read the same code value differently — so a single table would mislead. Use the encoding-converter tool for those.

    What is the ASCII code of uppercase A?

    Decimal 65 — hex 0x41, octal 101, binary 01000001. Uppercase A–Z runs 65–90 consecutively, lowercase a–z 97–122, digits 0–9 48–57.

    What's the difference between newline and carriage return?

    CR (13) mimics a typewriter's carriage sliding back; LF (10) advances the paper one line. Unix and Linux use LF alone; Windows uses CR+LF; classic Mac used CR alone — the origin of stray ^M characters in cross-platform text files.

    Do Chinese characters have ASCII codes?

    No. ASCII has only 128 slots — far too few for Han characters, which need multi-byte encodings like GBK, GB18030 or UTF-8 (typically 2–3 bytes). Inspect their bytes in hex with the encoding-converter tool.

    Is the space a printable character?

    Yes — space (32) is printable but displays nothing, so this tool labels it separately as "blank" and shows the word "space" in the character column rather than what looks like missing data.

    Entering 41 found a right paren — why not A?

    Search parses pure digits as decimal first, and 41 is ')' in decimal; A's hex 0x41 requires entering 4A with a letter to take the hex branch. Pure-numeric input is far more often decimal in practice.

    Are control characters still relevant?

    Very. Terminals drive color and cursor with ESC (27)-led escape sequences; serial protocols mark frame boundaries with STX/ETX; DEL (127) once erased punched-paper mistakes. In everyday programming you'll mostly meet LF, CR and HT.

    Why can't I look up emoji or Chinese characters?

    They're outside standard ASCII: emoji live around U+1F300 and common Han characters in U+4E00–9FFF, both far beyond 127. The tool flags such input as out of range and points you to the encoding converter for the UTF-8 bytes.