Text to ASCII

Convert text to ASCII / Unicode decimal character codes

Turn text into decimal character codes - ASCII for English letters (A = 65), Unicode code points for everything else, or UTF-8 byte values - with a table of every character in decimal and hex.
Try an example:

Output will appear here...

About Text to ASCII

How it works

  1. Every character has a number: ASCII defines 0-127 (A = 65, a = 97, space = 32) and Unicode extends this to over a million characters (é = 233, € = 8364, 😀 = 128512).
  2. With "Character codes" you get one number per character - the ASCII code for English text, the Unicode code point for anything else.
  3. With "UTF-8 byte values" you get the bytes actually stored in a file: one per English character, 2-4 for others (é = 195 169).

What you need

  • Any text.

Tips

  • Uppercase and lowercase letters differ by exactly 32: A = 65, a = 97.
  • Digits 0-9 are codes 48-57, so the code minus 48 gives the digit.
  • Control characters such as tab (9) and new line (10) are included.

Runs in your browser. Everything happens in your browser - the text you enter is never uploaded.

Frequently asked questions

What is the ASCII code of A?+

Uppercase A is 65 and lowercase a is 97. The alphabet runs in order from there: B = 66, C = 67, and so on.

What is the difference between ASCII and Unicode?+

ASCII has 128 characters (English letters, digits, punctuation and control codes). Unicode includes ASCII as its first 128 codes and adds every other script, symbol and emoji - over 149,000 characters.

Why is é 233 in one mode and 195 169 in the other?+

233 is its Unicode code point. UTF-8, the encoding used in files and on the web, stores that code as two bytes: 195 and 169.