Skip to content

Text to Decimal Converter

Get the Unicode number of every character: "é" is 233, "世" is 19990 and 😀 is 128512.

Processed locally in your browser

Options
0 chars · 0 lines
The result will appear here.

What is Text to Decimal Converter?

Every character in Unicode has a unique code point, and its decimal form is what functions like JavaScript’s codePointAt(), Python’s ord() or HTML’s é use. It identifies the character itself, whatever the byte encoding.

This converter walks through your text by code point (not by UTF-16 unit or byte), so an emoji is one number and never two surrogate halves. It differs from the ASCII tool, which lists UTF-8 bytes: here é is one number (233), not two (195 169). Choose space, comma, comma + space or line separators.

How does it work?

  1. Type or paste your text, including any emoji or non-Latin characters.
  2. Select the separator between numbers.
  3. Copy the list of code points, or use Swap to rebuild text from a list of numbers.

Common use cases

  • Finding the number to use in String.fromCodePoint(), chr() or &#N; entities.
  • Comparing characters that look alike (Latin "a" 97 versus Cyrillic "а" 1072).
  • Documenting the exact characters of a name for a bug report about encoding.
  • Preparing test data of code points for a font, keyboard or text-processing routine.

Examples

Try this input in the tool above:

Input
Hi 😀 é 世
Output
72 105 32 128512 32 233 32 19990

Privacy

Text to Decimal Converter runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.

Limitations

A visible character can consist of several code points (for example a family emoji or a letter plus combining accent). Each code point gets its own number.

Frequently asked questions

What is the difference between code points and ASCII codes?

Code points identify characters (é = 233). ASCII/byte codes are storage bytes (é = 195 169 in UTF-8). For byte values, use Text to ASCII.

Why do I see several numbers for one emoji?

Many emoji are sequences: 👨‍👩‍👧 is three emoji joined by zero-width joiners (8205). Each part has a code point.

How do I get hex code points (U+1F600)?

Use the Unicode Inspector, which lists U+ notation, UTF-8 and UTF-16 for each character.

More tools in Encoding & Decoding →