Decimal converter
Convert text to decimal and the other way for any string input.
About this tool
The decimal converter turns text into the decimal (base 10) values of its bytes, and those numbers back into text. “Hi” becomes 72 105, because the byte for H is 72 and for i is 105.
How to use the decimal converter
- Choose To decimal or To text.
- Type or paste your text, or numbers from 0 to 255 separated by spaces, commas or new lines.
- Copy the result.
Bytes, not characters
The text is encoded as UTF-8, the standard on the web, and each byte is written as a number from 0 to 255. English letters take one byte, so they match their ASCII codes, but é takes two bytes (195 169) and an emoji four. That way every piece of text can be turned into numbers and back without losing anything.
If you want one number per character instead, such as 233 for é, use the ASCII converter, which gives each character’s Unicode code point.
Where it’s used
Byte values in decimal turn up in programming exercises, in byte arrays printed by languages like Java and Python, and when debugging how text is stored or sent. The same bytes can be shown in binary, hex or octal with the other converters. Everything happens in your browser.