Text to Decimal Converter
Get the Unicode number of every character: "é" is 233, "世" is 19990 and 😀 is 128512.
Processed locally in your browser/ Your data stays in your browser.
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?
- Type or paste your text, including any emoji or non-Latin characters.
- Select the separator between numbers.
- 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:
Hi 😀 é 世
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.
Related tools
Decimal to Text Converter
Paste decimal Unicode code points and get the characters they stand for, emoji included.
Encoding & Decoding
Text to ASCII Converter
List the ASCII / byte code of every character, for example "Hi" → 72 105.
Encoding & Decoding
Unicode Character Inspector
Paste text or an emoji and see exactly which code points, bytes and scripts it is made of.
Encoding & Decoding
Unicode Escape Converter
Turn é, ☕ and 😀 into \u00E9, \u2615 and \uD83D\uDE00 (or another escape style) for source code, JSON or CSS.
Encoding & Decoding
Text to Hex Converter
See the exact bytes behind any text, from a quick "Hello" to emoji, formatted the way your code or debugger expects.
Encoding & Decoding
HTML Entities Encoder
Escape markup characters, or turn every non-ASCII character into an entity such as é or é.
Encoding & Decoding