Text to Decimal

Each character mapped to its decimal code point

  • 100% Free
  • Files stay private
  • Works in your browser
Try it now·Text to Decimal

Each character is converted to its decimal character code (and back) entirely in your browser. Use Swap to run the inverse conversion.

How it works

  1. Add your text

    Type or paste any text into the Text box to see the decimal code behind each of its characters.

  2. Press Convert

    Press Convert to turn each character into its decimal character code, separated by spaces. It also updates as you type.

  3. Copy the decimal codes

    The codes, such as 72 105 for Hi, appear in the Decimal codes result box, with a Copy button to copy them.

Convert any text into its decimal character codes instantly, space-separated code points generated right in your browser.

What is Text to Decimal?

Text to Decimal is an encoder that converts each character of your text into its decimal (base-10) character code. Working one Unicode code point at a time, it outputs space-separated numbers, so "Hi" becomes 72 105. It matters because decimal code points are the most familiar way to reference characters, the same values you would pass to a character-code function in most programming languages.

Who Benefits from This Tool

  • Developers: generate decimal code points for character maps, escapes, or test data.
  • Students: learn how letters and symbols correspond to numeric character codes.
  • Web developers: find the decimal values behind HTML numeric character references.
  • Technical writers: document the exact code point of a special or invisible character.
  • QA engineers: capture precise character values to reproduce encoding issues.

Key Features

  • Per-character encoding: each character maps to its own decimal code point for a clear one-to-one result.
  • Full Unicode support: emoji and accented letters encode as whole code points, not fragments.
  • Space-separated output: tokens are cleanly delimited so the result decodes back exactly.
  • Swap direction: flip the tool in place to turn decimal codes back into text.
  • Try sample: load a ready-made example to see the expected output at a glance.
  • One-click copy: copy the generated codes with the built-in button.
  • Client-side only: your text is processed locally and never uploaded.

How to Use

  1. Type or paste the text you want to encode into the input box.
  2. Click Convert to generate the decimal character codes.
  3. Read the space-separated numbers in the highlighted output and copy them if needed.
  4. Use Swap to decode the numbers back to text, or Reset to clear and start over.

Common Use Cases

  • Finding the decimal code point behind a character for an HTML numeric reference.
  • Building test fixtures that reference characters by their code values.
  • Documenting the exact code point of a tricky or non-printing character.
  • Teaching how text maps to numeric character codes.
  • Preparing decimal-encoded data for scripts and parsers.

Tips and Best Practices

  • Each token is one character's Unicode code point, so multi-byte characters appear as a single decimal value.
  • Keep the spaces between tokens if you intend to decode the result later. They preserve the mapping.
  • Use Swap after converting to verify your codes round-trip back to the original text.
  • Load the sample first to confirm the expected space-separated format.
  • These are code points, not UTF-8 bytes, so an emoji yields one number rather than several.

Limitations and Notes

This tool runs entirely in your browser, so nothing you type is uploaded. It encodes text per character into decimal code points rather than a byte-level representation. An astral character such as an emoji produces one decimal value, not multiple bytes. If the input is empty, the tool will prompt you to enter some text before converting.

FAQs

They are Unicode code points in decimal, one number per character. For example, "Hi" becomes 72 105.

No. They are code points, not a byte-level UTF-8 encoding, so a multi-byte character appears as a single decimal value.

Yes. The encoder walks the input by code point, so emoji and accented characters each convert to one correct decimal value.

Yes. After converting, click Swap to run the inverse and decode the decimal codes back into readable text.

No. All encoding happens locally in your browser, so your input never leaves your device.

For characters within the ASCII range the values match, but this tool covers the full Unicode range, so it handles characters well beyond ASCII too.

More Binary Converter Tools

Other tools in Binary Converter Tools.

All Binary Converter Tools