💻 ASCII Engine 2026
Convert characters to ASCII codes — Decimal, Hexadecimal & Binary
Character
-
Decimal (DEC)
-
Hexadecimal (HEX)
-
Binary (BIN)
-
Octal (OCT)
-
HTML Entity
-
Complete ASCII Table
| DEC | HEX | BIN | Char | Description |
|---|
Understanding ASCII
📜 What is ASCII?
ASCII (American Standard Code for Information Interchange) is a 7-bit character encoding with 128 characters (0-127). It's the foundation of text in computers.
🔢 Code Ranges
0-31: Control characters. 32-47: Punctuation. 48-57: Numbers. 65-90: Uppercase. 97-122: Lowercase. 127: DEL.
💡 Common Codes
Space: 32. A: 65. a: 97. 0: 48. Newline: 10. Tab: 9. Degree °: 176 (extended).
🐍 ASCII in Python
Use ord('A') → 65 and chr(65) → 'A'. Check with
string.ascii_letters and string.ascii_lowercase.
Frequently Asked Questions
What is the ASCII code for A to Z?
Uppercase A-Z = 65-90. Lowercase a-z = 97-122.
Each letter differs by 32 (A=65, a=97). To convert uppercase to lowercase, add 32 to the ASCII code.
What is the ASCII code for numbers 0-9?
Numbers 0-9 = ASCII 48-57. The character '0' has code 48, '1' is
49, through '9' at 57. To get digit value: code - 48.
What is the ASCII code for special characters?
Common special characters: Space=32, !=33, "=34, #=35, $=36, %=37, &=38,
'=39, (=40, )=41, *=42, +=43, ,=44, -=45, .=46, /=47.
What is the ASCII code for degree symbol (°)?
The degree symbol ° is ASCII 176 (extended ASCII, not standard
7-bit). In HTML:
° or °. In Python: chr(176).
How do I convert ASCII to binary?
Convert the decimal ASCII code to binary. A = 65 = 01000001. Each
ASCII character uses 7 bits (0-127), often stored in 8 bits with leading zero.
How do I convert ASCII to hexadecimal?
Convert decimal to hex. A = 65 = 0x41. a = 97 =
0x61. 0 = 48 = 0x30. Hex is useful for compact representation in
programming.
What are ASCII control characters?
Codes 0-31 and 127 are control characters: NULL (0), TAB (9),
LF/newline (10), CR (13), ESC (27), DEL (127). They control devices rather than represent printable
text.
How do I use ASCII in Python?
Use
ord('A') to get 65. Use chr(65) to get 'A'. Import
string for string.ascii_letters, string.ascii_lowercase,
string.ascii_uppercase.What is the difference between ASCII and Unicode?
ASCII has 128 characters (English only). Unicode
has 143,000+ characters covering all languages. ASCII values 0-127 are identical in Unicode (UTF-8
compatible).
What is extended ASCII?
Extended ASCII uses codes 128-255 for additional characters
(symbols, accented letters). Different encodings (Latin-1, Windows-1252) define these differently.
How do I type ASCII characters?
On Windows: Alt + numpad code (e.g., Alt+65 for A). On Mac:
various shortcuts. In HTML:
&#CODE; format (e.g., © for ©).What is the ASCII code for space?
Space = ASCII 32 (0x20 hex, 00100000 binary). It's the first
printable character. Codes 0-31 are non-printable control characters.
What is the ASCII code for newline?
LF (Line Feed) = 10. CR (Carriage Return) = 13.
Windows uses CR+LF (13,10). Unix/Mac use LF only. In Python:
\n = LF.How do I find any character's ASCII code?
Use this tool! Or in Python:
ord('$') → 36. In JavaScript:
'$'.charCodeAt(0) → 36. In C: (int)'$' → 36.What is the * asterisk ASCII code?
Asterisk (*) = ASCII 42 (0x2A hex, 00101010 binary). It's between
) at 41 and + at 43 in the ASCII table.
Are ASCII values the same everywhere?
Yes, standard ASCII (0-127) is universal. Extended ASCII (128-255)
varies by encoding. UTF-8 is ASCII-compatible for codes 0-127.
What characters are in the ASCII character set?
128 characters: 33 control codes (0-31, 127), 95
printable (32-126) including digits (0-9), uppercase (A-Z), lowercase (a-z), punctuation,
and symbols.