- Home
- Tools
- Encoding & Decoding
- Text to ASCII Codes Converter
Text to ASCII Codes Converter
List the numeric code of every character in a text, in decimal, hex or octal, or turn a list of codes back into text.
Only need one direction? Text to ASCII Codes and ASCII Codes to Text have their own pages.
Character codes
Every character a computer can store has a number. For the letters, digits and punctuation on an English keyboard that number is its ASCII code: A is 65, a is 97, 0 is 48 and a space is 32. Unicode continues the same list for every other writing system, so é is 233, € is 8364 and 🎉 is 127881.
This tool lists those numbers, one per character, separated by spaces. Going the other way, it takes numbers separated by spaces or commas and gives you the text.
A few codes worth knowing
| Character | Decimal | Hex |
|---|---|---|
| Tab | 9 | 09 |
| Line feed (new line) | 10 | 0A |
| Carriage return | 13 | 0D |
| Space | 32 | 20 |
| 0 to 9 | 48 to 57 | 30 to 39 |
| A to Z | 65 to 90 | 41 to 5A |
| a to z | 97 to 122 | 61 to 7A |
Upper and lower case letters are exactly 32 apart, which is a single bit. Early programs changed the case of a letter by flipping that one bit.
Code points, not bytes
The numbers shown are Unicode code points. Above 127 they are not the same as the bytes that end up in a file: é is code point 233, but UTF-8 stores it as the two bytes C3 A9. If the bytes are what you need, use the hexadecimal encoder.