Text To Decimal
Display text as decimal Unicode code points for character-encoding study or inspection. The numbers identify characters and are not the byte values of a UTF-8 file.
- Runs in your browser
- Nothing is uploaded
- No signup; device limits apply
Loading the tool. If it does not appear, reload this page.
How to use this tool
Enter text and choose spaces, commas or line breaks as separators. Supplementary characters are read as one code point across a surrogate pair, while combining characters remain separate.
Results and examples
A becomes 65 and 😀 becomes 128512. A single-looking emoji sequence can contain several code points, so the count of output numbers is not necessarily the number of visible characters.
Limitations
- Decimal code points differ from a UTF-8 byte array.
- Normalization and grapheme clustering are not performed to combine every visible character.
Fields
| Field | Guidance and constraints |
|---|---|
| Text | Check the unit and format displayed beside this field. |
| Separator | Check the unit and format displayed beside this field. |
| Code points (decimal) | Check the unit and format displayed beside this field. |
Data handling
Processing stays in the current browser tab; the site does not upload tool input for the calculation itself.
Sources
Frequently asked questions
What numbers represent A and an emoji?
A becomes 65 and 😀 becomes 128512. A single-looking emoji sequence can contain several code points, so the count of output numbers is not necessarily the number of visible characters.
Does the output count equal visible characters?
Decimal code points differ from a UTF-8 byte array. Normalization and grapheme clustering are not performed to combine every visible character.