Text to Decimal

Turn text into decimal. Every character becomes its base-10 byte value.

About the Text to Decimal converter

This tool converts text into decimal byte codes, the same base-10 numbers people use every day. Each character is encoded to its byte and shown as a plain number, so Hi becomes 72 105. These are the familiar ASCII and Unicode code point values, which makes the tool handy for lookups, teaching character encoding, and building numeric arrays from a string.

How to use it

  • Type or paste your text into the input.
  • The decimal codes appear immediately, one space-separated number per byte.
  • Copy the output to use in code, a spreadsheet, or notes.

A common use is generating a list of character codes to populate an array or to compare two strings byte by byte. Standard ASCII characters land in the range 0 to 127, while accented letters and emoji are multi-byte UTF-8 and produce several values each. The conversion runs in your browser, so the text you enter is never uploaded.

Frequently asked questions

What do the decimal numbers represent?

Each number is the byte value of a character. For common letters these match the ASCII code points, so a capital A is 65 and a lowercase a is 97.

What range do ASCII characters fall in?

Standard ASCII characters are values 0 to 127. Extended and multi-byte UTF-8 characters use higher byte values and produce more than one number each.

How are emoji handled?

Emoji are encoded as several UTF-8 bytes, so each emoji produces multiple decimal values, one per byte rather than a single number.

Is my text sent to a server?

No. The conversion is done in your browser, so the text never leaves your device.

Related tools