ASCII Code Converter

Convert between characters and ASCII codes instantly. Look up decimal, hexadecimal, binary, and octal values for any character.
Client-Side Only Instant Lookup No Signup Required

Character to Code

Code to Character

ASCII Ranges Quick Reference

Printable ASCII Characters

Char Dec Hex Binary Oct HTML Description

What is ASCII?

ASCII (American Standard Code for Information Interchange) is a character encoding standard created in 1963. It assigns numeric codes (0–127) to 128 characters: English letters, digits, punctuation marks, and control characters. ASCII is the foundation of virtually all modern text encoding — UTF-8, the dominant encoding on the web, is fully backward-compatible with ASCII.

Every time you type text on a computer, each character is stored as a number. An ASCII code converter lets you see those numbers in different formats: decimal (base-10), hexadecimal (base-16), binary (base-2), and octal (base-8).

For a complete reference of all 128 characters, see our full ASCII table. To convert entire strings rather than individual characters, use the Hex to ASCII converter or the Text to Hex converter.

Frequently Asked Questions

What is an ASCII code converter?
An ASCII code converter translates between characters and their numeric ASCII values. You can type any character to see its decimal, hexadecimal, binary, and octal representation — or enter a numeric code to find the corresponding character. ASCII defines 128 characters (codes 0–127), including letters, digits, punctuation, and control characters.
How do I find the ASCII code of a character?
Type or paste the character into the "Character" input field above. The tool instantly shows its ASCII value in decimal, hex (base-16), binary (base-2), and octal (base-8). For example, the letter "A" is decimal 65, hex 41, binary 01000001, octal 101.
What is the ASCII code for the letter A?
Uppercase "A" has ASCII code 65 (decimal), 41 (hex), 01000001 (binary). Lowercase "a" is 97 (decimal), 61 (hex), 01100001 (binary). The difference between uppercase and lowercase is always 32 in decimal (or 0x20 in hex).
How many ASCII characters are there?
The standard ASCII table defines 128 characters (codes 0–127): 33 control characters (0–31 and 127), 1 space character (32), and 94 printable characters (33–126) including letters, digits, and punctuation. Extended ASCII (128–255) varies by encoding and is not part of the original standard.
What is the difference between ASCII and Unicode?
ASCII defines 128 characters using 7 bits — enough for English text. Unicode defines over 149,000 characters covering every writing system. UTF-8 (the most common Unicode encoding) is backward-compatible with ASCII: codes 0–127 are identical. Characters beyond ASCII use 2–4 bytes in UTF-8.
How do I convert ASCII codes to characters in Python?
Use chr() to convert a code to a character: chr(65) returns "A". Use ord() for the reverse: ord("A") returns 65. For hex input: chr(0x41) also returns "A". In JavaScript: String.fromCharCode(65) returns "A", and "A".charCodeAt(0) returns 65.