ASCII Table

ASCII Table

All 128 characters: dec, hex, binary & HTML

128 characters
DecHexBinaryHTMLCharDescription
Tip: click any printable row to copy its character A = 65 · a = 97 · 0 = 48 · Space = 32 · Enter (LF) = 10 · Tab = 9 · Esc = 27
FAQ

Frequently Asked Questions

What is ASCII?

ASCII, the American Standard Code for Information Interchange, assigns a number from 0 to 127 to each English letter, digit, punctuation mark and control code. It is the foundation almost every later encoding was built on, which is why the first 128 characters of UTF-8 are identical to ASCII.

What is the ASCII code for A?

Uppercase A is 65 in decimal, 41 in hexadecimal and 01000001 in binary. Lowercase a is 97. The 32-place gap between the two is deliberate: flipping a single bit switches a letter between upper and lower case.

What are control characters?

The first 32 codes, 0 to 31, are not printable, because they were commands for teleprinters and terminals. A few are still in daily use: 9 is tab, 10 is line feed, 13 is carriage return and 27 is escape. Filter the table to "control" to see them all.

What is the difference between ASCII, extended ASCII and Unicode?

Standard ASCII covers codes 0 to 127. Extended ASCII adds 128 to 255, but different systems filled that range with different characters, which is why old files can look garbled. Unicode replaced the mess with one code point for every character in every language, and kept 0 to 127 identical to ASCII for compatibility.

How do I type a character from its ASCII code?

In HTML use a numeric entity such as A for A. In most programming languages a function such as chr() or String.fromCharCode() does the same. On Windows you can hold Alt and type the decimal code on the numeric keypad.

Is the ASCII table free to use?

Yes. Completely free with no sign-up, and it works offline once the page has loaded. Click any row to copy the character straight to your clipboard.