Home » Binary Converter Tools » Text to ASCII Converter

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

Input0 chars
Output0 chars

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.

Worked example: text Hi to ASCII, and back

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.

How to Use This Tool

  1. Choose a direction, text to ASCII or ASCII to text.
  2. Enter your text or codes, with codes separated by spaces.
  3. Press Convert to see the result at once.
  4. Copy the result or download it as a text file.

Why Use This Tool

Common Values

InputOutput
A in text65 in ASCII
Hi in text72 105 in ASCII
Hello in text72 101 108 108 111 in ASCII
123 in text49 50 51 in ASCII
a in text97 in ASCII

Related Conversions

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.

Frequently Asked Questions

Is the Text to ASCII Converter free to use?

Yes, it is completely free with no sign up.

Can it rebuild text from ASCII codes?

Yes. Switch the direction to ASCII codes to text and enter codes separated by spaces, each from 0 to 127.

What about letters outside plain English?

Those characters are outside the ASCII table, so this tool gives a plain message instead of a made up code.

Is my text uploaded to a server?

No. All conversion happens in your browser on your own device, so your text never leaves your computer.

What is the ASCII code for A?

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.

How are capitals and lowercase letters different in ASCII?

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.

What is the difference between ASCII and Unicode?

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.

Can this tool give hex or binary output?

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.

What happens with emoji or accented letters?

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.

Printable ASCII Table

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.

CharacterDecimal codeName
Space32space
!33exclamation mark
"34double quote
#35hash
$36dollar sign
%37percent sign
&38ampersand
'39apostrophe
(40left parenthesis
)41right parenthesis
*42asterisk
+43plus sign
,44comma
-45hyphen
.46full stop
/47slash
048digit 0
149digit 1
250digit 2
351digit 3
452digit 4
553digit 5
654digit 6
755digit 7
856digit 8
957digit 9
:58colon
;59semicolon
<60less than sign
=61equals sign
>62greater than sign
?63question mark
@64at sign
A65capital letter A
B66capital letter B
C67capital letter C
D68capital letter D
E69capital letter E
F70capital letter F
G71capital letter G
H72capital letter H
I73capital letter I
J74capital letter J
K75capital letter K
L76capital letter L
M77capital letter M
N78capital letter N
O79capital letter O
P80capital letter P
Q81capital letter Q
R82capital letter R
S83capital letter S
T84capital letter T
U85capital letter U
V86capital letter V
W87capital letter W
X88capital letter X
Y89capital letter Y
Z90capital letter Z
[91left square bracket
\92backslash
]93right square bracket
^94caret
_95underscore
`96backtick
a97lowercase letter a
b98lowercase letter b
c99lowercase letter c
d100lowercase letter d
e101lowercase letter e
f102lowercase letter f
g103lowercase letter g
h104lowercase letter h
i105lowercase letter i
j106lowercase letter j
k107lowercase letter k
l108lowercase letter l
m109lowercase letter m
n110lowercase letter n
o111lowercase letter o
p112lowercase letter p
q113lowercase letter q
r114lowercase letter r
s115lowercase letter s
t116lowercase letter t
u117lowercase letter u
v118lowercase letter v
w119lowercase letter w
x120lowercase letter x
y121lowercase letter y
z122lowercase letter z
{123left curly bracket
|124vertical bar
}125right curly bracket
~126tilde

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 vs Unicode

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.

↑