Skip to main content
Back to tools

Text to Charcode

Convert text to Unicode character codes (decimal) and back

About Text to Charcode

Lists the Unicode code points of your text in decimal, one per character and separated by spaces, so Hi! becomes 72 105 33, and rebuilds text from a list of such codes. Useful for writing String.fromCodePoint() or Python chr() calls, spotting zero-width or look-alike characters hidden in a string, or looking up ASCII values quickly.

Category: Encoding.

Frequently asked questions

What is a character code?

▾

A character code is the numeric value assigned to a character in a character encoding standard. This tool uses Unicode code points — the same values defined in the Unicode Standard that JavaScript's codePointAt() method returns.

Is this ASCII or Unicode?

▾

Unicode. For the first 128 characters (standard keyboard characters), Unicode code points are identical to ASCII values, so the output matches traditional ASCII tables. Characters beyond U+007F have higher numeric values.

Why does an emoji give one large number instead of two?

▾

The tool reads whole code points, like codePointAt(), so 😀 becomes 128512. JavaScript's charCodeAt() would instead return two UTF-16 surrogate values, 55357 and 56832; both forms convert back to the same emoji here.

How do I convert back from char codes to text?

▾

Paste decimal codes separated by spaces or commas and click Codes to Text; the tool rebuilds the string with String.fromCodePoint(). Only decimal values are understood, so convert hex forms such as 0x48 or U+0048 first, and values above 1114111 (U+10FFFF) are rejected.

Related tools