How to use the Text to ASCII & Unicode Codes
- Choose the direction.
- Enter text, or decimal codes separated by spaces or commas.
- Copy the result.
What does this tool do?
ASCII assigns numbers 0–127 to English letters, digits and symbols — “a” is 97. Unicode extends the same idea to every writing system and emoji, with codes up to 1,114,111.
This tool uses Unicode code points, which match ASCII for basic characters.
Why use it?
- Works beyond ASCII.
- Both directions.
- Copy-ready lists.
Use cases
- Look up a character's code for programming (e.g. comparing char codes in JavaScript).
- Decode number puzzles and simple ciphers.
- Find the code for typing special characters with Alt codes or HTML entities like €.
Characters and their codes
Codes 0–127 are the original ASCII set; higher numbers are Unicode code points.
| Character | Decimal code |
|---|---|
| A | 65 |
| a | 97 |
| 0 | 48 |
| ! | 33 |
| € | 8364 |
| 😀 | 128512 |
Common mistakes
- Confusing ASCII codes with keyboard Alt codes on Windows — they match only for 32–126.
- Expecting decimal codes to equal UTF-8 bytes; “€” is code 8364 but three bytes in UTF-8.
- Separating codes with nothing — use spaces or commas so 6597 is read as 65 and 97.
Privacy
The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.
Frequently asked questions
What is the difference between ASCII and Unicode?
ASCII covers 128 basic English characters. Unicode includes ASCII and adds every other script, symbols and emoji.
Why do uppercase and lowercase differ by 32?
ASCII was designed so that flipping one bit (value 32) switches case: A is 65 and a is 97.
Can I use these codes in HTML?
Yes — write A for A or 😀 for 😀 and the browser shows the character.
Content last updated . See how M2Toolkit works.