String to Decimal turns text into decimal character codes. Type or paste your text, click the button and copy the numbers. It is free and runs in your browser.
Hello, World
72 101 108 108 111 44 32 87 111 114 108 100
Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.
This tool converts text into decimal numbers. Every character on a computer has a number, called its character code, and this tool lists those numbers for your text. For example, Hello becomes 72 101 108 108 111.
Type or paste your text and click the button. By default each number is a Unicode code point, so accents, other scripts and emoji work, for example é gives 233 and a waving hand gives 128075. Tick the option to write the UTF-8 bytes instead, where é gives 195 169. You can separate the numbers with a space, a comma and a space, or a new line.
Line breaks in your text are counted as characters too, and show up as 10.
Unless an option is named, each character becomes its Unicode code point and the numbers are separated by a space.
| Setting | Before | After |
|---|---|---|
| Sentence | Hello, World | 72 101 108 108 111 44 32 87 111 114 108 100 |
| Short text | Hi! | 72 105 33 |
| Comma and space | Hi! | 72, 105, 33 |
| New line | Hi! | 72 105 33 |
| Line break in the text | Hi Hi | 72 105 10 72 105 |
| Accents | café | 99 97 102 233 |
| Greek letters | Γειά | 915 949 953 940 |
| Emoji | Hi 👋 | 72 105 32 128075 |
| UTF-8 bytes on | café | 99 97 102 195 169 |
Finding the character codes of text for programming, puzzles, tests and teaching, and for checking which number a letter, symbol or emoji has.
Letters in the plain English alphabet have the same numbers in both modes, from 0 to 127. For accents, other scripts and emoji, code points give one number per character, while UTF-8 bytes give one to four numbers per character. Use the mode the next step expects.
To turn the numbers back into text, try Decimal to String. To see binary instead, try Text To Binary Code. To encode text for the web, try Base64 Encoder or Url Encode.
It converts text into decimal numbers. Each character is replaced by its character code, so Hello becomes 72 101 108 108 111.
Type or paste your text into the box and click Convert to Decimal. The numbers appear in the same box, and you can copy them with the Copy button.
It is the number a computer uses for a character, written in the ordinary base 10 that we count in. For example, H is 72 and a space is 32.
A code point is the number of one character, such as 233 for é. UTF-8 stores that character as one or more bytes, such as 195 169. By default the tool gives code points. Tick Write UTF-8 bytes instead of Unicode code points if you need bytes.
Yes. With code points, an emoji gives one number such as 128075, and letters from Greek, Arabic or other scripts give their own numbers.
Choose a space, a comma and a space, or a new line from the list under the text box. The default is a space.
A line break is a character too, so it becomes 10.
Use the Decimal to String tool.
The tool is free, needs no account and runs in your browser, so your text is not uploaded to a server.
Last updated: 17 November 2026