ASCII Table (Decimal, Hex, Octal, Binary)
The complete ASCII table covering all 128 codes (0 to 127). See the decimal, hexadecimal, octal and 8-bit binary value of every character, plus control-code names. Search by number, hex, character or name.
How to use the ASCII table
- Type a decimal number, hex value, character or name in the search box.
- Read the matching rows with decimal, hex, octal and binary columns.
- Copy any value you need straight from the row.
Examples
Look up the letter A
65
A β hex 41, octal 101, binary 01000001
Find the newline control code
LF
10 β line feed (newline), hex 0A
Frequently asked questions
What is the ASCII code for the letter A?
Uppercase A is decimal 65, hex 41, octal 101 and binary 01000001. Lowercase a is decimal 97.
What are ASCII control characters?
Codes 0 to 31 plus 127 are non-printing control characters such as NUL, tab (HT, 9), line feed (LF, 10) and carriage return (CR, 13).
How many characters are in the ASCII table?
Standard ASCII defines 128 codes, from 0 to 127. Codes 128 to 255 belong to extended sets like Latin-1, which are not standard ASCII.
What is the difference between LF and CR?
Line feed (LF, 10) moves down a line and is the Unix newline. Carriage return (CR, 13) returns to the start of the line. Windows uses CR then LF.
How do I convert an ASCII code to hex?
Search for the decimal code or the character and read the hex column. For example, the space is decimal 32 and hex 20.
Related tools
HTML Entity Encoder
Encode text to HTML entities online. Escape &, <, >, " and ' so markup renders safely, with an option to convert non-ASCII characters too. Free and private.
Base64 Encode
Encode text to Base64 online. UTF-8 safe, handles emoji and accents, with an optional URL-safe (base64url) mode. Runs in your browser, nothing uploaded.
URL Encoder
Encode or decode URLs and query strings online. Percent-encode a value, escape a full URL, or decode back to plain text. Free, fast and private.
.env to JSON
Convert a .env file to JSON, or JSON back to .env. Parses KEY=value lines, comments, quotes and export. Runs entirely in your browser.
Aspect Ratio Box Generator
Generate CSS for a responsive aspect-ratio container. Use the modern aspect-ratio property or the padding-top fallback, then copy the ready code.
Aspect Ratio Calculator
Calculate aspect ratios fast. Enter a ratio like 16:9 and one dimension to get the other, or enter width and height to simplify the ratio.