ASCII Table Reference

Look up all 128 ASCII codes in decimal, hex, octal, binary, HTML entity and escape form.

    A

    65 โ€” Latin capital letter A

    Uppercase letter

    Decimal
    65
    Hex
    0x41
    Octal
    101
    Binary
    01000001
    Unicode
    U+0041
    HTML entity
    A
    Escape (C / JS)
    \x41
    Caret notation
    โ€”

    Uppercase letter A. Add 32 (0x20) to any uppercase letter code to get its lowercase twin, so a is 97 (0x61).

    No uploads. Your files stay on your device.

    Free forever, no sign-up, no cookies. Buy me a coffee

    How it works

    This is the complete 7-bit US-ASCII character set as defined by ANSI X3.4-1986 and published as RFC 20 / STD 80: all 128 codes, from NUL (0) to DEL (127). Type a decimal number like 65, a hex code like 0x41, a single character like A, an escape like \n, or a name like carriage return and the matching rows appear as you type. Pick a row to see that code in decimal, hex, octal and binary, plus its Unicode code point, HTML entity, C/JavaScript escape and caret notation. Every row also has its own Copy button, and Download all as CSV exports the whole table.

    A few notes on the escapes: \a (bell, 7) and \? (question mark) are C-only, and \e for escape (27) is a GNU/shell extension, so the table shows the \xNN form that works in both C and JavaScript. Codes 0โ€“31 and 127 are control codes with no printed glyph, so the table shows the Unicode โ€œcontrol pictureโ€ symbol and the caret notation a terminal would use (Ctrl+letter). The whole dataset is bundled into this page, so lookups work offline and nothing you search for leaves your browser.

    Frequently asked questions

    What is the ASCII code for A?

    Capital A is decimal 65, which is 0x41 in hex, 101 in octal and 01000001 in binary, and it is the Unicode code point U+0041. Lowercase a sits exactly 32 places higher at decimal 97 (0x61), which is why flipping bit 5 of a letter switches its case. Search 65, 0x41 or A on this page to see every representation side by side.

    How many characters are in the ASCII table?

    Standard US-ASCII is a 7-bit code with exactly 128 characters, numbered 0 to 127, as defined by ANSI X3.4-1986 and published as RFC 20 (Internet Standard STD 80). Codes 0 to 31 and 127 are non-printing control codes, 32 is the space, and 33 to 126 are the printable letters, digits, punctuation and symbols. Tables that show 256 characters are showing an 8-bit extension such as Latin-1 or code page 437, which is not ASCII.

    What are ASCII control characters used for?

    The 33 control codes were designed to steer teleprinters and serial links rather than print anything. Several are still everywhere: 9 is tab, 10 is line feed, 13 is carriage return, 27 is the escape that starts every ANSI terminal colour sequence, and 3, 4, 26 and 19 are what Ctrl+C, Ctrl+D, Ctrl+Z and Ctrl+S send. This page shows each one with its caret notation, so you can see which key combination produces it, plus a portable escape sequence you can paste into C or JavaScript.

    Report a bug