Text & developer tools
ASCII table & converter.
Find any ASCII character and see its decimal, hexadecimal, octal, binary and HTML forms. Search all 128 codes or convert one value instantly.
Convert one character
Character code
Enter a character or code.
Complete ASCII character table
Filter by character, name, abbreviation, decimal, hex, octal or binary. Control codes display their standard abbreviations instead of an invisible character.
| Char | Name | Dec | Hex | Octal | Binary | HTML |
|---|
How to read the ASCII table
ASCII is a 7-bit character set, so every code is a number from 0 through 127. Decimal 65, hexadecimal 0x41, octal 0o101 and binary 01000001 are four ways to write the same value: uppercase A.
Codes 0–31 and 127 are control characters created for terminals and data transmission. Code 32 is space. Codes 33–126 are printable punctuation, digits and English letters. UTF-8 preserves these first 128 values exactly, then uses multiple bytes for other Unicode characters.
Primary sources: RFC 20, ASCII format for network interchange, and RFC 3629, UTF-8. Values checked 3 October 2026.
The ASCII table in four ranges
The 128 codes fall into four ranges that are worth memorising, because almost every conversion you will do by hand comes down to one of them. Everything below can be confirmed in the filterable table above.
| Range (decimal) | Range (hex) | What lives there |
|---|---|---|
| 0 to 31 | 0x00 to 0x1F | Control codes such as NUL (0), BEL (7), tab (9), line feed (10), carriage return (13) and ESC (27) |
| 32 | 0x20 | Space |
| 33 to 126 | 0x21 to 0x7E | Printable punctuation, the digits 0 to 9 (48 to 57), upper-case A to Z (65 to 90) and lower-case a to z (97 to 122) |
| 127 | 0x7F | DEL, the last code in the table |
How to convert by hand
Hexadecimal is the most convenient way to read ASCII, because the 7-bit code splits neatly into a high digit (0 to 7) and a low digit (0 to F). RFC 20 lays the code out the same way, as a table of columns and rows. The column is the value of the top three bits and the row is the value of the bottom four, so the capital letter K sits in column 4, row 11, which is binary 1001011, hexadecimal 0x4B and decimal 75.
Worked example: the lower-case letter w
People often search for "w in hexadecimal". The letter w is decimal 119. Divide by 16: 119 = 7 × 16 + 7, so the hexadecimal digits are 7 and 7, giving 0x77. In binary that is 0111 0111, and in octal 0o167. You can confirm it by typing w into the converter.
Worked example: turning a digit character into a number
The character 5 is not the number 5. It is code 53 (0x35). The ten digit characters run from 48 (0x30) to 57 (0x39), so subtracting 48 recovers the digit. Programs that parse numbers from text rely on this offset, and forgetting it is a classic source of off-by-48 bugs.
Worked example: switching case
Upper-case A is 65 (01000001) and lower-case a is 97 (01100001). They differ by exactly 32, which is a single bit: the bit worth 0x20. Every letter pair works the same way, so setting that bit lowers a letter and clearing it raises one. That is why 90 (Z) plus 32 gives 122 (z). It only applies to the letters A to Z; adding 32 to punctuation produces other symbols.
Control characters you will actually meet
- Line feed (10,
0x0A) ends a line on Unix, Linux and macOS. Carriage return (13,0x0D) followed by line feed is the Windows line ending. Mixed line endings are a common reason two files that look identical compare as different. - Tab (9,
0x09) is the horizontal tab. Spreadsheets and TSV files use it as a delimiter. - NUL (0) is the string terminator in C and a frequent sign that a file is binary and not text.
- ESC (27,
0x1B) starts terminal escape sequences such as colour codes. - DEL (127) sits apart from the others at the very end of the table. RFC 20 notes that in the strict sense DEL is not a control character, which is why this page lists the control range as 0 to 31 plus 127.
ASCII, extended ASCII, Unicode and UTF-8
ASCII defines exactly 128 characters. When people say "extended ASCII" they usually mean one of several 8-bit code pages that keep codes 0 to 127 and use 128 to 255 for different accented letters or symbols. There is no single extended ASCII, so the same byte can display as different characters depending on the page. Unicode replaced that situation with one numbering for every character, and UTF-8 is the common way to store it. RFC 3629 states that code points U+0000 to U+007F are stored as single bytes with the same values as 7-bit ASCII, so plain English ASCII text is also valid UTF-8, while any other character takes two to four bytes.
ASCII in HTML, URLs and code
HTML lets you write any character as a numeric character reference: < in decimal or < in hexadecimal both produce a less-than sign. The HTML column in the table shows the form to use. For percent-encoding in URLs, the escape is the percent sign followed by the two hexadecimal digits of the byte, so a space (0x20) becomes %20; the URL encoder does that for whole strings. To go from bytes to readable text and back for longer strings, use the ASCII to text converter or the binary converter.
What this tool does not do
It converts one character or code at a time and lists the 128 ASCII positions. It does not convert whole sentences, does not cover characters above 127, and does not guess which legacy code page a mystery byte belongs to. For characters outside ASCII, you need a Unicode lookup, not an ASCII table.
Frequently asked questions
What is the ASCII code for A?
Uppercase A is decimal 65, hex 0x41, octal 0o101 and binary 01000001. Lowercase a is decimal 97.
How many characters are in ASCII?
There are 128 positions, numbered 0 through 127. ASCII is 7-bit; so-called “extended ASCII” tables are separate 8-bit code pages and are not one universal extension.
Is ASCII the same as UTF-8?
No. UTF-8 encodes all Unicode characters, but byte values 0–127 match ASCII. That is why ordinary English ASCII text is already valid UTF-8.
What is w in hexadecimal?
Lowercase w is decimal 119, which is 0x77 in hexadecimal, 0o167 in octal and 01110111 in binary. Uppercase W is 87, or 0x57.
How do I convert a number to its ASCII character?
Enter the decimal value from 0 to 127, or a hexadecimal value starting with 0x, and the tool shows the matching character and its other forms. Values above 127 are outside ASCII and are rejected. Remember that the digit characters 0 to 9 are codes 48 to 57, not the numbers themselves.
What is the difference between uppercase and lowercase ASCII codes?
Each lowercase letter is exactly 32 higher than its uppercase partner, which is one bit (0x20). A is 65 and a is 97; Z is 90 and z is 122.
Which ASCII codes are not printable?
Codes 0 to 31 and code 127 (DEL) are control codes and do not draw a visible character. This table shows their standard abbreviations, such as LF for line feed and ESC for escape. Code 32 is the space, which is whitespace but is counted with the printable range.
Why do some characters show as question marks or odd symbols?
That usually means text was read with the wrong encoding. Bytes 0 to 127 are the same in ASCII and UTF-8, but bytes above 127 mean different things in different 8-bit code pages and in UTF-8, so accented letters are the first to break.
Sources
- RFC 20: ASCII format for network interchange (retrieved 2026-10)
- RFC 3629: UTF-8, a transformation format of ISO 10646 (retrieved 2026-10)
- Unicode Basic Latin chart (U+0000 to U+007F) (retrieved 2026-10)
- MDN Web Docs: Character reference (HTML) (retrieved 2026-10)