ASCII Code Converter (Text, Decimal, Hex, Binary)
Quick answer: every ASCII character has a number from 0 to 127. Capital A is 65 (hex 41, binary 01000001), small a is 97, the digit 0 is 48 and space is 32. Add 32 to a capital letter code to get the small letter. Use the table to convert ASCII code to text and back.
How to convert ASCII code
- Text to ASCII: look up each character and write its decimal code.
- ASCII to text: find the decimal number in the table.
- Decimal to hex: divide by 16 (65 = 0x41).
- Binary: write the number in 8 bits.
Roman Urdu: Har harf ka ek number hota hai, jaise A ka 65 aur a ka 97.
ASCII Code Converter table
Quick reference values you can check your own numbers against.
| Character | Decimal | Hex | Binary |
|---|---|---|---|
| A | 65 | 41 | 01000001 |
| B | 66 | 42 | 01000010 |
| Z | 90 | 5A | 01011010 |
| a | 97 | 61 | 01100001 |
| b | 98 | 62 | 01100010 |
| z | 122 | 7A | 01111010 |
| 0 | 48 | 30 | 00110000 |
| 1 | 49 | 31 | 00110001 |
| 9 | 57 | 39 | 00111001 |
| space | 32 | 20 | 00100000 |
| ! | 33 | 21 | 00100001 |
| @ | 64 | 40 | 01000000 |
| # | 35 | 23 | 00100011 |
| $ | 36 | 24 | 00100100 |
| % | 37 | 25 | 00100101 |
| & | 38 | 26 | 00100110 |
| ? | 63 | 3F | 00111111 |
Standard 7-bit ASCII, shown here with 8 bits. Extended and Unicode characters use larger codes.
Where ASCII is used
ASCII is the base of text in programming, HTML and files, and Unicode (UTF-8) contains it. Control codes 0 to 31 are not printable (10 is a new line, 13 a carriage return). For number base work use the binary, decimal and hex converter and for other units the Unit Converter.