Skip to content

Text to ASCII and Unicode Converter

Enter text to list the code of every character in decimal and hexadecimal, plus its UTF-8 bytes. Or enter decimal codes to rebuild the text.

Result

Decimal codes
72 101 108 108 111
Unicode code points
U+0048 U+0065 U+006C U+006C U+006F
UTF-8 bytes (hex)
48 65 6c 6c 6f
Characters
5
Plain ASCII only
Yes

Formula

  • ASCII covers codes 0 to 127
  • A = 65, a = 97, 0 = 48, space = 32
  • Unicode code points are written as U+ followed by hexadecimal digits

How the Text to ASCII and Unicode Converter works

ASCII is a 7-bit standard from the 1960s that assigns the numbers 0 to 127 to English letters, digits, punctuation and control codes. Unicode extends the same idea to every writing system and keeps the first 128 codes identical to ASCII.

A Unicode code point is the number of a character. UTF-8 is the usual way of storing it as bytes: one byte for ASCII and up to four for other characters.

Worked example

"Hello" is 72 101 108 108 111 in decimal, or U+0048 U+0065 U+006C U+006C U+006F as Unicode code points.

Frequently asked questions

What is the ASCII code for A?

Capital A is 65 and lowercase a is 97. The lowercase letters are always 32 higher than the capitals.

What is the difference between ASCII and Unicode?

ASCII defines 128 characters. Unicode defines more than 140,000 and includes ASCII as its first 128 code points.

Related calculators

All text, code and network calculators · All calculators

Related unit converters

Calculations run in your browser and nothing you enter is sent to a server. Results are provided for general information. Check critical figures independently before relying on them.

☕ Like this tool?

Buy me a coffee to support development

☕ Support UnitGenie

If this tool has been helpful, consider buying me a coffee to support development and keep it free for everyone!