How-to guide
How to Convert Text to Decimal Online: Free Tool Guide
To convert text to decimal, replace each character with its decimal Unicode code point — the number assigned to that character in the Unicode standard. The word "Hello" becomes 72 101 108 108 111, because H is code point 72, e is 101, l is 108, and o is 111. The free Text to Decimal tool on hellagape.com does this instantly as you type, entirely in your browser: paste text into the input field and the decimal values appear in the result panel, with nothing sent to a server.
At a glance
| Tool | Text to Decimal |
| What it does | Converts each character into its decimal Unicode code point |
| Input | Any text — letters, digits, punctuation, spaces, symbols |
| Output | Space-separated decimal numbers, one per character |
| Cost | Free, no account, no trial, no export limit |
| Privacy | Runs locally with JavaScript; nothing is transmitted anywhere |
How to convert text to decimal with the tool
- Open the Text to Decimal tool.
- Paste or type your text into the "Input to convert" field.
- Read the result panel — it updates instantly as you type, showing one decimal number per character, separated by spaces.
- Copy the output for use in your code, spreadsheet, or documentation.
There are no options to configure and no Convert button to press: the conversion is live. If the input looks malformed — hidden characters or mixed line endings are the usual culprits — the tool warns you instead of silently producing garbage.
Worked examples
Every value below was computed and verified: each decimal number is the character's Unicode code point (the same value Python's ord() returns).
Example 1 — a single letter
| Text | Decimal |
|---|---|
| A | 65 |
Example 2 — a word
| Character | H | e | l | l | o |
|---|---|---|---|---|---|
| Decimal | 72 | 101 | 108 | 108 | 111 |
So "Hello" converts to 72 101 108 108 111.
Example 3 — with punctuation and a space
"Hi!" converts to 72 105 33 — H is 72, i is 105, and ! is 33. A space is a character too: "Hello World" converts to 72 101 108 108 111 32 87 111 114 108 100, where 32 is the space between the words. Forgetting the space is the most common reason a hand conversion doesn't match a tool's output.
Example 4 — digits are characters, not values
The text "123" converts to 49 50 51, not to the number 123. Each digit character has its own code point: '1' is 49, '2' is 50, '3' is 51. Text to decimal converts characters, so a string of digits becomes a list of digit-character codes.
Example 5 — accented characters
"café" converts to 99 97 102 233. The é is a single character with code point 233, so it produces one number. This is where code points and UTF-8 bytes part ways — see the next section.
The method in plain words
Text to decimal is a lookup, not a calculation. Unicode assigns every character a unique number called a code point, written in decimal (base 10) here. Converting text means walking through the string one character at a time and writing down each character's code point:
- Take the first character.
- Find its code point in the Unicode table (for basic English text, the ASCII table gives the same numbers — ASCII is the first 128 code points of Unicode).
- Write the number down.
- Move to the next character and repeat.
For ASCII characters the ranges are worth memorising: space is 32, digits '0'–'9' are 48–57, uppercase A–Z are 65–90, and lowercase a–z are 97–122. Uppercase and lowercase letters differ by exactly 32 — 'A' is 65 and 'a' is 97 — which is why case-insensitive comparisons in code often add or subtract 32.
Code points vs UTF-8 bytes. The hellagape tool outputs code points: one number per character. Some other converters output UTF-8 bytes instead, where a character outside ASCII becomes two to four numbers. The é in "café" is code point 233 (one number), but its UTF-8 encoding is the two bytes 195 169. The euro sign € is code point 8364, but three UTF-8 bytes: 226 130 172. Neither is wrong — they answer different questions — but mixing them up corrupts data, so check which one your tool produces. For plain English text the two are identical, because UTF-8 encodes the first 128 code points as single bytes with the same values.
Doing it in code
Most languages expose the code point directly:
- Python:
[ord(c) for c in "Hello"]gives[72, 101, 108, 108, 111]. - JavaScript:
"Hello".split('').map(c => c.charCodeAt(0))gives the same list for ASCII text. For characters outside the basic multilingual plane,codePointAtis the correct call. - PHP:
ord($char)returns the byte value of a single-byte character.
The reverse direction — decimal back to text — is chr() in Python and PHP, and String.fromCodePoint() in JavaScript. Hellagape's Decimal to Text tool does the reverse conversion in the browser.
Tips and common mistakes
- Count the spaces. Every space is code point 32 and produces a number. If your output has fewer numbers than your input has characters, a space or line break went missing.
- Digits are not numbers. "123" becomes 49 50 51. If you want the numeric value of a digit string, that's a parse, not a conversion.
- Watch line endings. Text pasted from Windows files may carry carriage returns (13) before line feeds (10). The tool warns when input looks malformed, but a stray 13 in the output usually means a
\r\nline ending came along for the ride. - Know which output you need. Code points (one number per character) suit character-level work; UTF-8 bytes suit storage and transmission. For non-English text the two differ, and using one where the other is expected is a classic source of mojibake.
- Base64 is not decimal. If you need text as transport-safe ASCII, that's Base64 encoding, a different conversion entirely.
Related converters
Text to decimal sits in a family of character converters on hellagape.com: Text to Binary, Text to Hex, and Text to Octal convert the same characters into other bases, while Decimal to Text, Binary to Text, and Hex to Text run in reverse. The Text to ASCII tool covers the ASCII-only subset.
Frequently asked questions
How do I convert text to decimal? Replace each character with its decimal Unicode code point. "Hello" becomes 72 101 108 108 111. The free Text to Decimal tool does it instantly as you type — paste text in, read the numbers out.
What is the decimal value of the letter A?
- Uppercase A is Unicode code point 65 (and ASCII 65). Lowercase a is 97.
What is the difference between ASCII and Unicode decimal values? For the first 128 characters they are identical, because Unicode's first 128 code points are ASCII. Beyond that, ASCII has no values — é, €, and emoji exist only in Unicode, with code points 233, 8364, and higher.
Is text to decimal the same as text to UTF-8 bytes? Only for plain ASCII text. The hellagape tool outputs code points — one number per character, so é is 233. UTF-8 byte converters output 195 169 for the same character. Check which your downstream system expects.
How do I convert decimal back to text? Map each number back to the character with that code point: 72 101 108 108 111 becomes "Hello". In code that's chr() (Python, PHP) or String.fromCodePoint() (JavaScript); in the browser, use the Decimal to Text tool.
Why does "123" convert to 49 50 51 and not 123? Because the input is text, and each digit is a character with its own code point: '1' is 49, '2' is 50, '3' is 51. Converting the string "123" to the number 123 is parsing, a different operation.
Is the Text to Decimal tool free and private? Yes. It is completely free with no account, no trial, and no export limit, and it processes everything locally with JavaScript — nothing you paste is transmitted to Hellagape or any third party, and closing the tab clears the data.
What are text to decimal conversions used for? Debugging encoding problems, inspecting hidden characters in strings, preparing character-level data for protocols and file formats, teaching how computers store text, and verifying that two systems agree on what a string actually contains.
Try it now
Text to Decimal
Convert each character into its decimal Unicode code point.
Keep reading