Text to ASCII
Show the decimal ASCII code of each character (0 to 127) or the Unicode code point above 127, and turn decimal codes back into text. How it works
Use the Text to ASCII
Up to 1,000 characters.
Codes 0 to 127 are ASCII codes. A character above 127 has no ASCII code, so its number is its Unicode code point (shown with U+ hex).
ASCII Codes
About the Text to ASCII
A is 65, a is 97 and a space is 32. ASCII is a 7-bit code with 128 values, 0 to 127, and Text to ASCII shows that code for each character you type. A character above 127, such as é (233) or € (8364), has no ASCII code, so the tool shows its Unicode code point in decimal with the U+ hex beside it. Codes to text goes the other way: 72 101 108 108 111 gives Hello.
ASCII codes for common characters
| Shown as | Code | What it is |
|---|---|---|
| (tab) | 9 | horizontal tab, a control code |
| (space) | 32 | space |
| 0 | 48 | digit zero |
| A | 65 | first capital letter |
| Z | 90 | last capital letter |
| a | 97 | first lowercase letter, 32 above A |
| z | 122 | last lowercase letter |
| ~ | 126 | last printable character |
| (control) | 127 | delete, a control code |
Codes 0 to 31 and 127 are control codes, shown as (control) except the tab and the space. Codes 32 to 126 are the 95 printable characters.
Characters above 127 show their Unicode code point
| Character | Code shown | Hex shown |
|---|---|---|
| é | 233 | U+00E9 |
| ß | 223 | U+00DF |
| € | 8364 | U+20AC |
| 日 | 26085 | U+65E5 |
| 😀 | 128512 | U+1F600 |
These are Unicode code points, not ASCII codes and not the bytes a file stores. In UTF-8, é is the two bytes C3 A9.
How to use this tool
- Type or paste text in Input Text, up to 1,000 characters.
- Read one card per character: the character on top and its decimal code below.
- Press Copy All to copy the codes separated by spaces.
- To decode, press Codes to text and type decimal codes separated by spaces, commas or semicolons: up to 1,000 numbers, each from 0 to 1114111.
Frequently asked questions
- What is the ASCII code for A, a and the space?
- Capital A is 65, lowercase a is 97 and the space is 32. A lowercase letter is its capital plus 32, so b is 98 and B is 66.
- Why does é show 233 and not an ASCII code?
- ASCII has no é. For a character above 127 the tool shows its Unicode code point, which is 233 (U+00E9) for é. A file in UTF-8 stores é as two bytes, C3 A9, so the number shown is the code point, not the stored bytes.
- Is ASCII 7-bit or 8-bit?
- It is 7-bit: RFC 20 (1969) defines 128 values, 0 to 127. It suggests carrying each one in an 8-bit byte with the top bit set to 0. Codes above 127 belong to other encodings such as Unicode.
- What are the codes from 0 to 31?
- They are control codes such as tab (9) and line feed (10), not printable characters. The input is a single line, so a line feed cannot be entered, and a tab gets in only when pasted, where it shows as (tab). Other control codes, and 127, show as (control). Printable ASCII runs from 32, the space, to 126, the tilde.
- How do I copy the codes as text?
- Press Copy All. It copies the decimal codes separated by single spaces, for example 72 101 108 108 111 for “Hello”. Hex and binary output are not offered.
- How much text can I convert?
- Up to 1,000 characters, counted in UTF-16 units, so an emoji uses two of them. The box says when the limit is reached and stops accepting more.
Related Tools
View all toolsASCII Art Generator
Type text and get an ASCII art banner in standard 5 by 5, small 3 by 5 or tall 5 by 7 block letters, drawn with the letter itself, # or █.
Morse Code Translator
Translate text to Morse code and back, and play it as a 600 Hz tone at 5 to 40 WPM. Paste Morse with a slash between words to read it.
ROT13 Cipher
ROT13 encoder and decoder, plus any Caesar shift from 1 to 25: each letter A to Z moves that many places. Digits, punctuation and accents stay as typed.
Upside Down Text
Flip text upside down and reverse it with look-alike Unicode characters for a to z, A to Z, 0 to 9 and common punctuation, then copy and paste it.
Zalgo Text Generator
Turn text into Zalgo glitch text: Unicode combining marks stacked above, through and below each letter, at a chaos level from 1 to 20.
Small Text Generator
Turn text into small caps, superscript or subscript Unicode characters, see which letters have no small form, and copy and paste the result.