Text to Decimal Converter

Convert Text to Decimal instantly in your browser.

0 characters

0 characters

Everything is converted in your browser. Nothing you paste is uploaded or stored.

Advertisement

Worked example

Each row shows a short sample written as Text, and the same value converted to Decimal.

Text input Decimal output
Hi 72 105
SG 83 71
tool 116 111 111 108

About these formats

Text is ordinary human-readable characters. This tool treats text as UTF-8, so letters, punctuation, accented characters, Chinese and Tamil script, and emoji are all encoded as the exact byte sequence a computer would store.

Decimal is ordinary base 10. Each byte is written as a number from 0 to 255, separated by spaces, which makes it the easiest representation to read aloud or check by hand.

How to use this converter

  1. Paste or type your Text into the left box.
  2. The Decimal output appears immediately on the right — there is no button to press.
  3. Use Copy result to put the output on your clipboard, or Swap direction to convert Decimal back to Text.

Values may be separated by spaces or commas. For fixed-width formats you can also paste one unbroken run of digits and it will be split correctly.

When you would use this

Converting Text to Decimal comes up when you are debugging data that crosses a boundary — a file format, a network protocol, a database column, or a language runtime that reports values in a different base than your source.

It is also a common teaching exercise: seeing the same value in both Text and Decimal makes the relationship between character encodings and number bases concrete in a way that reading about it does not.

Frequently asked questions

Is my data sent anywhere?

No. The conversion runs entirely in your browser using JavaScript. Nothing you paste leaves your device, is logged, or is stored.

How should I separate values?

Spaces work, and so do commas, colons and semicolons. For binary, hex and octal you can also paste a single unbroken run of digits — it is split into bytes automatically.

Does it handle emoji and non-English text?

Yes. Text is treated as UTF-8, so accented characters, Chinese, Tamil and emoji all convert correctly. They simply take more than one byte each.

Why did I get an error?

The input contained a character that is not valid for the source format, a value above 255, or a run of digits that does not divide evenly into bytes. The message names the specific token so you can find it.

Related converters

Advertisement