Text to Decimal Converter
Enter text or decimal code points to convert.
Result
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.
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
- RFC 3629: UTF-8, a transformation format of ISO 10646 — IETF, STD 63, 2003
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.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
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.