Use the free Text to ASCII Codes below: your data never leaves your browser — all work happens on your device, and nothing is uploaded to any server.
Every character has a number
Behind every letter on your screen sits a number. The letter A is 65, a is 97, a space is 32, and the digit 0 is 48. This numbering is ASCII, the American Standard Code for Information Interchange, and it was one of the first agreements that let different computers exchange text. Before ASCII, machines often used incompatible codes, and a file written on one system could be gibberish on another.
ASCII covers 128 characters: the letters, digits and punctuation you use every day, plus control characters like new line, tab and escape that do not print but tell a machine what to do. Later systems extended it and eventually replaced it with Unicode, which covers every writing system on earth, but the first 128 Unicode codes are identical to ASCII. Learning ASCII is therefore learning the foundation of all modern text encoding.
Why list the code of every character
Listing codes turns an invisible idea into something you can see. A student can type a word and watch each letter become a number, which makes encoding concrete instead of abstract. A developer can check a suspicious character: is that space really a space, code 32, or a lookalike? A puzzle solver can convert a word into numbers as a step toward another encoding. A writer can find the code for a symbol they need to type in a system that only accepts numbers.
The list is also a debugging aid. When text behaves oddly, for example when a search fails to match a word that looks right, the culprit is often an invisible or unexpected character. Seeing every character next to its code exposes the impostor at once: a non-breaking space is 160, not 32, and a curly quote is not the straight quote your code expects.
How to use this tool
Type or paste your text and press the button. You get a table with one row per character: the character itself and its code. Spaces show as “(space)” and new lines as “(newline)” so they are not invisible in the table. You can show the codes in decimal, the classic ASCII numbering, in hexadecimal, the form programmers often use, or both side by side. A plain list view is available if you prefer one line per character instead of a table.
Try it with your name, then with a sentence containing punctuation, then with a string of digits. Notice that the digit characters have their own codes: the character “0” is 48, not zero, because it is a symbol, not a value. That distinction trips up beginners, and seeing it in a table makes it click.
ASCII and beyond
ASCII stops at 127. Accented letters, emoji and scripts like Arabic or Chinese live beyond it, in the much larger Unicode range. This tool reports the Unicode code point for any character you enter, which matches ASCII for the classic set and extends naturally beyond it. So the same tool that teaches A equals 65 can also show that é is 233 and that an emoji is a five-digit number.
Text is numbers wearing a costume. Once you have seen your own words as a list of codes, the costume never looks quite the same again, and tasks like encoding, debugging and data cleaning become much less mysterious.
Teachers often use this table as a first lesson in how computers store text, because it makes an abstract idea visible in seconds. Students type their names, see the numbers, and immediately understand that a computer never stores letters directly: it stores numbers, and the letters are just how those numbers are displayed. That single insight unlocks everything from file formats to character encoding problems later on.
Related tools
- Convertidor de Texto a Códigos ASCII (Spanish version)
- ASCII Codes to Text
- Unicode Escape Converter
