Text to Decimal Converter

Enter text or decimal code points to convert.

Result

72 105 32 8364
4 numbers
Text to decimal

How it is calculated

In text to decimal mode the tool reads your text as UTF-8 and returns the Unicode code point of each character as a base-10 number, separated by spaces. A code point is a character's number in the Unicode table: for example H is 72 (U+0048). In decimal to text mode it does the reverse: numbers separated by spaces or commas are turned back into characters. Each number must be a whole number up to U+10FFFF (1,114,111) and not in the surrogate range 55296 to 57343; leading zeros are fine. Anything else, such as negatives, hex like 0x48 or empty input, gives no result. The count shows how many numbers or characters were handled.

Worked example

Convert the text "Hi €". Take it one character at a time. H is code point 72, i is 105, the space is 32, and the euro sign € is 8364 (U+20AC). Joined by spaces, the tool returns 72 105 32 8364, and the count shows 4 numbers. Switching to decimal to text mode and entering 72 105 32 8364 gives back exactly Hi €, which confirms the round trip.

Try this example →

Common mistakes

  • Expecting one number per visible symbol. An accented letter written as base letter plus combining mark (e plus U+0301) gives two numbers (101 769), while the precomposed é gives one (233), and a family emoji is several code points joined by 8205.
  • Forgetting that spaces and line breaks count. A space is 32 and a newline is 10, so they appear as numbers in the output.
  • Typing hexadecimal (0x48, U+0048 or 48) in decimal to text mode. The numbers must be decimal; 72 gives H, but 48 gives the digit 0.
  • Confusing code points with byte values. For ASCII they match, but € is 8364 as a code point and takes three bytes in UTF-8, none of which is 8364.
  • Entering numbers in the surrogate range 55296 to 57343 or above 1114111. They are not valid characters and nothing is returned.

Sources

About this calculator

Every character a computer displays is internally stored as a number — its Unicode code point — and this converter maps each character in your text to that number’s decimal value, so the word “Hi” becomes “72 105” (72 for “H”, 105 for “i”), with each code point separated by a space. This is the same underlying numbering used by Unicode’s more familiar hexadecimal notation (U+0048 for “H”), just expressed in base 10 instead of base 16.

Programmers reach for this kind of conversion when debugging character-encoding issues, working with low-level string or byte representations, or teaching how text is actually represented in memory — since ASCII and Unicode assign every letter, digit, punctuation mark, and emoji a specific numeric identity long before it’s rendered as a glyph on screen. The conversion works in both directions: paste text to get its decimal code points, or paste space-separated decimal numbers to reconstruct the original text.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    A handy debugging trick: when two strings look identical but a program says they differ, paste both here and compare the numbers. A non-breaking space shows up as 160 instead of 32, and a zero-width space shows up as 8203, even though neither is visible on screen. Curly quotes also differ from straight ones, 8217 against 39. What invisible character has ever broken one of your imports? Tell us about the strangest one.

Popular calculators

All Calculators