Developer tools

ASCII Table

ASCII Table and Character Codes

All 128 ASCII characters (plus 128–255) with decimal, hex, octal, binary, HTML entities and control codes.

About this tool

About ASCII Table

Look up any of the 128 ASCII characters with every notation side by side: decimal, hexadecimal, octal, 8-bit binary, the character itself, and its HTML entity. Control characters 0–31 and 127 show their abbreviation and full name (NUL, LF, CR, ESC, DEL…), caret notation such as ^C and the C escape sequence such as \n, so the table is just as useful for reading hex dumps and serial protocols as for web work. Search by character, number, 0x41 or 41h style hex, an entity like &, or a name such as tab or escape. Click a row to see its Unicode code point, JSON string escape, URL encoding and all HTML forms, each with a copy button. Turn on Extended 128–255 and choose Windows-1252 or ISO-8859-1, which differ in bytes 128–159. A converter turns text into decimal, hex, octal or binary codes and back. Everything runs in the page.

Built and maintained by Abhi JainUpdated

How to Use the ASCII Table

  1. 1

    Search or scroll

    Type a character, number, hex code or name into the search box, or scroll the table.

  2. 2

    Open the details

    Click a row to see every notation for that character, each with a copy button.

  3. 3

    Convert text

    Use Text ⇄ codes to turn a string into Dec, Hex, Oct or Bin codes, or switch to Codes → text to decode them.

ASCII Table: questions and answers

What is the ASCII code for A?

Uppercase A is 65 in decimal, 0x41 in hex, 101 in octal and 01000001 in binary. Lowercase a is 97 (0x61): each lowercase letter is exactly 32 more than its uppercase form.

How many characters are in ASCII?

128, numbered 0–127: 33 control characters (0–31 and 127) and 95 printable characters including the space. Codes 128–255 are not ASCII; they belong to 8-bit extensions such as ISO-8859-1 and Windows-1252.

What is extended ASCII?

A loose name for 8-bit character sets that keep ASCII in 0–127 and add 128 more characters. ISO-8859-1 (Latin-1) and Windows-1252 are the most common on the web; they agree on 160–255 but Windows-1252 puts printable characters such as €, curly quotes and dashes in 128–159.

What is the difference between CR and LF?

LF (line feed, 10, \n) ends lines on Linux and macOS. Windows uses CR followed by LF (13 then 10, \r\n). Old Mac OS used CR alone. Mixed line endings are a common cause of noisy diffs.

Is ASCII the same as UTF-8?

UTF-8 encodes the first 128 Unicode code points with the same single bytes as ASCII, so any ASCII text is already valid UTF-8. Characters beyond 127 take two to four bytes in UTF-8.