Text tool

ASCII / Unicode Converter

Convert text to its character codes, or codes back to text.

ASCII vs Unicode

ASCII covers 128 characters — the basic Latin alphabet, digits, and punctuation. Unicode extends far beyond that to cover virtually every script and symbol in use, including emoji. This tool works with full Unicode code points, so ASCII text is simply the first 128 of them.

About the ASCII / Unicode Converter

This converter turns text into numeric character codes and turns codes back into text. ASCII covers the 128 basic characters of English text, while Unicode assigns a number, called a code point, to more than a hundred thousand characters from nearly every writing system, plus symbols and emoji. Programmers, students and anyone debugging odd characters in a file use it to see exactly what a string contains.

A code point is written as a number such as 65 for the letter A, or as U+0041 in hexadecimal notation. Characters outside the basic range, including Hindi letters and emoji, have larger numbers. The tool reads your text one character at a time and lists the code for each, and in the other direction it joins the codes you provide into a string.

How to use it

  1. Type or paste text in the Text box, then press Text → Codes to see decimal code points.
  2. Press Text → Hex codes if you want hexadecimal values instead.
  3. To go the other way, enter space-separated decimal codes in the Code points box and press Codes → Text.
  4. Copy the result you need.

Tips and good to know

Frequently asked questions

What is the difference between ASCII and Unicode?

ASCII is a small 128-character set. Unicode is a much larger standard that includes ASCII as its first 128 values, so ASCII text is valid Unicode.

Why does an emoji show one number but my programming language reports a length of 2?

Some languages count 16-bit units, and an emoji may need two. The code point itself is still one number.

Can I convert Hindi or Arabic text?

Yes. Any character your browser can display has a Unicode code point and will be converted.