Convert text into decimal numbers – full Unicode code points by default, so an emoji becomes a single number such as 128512 rather than several byte fragments.
Show calculation steps
Processed privately in your browser — nothing you paste is uploaded, logged or stored.
Bytes as ordinary numbers
Every byte is a number from 0 to 255, and this writes them in the base people read without conversion. It is less compact than hex and far easier to sanity-check: 65 is obviously A to anyone who has seen an ASCII table, where 0x41 needs a step of thought.
Worked example
"Hi" → 72 105 "A" → 65 "a" → 97 (32 apart, always) "é" → 195 169 as UTF-8 bytes
The gap of 32
Upper and lower case letters are exactly 32 apart in ASCII, which is one bit. That is not a coincidence: it is why case conversion was historically a single bitwise operation, and why some old systems could fold case for free.
Bytes or code points
For plain ASCII the two agree. Above 127 they diverge: é is one code point, 233, and two UTF-8 bytes, 195 and 169. Choosing the wrong one produces numbers that look plausible and are not what the other system expects.
Limits
Decimal is a readable representation, not an encoding you should transmit — it is bulky and has no self-describing structure. Use Base64 to move bytes. Everything is converted in your browser.
How to use the Text to Decimal
- Paste your text.
- Keep the unit on "Unicode code points" unless you specifically need the underlying UTF-8 bytes.
- Click "Convert to decimal".
Frequently asked questions
Why is an emoji a single large number here but several numbers elsewhere?
Because this tool defaults to code points, and every character – however exotic – has exactly one code point. In byte mode that same emoji appears as the four UTF-8 bytes that encode it.
What is the largest possible code point?
1114111, written U+10FFFF. That is the fixed upper bound of the Unicode code space. Values above it are invalid, as are the surrogate range 55296 to 57343, which exists only to support UTF-16.
How does this relate to HTML numeric entities?
Directly. An HTML numeric reference is the decimal code point wrapped in an ampersand-hash-semicolon, so 233 becomes é. The HTML Entity Encoder produces those references for you.