Home » Binary Converter Tools » Text to ASCII Converter
Convert text to ASCII codes and ASCII codes back to text in one tool, with a direction switch and a code for every character.
Last updated 13 November 2026
Everything runs in your browser, so your value never leaves your device.
A text to ASCII converter turns ordinary text into ASCII codes, and this page also rebuilds text from ASCII codes. ASCII is the classic code table for English text, where every letter, digit and punctuation mark has a number from 0 to 127. It is still the basis for how computers store plain text.
For example, H is 72 and i is 105, so the word Hi becomes 72 105. This tool converts a full word or sentence to its codes, separated by spaces, and it can also take codes separated by spaces and turn them back into text.
Everything runs in your browser, so your text never leaves your device. The tool works with plain English characters, and it gives a plain error for codes outside 0 to 127 or for text that is not a number, instead of a wrong answer.
Find the code for each character: H is 72, and i is 105.
Write the codes in order, separated by spaces: 72 105. So Hi in text is 72 105 in ASCII.
To decode, split the codes by spaces: 72 and 105.
Read the character for each code: 72 is H, and 105 is i, giving Hi again.
| Input | Output |
|---|---|
| A in text | 65 in ASCII |
| Hi in text | 72 105 in ASCII |
| Hello in text | 72 101 108 108 111 in ASCII |
| 123 in text | 49 50 51 in ASCII |
| a in text | 97 in ASCII |
If you need a different format, try the Text to Binary Converter or the Text to Hex Converter. For number base changes, use the Binary to Decimal Converter, the Decimal to Binary Converter, the Binary to Hex Converter, the Hex to Decimal Converter, the Decimal to Hex Converter, the Hex to Binary Converter, the Hex to Octal Converter, the Binary to Octal Converter, the Decimal to Octal Converter, the Octal to Decimal Converter, the Octal to Binary Converter, and the Octal to Hex Converter. Each one works the same way, in your browser, with the steps shown so you can check the answer.
Yes, it is completely free with no sign up.
Yes. Switch the direction to ASCII codes to text and enter codes separated by spaces, each from 0 to 127.
Those characters are outside the ASCII table, so this tool gives a plain message instead of a made up code.
No. All conversion happens in your browser on your own device, so your text never leaves your computer.
The ASCII code for capital A is 65. The code for lowercase a is 97. You can check both in the printable ASCII table on this page.
A capital letter and its lowercase form differ by 32. A is 65 and a is 97, B is 66 and b is 98, and the same gap of 32 holds for every letter from A to Z.
ASCII is a 7 bit code with only 128 values, from 0 to 127, and it covers plain English text only. Unicode is a much larger code set that covers accented letters, emoji, and the scripts of other languages. Plain ASCII text is also valid Unicode text, because Unicode includes ASCII as its first 128 values.
No. This tool gives decimal codes only, such as 72 105 for Hi. If you need hex codes, use the Text to Hex Converter. If you need binary, use the Text to Binary Converter.
The tool gives a plain message instead of a code. Emoji and accented letters are above code 127, so they are not ASCII, and no ASCII code exists for them. Enter plain English text, or codes from 0 to 127, to get a result.
The table below lists every printable ASCII character, from code 32 to code 126. Code 32 is the space, codes 48 to 57 are the digits 0 to 9, codes 65 to 90 are the capital letters A to Z, and codes 97 to 122 are the lowercase letters a to z. Find a character in the table to see its decimal code, or find a code to see its character.
| Character | Decimal code | Name |
|---|---|---|
| Space | 32 | space |
| ! | 33 | exclamation mark |
| " | 34 | double quote |
| # | 35 | hash |
| $ | 36 | dollar sign |
| % | 37 | percent sign |
| & | 38 | ampersand |
| ' | 39 | apostrophe |
| ( | 40 | left parenthesis |
| ) | 41 | right parenthesis |
| * | 42 | asterisk |
| + | 43 | plus sign |
| , | 44 | comma |
| - | 45 | hyphen |
| . | 46 | full stop |
| / | 47 | slash |
| 0 | 48 | digit 0 |
| 1 | 49 | digit 1 |
| 2 | 50 | digit 2 |
| 3 | 51 | digit 3 |
| 4 | 52 | digit 4 |
| 5 | 53 | digit 5 |
| 6 | 54 | digit 6 |
| 7 | 55 | digit 7 |
| 8 | 56 | digit 8 |
| 9 | 57 | digit 9 |
| : | 58 | colon |
| ; | 59 | semicolon |
| < | 60 | less than sign |
| = | 61 | equals sign |
| > | 62 | greater than sign |
| ? | 63 | question mark |
| @ | 64 | at sign |
| A | 65 | capital letter A |
| B | 66 | capital letter B |
| C | 67 | capital letter C |
| D | 68 | capital letter D |
| E | 69 | capital letter E |
| F | 70 | capital letter F |
| G | 71 | capital letter G |
| H | 72 | capital letter H |
| I | 73 | capital letter I |
| J | 74 | capital letter J |
| K | 75 | capital letter K |
| L | 76 | capital letter L |
| M | 77 | capital letter M |
| N | 78 | capital letter N |
| O | 79 | capital letter O |
| P | 80 | capital letter P |
| Q | 81 | capital letter Q |
| R | 82 | capital letter R |
| S | 83 | capital letter S |
| T | 84 | capital letter T |
| U | 85 | capital letter U |
| V | 86 | capital letter V |
| W | 87 | capital letter W |
| X | 88 | capital letter X |
| Y | 89 | capital letter Y |
| Z | 90 | capital letter Z |
| [ | 91 | left square bracket |
| \ | 92 | backslash |
| ] | 93 | right square bracket |
| ^ | 94 | caret |
| _ | 95 | underscore |
| ` | 96 | backtick |
| a | 97 | lowercase letter a |
| b | 98 | lowercase letter b |
| c | 99 | lowercase letter c |
| d | 100 | lowercase letter d |
| e | 101 | lowercase letter e |
| f | 102 | lowercase letter f |
| g | 103 | lowercase letter g |
| h | 104 | lowercase letter h |
| i | 105 | lowercase letter i |
| j | 106 | lowercase letter j |
| k | 107 | lowercase letter k |
| l | 108 | lowercase letter l |
| m | 109 | lowercase letter m |
| n | 110 | lowercase letter n |
| o | 111 | lowercase letter o |
| p | 112 | lowercase letter p |
| q | 113 | lowercase letter q |
| r | 114 | lowercase letter r |
| s | 115 | lowercase letter s |
| t | 116 | lowercase letter t |
| u | 117 | lowercase letter u |
| v | 118 | lowercase letter v |
| w | 119 | lowercase letter w |
| x | 120 | lowercase letter x |
| y | 121 | lowercase letter y |
| z | 122 | lowercase letter z |
| { | 123 | left curly bracket |
| | | 124 | vertical bar |
| } | 125 | right curly bracket |
| ~ | 126 | tilde |
Capitals and lowercase letters differ by 32. A is 65 and a is 97, B is 66 and b is 98, and the same gap of 32 holds for every letter from A to Z. Codes 0 to 31 are control codes, not printable characters, so they are not in this table. Code 127 is the delete control code, so it is not listed either. This tool accepts codes from 0 to 127, and it gives a plain message for anything outside that range.
ASCII is a 7 bit code, so it holds only 128 values, from 0 to 127. That is enough for plain English letters, digits, punctuation, and the space, but it has no room for accented letters, emoji, or the scripts of other languages. Unicode is a much larger code set that covers those characters, and it includes ASCII as its first 128 values, so plain ASCII text is also valid Unicode text. This tool works with ASCII only. If you enter a character above code 127, such as an accented letter or an emoji, the tool gives a plain message instead of a made up code, because no ASCII code exists for it. If you need the same text in another code, use the Text to Binary Converter or the Text to Hex Converter.