← All tools
// ENCODERS

Text to Decimal online

Convert text to decimal ASCII/Unicode code points — and decimal back to text.

Text to Decimal Converter logo
by
CHUNKY
MUNSTER
INPUT0 CHARS
OUTPUT0 CHARS

About Text to Decimal

Each character is converted to its Unicode code point as a decimal number, separated by spaces. This is useful for encoding text in numeric form for transmission or analysis. Runs entirely in your browser.

How to Use the Text to Decimal Converter

  1. Paste or enter your input into the text field.
  2. Configure any options (format, delimiter, encoding, or mode) using the controls above the output.
  3. The result updates instantly — no submit button required for most operations.
  4. Click Copy or Download to take the output to your next step.

Paste your text and the tool emits one decimal number per Unicode code point — 'A' becomes 65, 'é' becomes 233, '🎉' becomes 127881. It uses String.prototype.codePointAt rather than charCodeAt, which means surrogate pairs (most emoji and CJK extension characters) are returned as a single number above 0xFFFF instead of being split.

How the Text to Decimal Converter Works

Decoder mode accepts space-separated decimal numbers and reconstructs the string with String.fromCodePoint. Numbers larger than 0x10FFFF (1,114,111) are invalid Unicode code points and will produce a replacement character. Useful for inspecting raw character values when debugging encoding issues, or for embedding code points in numeric escape sequences.

Frequently Asked Questions

Why is an emoji one number here but two numbers in older tools?

We use codePointAt, which returns the actual Unicode code point. Older tools using charCodeAt return UTF-16 code units, so emoji and rare CJK characters get split into a high and low surrogate pair.

What's the highest valid decimal value?

1,114,111 (0x10FFFF) — the highest Unicode code point. Anything above that is invalid and decodes to the replacement character (U+FFFD = 65533).

Can I use a comma instead of a space between numbers?

The separator on output is configurable. The decoder accepts any whitespace or comma between numbers.

Does it support negative numbers?

No — Unicode code points are non-negative integers from 0 to 1,114,111. Negative input is ignored.

Explore the full suite of ENCODERS tools and 290+ other free utilities at Chunky Munster.