Developer tools TOOL
Text ↔ decimal
Convert between text and decimal UTF-8 bytes.
Enter your text
On-device processingText ↔ decimal · How to use
Convert between text and decimal UTF-8 bytes.
Example
A → 65
Things to know
Uses decimal notation for UTF-8 bytes, which can differ from Unicode code point values.
Output options
Your files and results are never sent to a server. Everything is processed in this browser.
How to convert text to decimal byte values
When a debugger or log prints byte values such as 72, 101, 108, find out which string they spell, or turn a string into a byte list for your code. No need to look up each value in an ASCII table.
When to use this tool
- Read byte values from a debugger as a string
- Look up ASCII codes without a reference table
- Build a byte value list for a test case
- Check how many bytes an accented letter takes
Step-by-step instructions
- Enter text or a list of numbers. Separate numbers with spaces or commas.
- Under Operation, choose Encode (text to decimal) or Decode (decimal to text).
- Choose Convert.
- Copy the result or download it as text-decimal.txt.
Frequently asked questions
Why is é shown as 195 169 instead of 233?
233 is the Unicode code point of é, but this tool shows the bytes UTF-8 actually stores, which are 195 and 169. To see code points written as escapes such as \u00e9, use the Unicode escapes tool.
Can I paste an array with brackets or negative numbers?
Numbers are separated only by spaces, line breaks, or commas, so remove the brackets first. Each value must be between 0 and 255; for signed bytes from a Java byte array, such as -61, add 256 to get the value to enter (195).
Can I use this to convert 255 to hexadecimal FF?
This tool reads a list of numbers as the bytes of text and decodes them into characters. To convert a single number between bases, use the number base converter.