How to use
- In Text → ASCII codes, type or paste text and each character’s ASCII code appears. A sample is already filled in, so you see a result right away.
- Choose a base: decimal, hex, binary or octal, then a separator. Hex can be upper or lower case.
- Characters outside ASCII, such as Hangul or emoji, can be replaced with ? (63), skipped, or expanded to UTF-8 bytes.
- To decode, switch to ASCII codes → text and paste numbers. Hex written as
0x48,48 69or4869is accepted. - Open the ASCII table at the bottom of the page to see 0 to 127 in decimal, hex, octal and binary with each character’s name.
What ASCII is
ASCII is a standard table that assigns letters, digits, symbols and control codes to the 7-bit numbers 0 to 127. Computers store text as numbers, so A is 65, a is 97, and every character has a number.
| Character | Decimal | Hex | Binary |
|---|---|---|---|
| A | 65 | 41 | 01000001 |
| a | 97 | 61 | 01100001 |
| 0 | 48 | 30 | 00110000 |
| space | 32 | 20 | 00100000 |
~ |
126 | 7E | 01111110 |
- 0 to 31 and 127 are invisible control characters. 9 is tab (TAB), 10 is line feed (LF), 13 is carriage return (CR) and 127 is delete (DEL).
- 32 to 126 are the space and the printable characters. Capitals run 65 to 90, lowercase 97 to 122 and digits 48 to 57.
- Upper and lower case of the same letter differ by 32, which in binary is a single bit, the sixth.
What happens to Hangul
ASCII has no Hangul. When you enter it, the chosen option decides the outcome. For the input a한 in decimal:
| Option | Result |
|---|---|
| Replace with ? (63) | 97 63 |
| Skip them | 97 |
| Expand to UTF-8 bytes | 97 237 149 156 |
For the real number of a Hangul character, use the UTF-8 byte option, or look at the code point in Text to Decimal or the Unicode Converter. Codes from 128 to 255 are not ASCII; when decoding they are read as Latin-1 characters and you are told so.
Related tools
- Text to Decimal: text as decimal code points or bytes.
- Text to Hex: UTF-8, UTF-16 and EUC-KR bytes in hex.
- Text ↔ Binary Converter: text as binary bytes.
- Number Base Converter: convert numbers between bases.
FAQ
How do I find the ASCII code of a character?
Type it above and the code appears. For a quick single lookup, open the table: A is 65 and z is 122.
How do I turn ASCII codes into text?
Switch to ASCII codes → text and paste the numbers. 72 101 108 108 111 becomes Hello.
What is the difference between ASCII and Unicode?
The first 128 characters of Unicode are identical to ASCII. ASCII is a small English-oriented table, while Unicode is a far larger one that covers Hangul, Chinese characters and emoji.
What is the ASCII code for a new line?
LF (line feed) is 10 and CR (carriage return) is 13. Windows text files use CR LF (13 10), while Linux and macOS use just LF (10).
Is my text uploaded?
No. Conversion happens in your browser and nothing is sent to a server.