Skip to main content
CalcChef

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

Start typing to see 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 asCodeWhat it is
(tab)9horizontal tab, a control code
(space)32space
048digit zero
A65first capital letter
Z90last capital letter
a97first lowercase letter, 32 above A
z122last lowercase letter
~126last printable character
(control)127delete, 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

CharacterCode shownHex shown
é233U+00E9
ß223U+00DF
€8364U+20AC
日26085U+65E5
😀128512U+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

  1. Type or paste text in Input Text, up to 1,000 characters.
  2. Read one card per character: the character on top and its decimal code below.
  3. Press Copy All to copy the codes separated by spaces.
  4. 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 tools