Text to Decimal Converter

Safely encode standard readable text accurately instantly into underlying standard base-10 decimal byte sequences locally.

Text
0 characters
Decimal
0 bytes
info

About Text to Decimal Converter

Text to Decimal Converter takes any string you type or paste and returns the UTF-8 byte values of every character as space-separated decimal numbers (base-10 integers between 0 and 255). Each character maps to one byte for standard ASCII letters, digits, and punctuation, and to two, three, or four bytes for accented characters, symbols, and emoji. The output is the raw byte sequence that a computer stores when it encodes your text in UTF-8.

Developers reach for decimal notation when they need to inspect character byte values in a format that is easier to read than binary, or when a target system requires decimal-encoded payloads rather than hexadecimal. Common tasks include checking whether a specific character is in the ASCII range (0-127), verifying how a multi-byte Unicode character is encoded before packing it into a network frame, or preparing test data for byte-array constructors in languages like Java, C, or Python.

The conversion runs entirely inside your browser using the native TextEncoder API — no data is sent to a server, no account is required, and there are no character or paste limits. The result updates as you type so you can watch individual byte values appear for each character you add.

star

Key Features

check_circle

Real-time byte-by-byte output

Decimal values update as you type, so you can watch exactly how each character contributes bytes to the encoded sequence without clicking a button.

check_circle

Accurate UTF-8 multi-byte encoding

Uses the browser TextEncoder API to produce the actual UTF-8 byte sequence. Emoji and accented characters correctly produce 2-4 decimal values rather than a single number.

check_circle

Space-separated decimal format

Output is plain space-delimited integers, the standard format for byte-array literals in C, Java, and Python, and for decimal payloads in protocol documentation.

check_circle

Client-side only — nothing uploaded

No text leaves your browser. The conversion runs locally in JavaScript, so passwords, API keys, and other sensitive strings stay on your machine.

check_circle

Byte count displayed live

A byte counter below the output pane shows how many decimal values are in the result, which is especially useful when working with fixed-size buffers or length-prefixed protocols.

check_circle

Built-in reference examples

One-click examples for common inputs (Hello, ABC, 123) let you verify expected values instantly and use them as sanity checks against your own data.

help

How to Use

01

Paste or type your text

Enter any string in the left pane — plain English, a URL, an emoji sequence, or any mix of Unicode characters.

02

Read the decimal output

The right pane shows a space-separated list of decimal byte values that updates instantly as you type.

03

Copy the result

Click the Copy button in the output pane header to place the decimal sequence on your clipboard, ready to paste into code or documentation.

code_blocks

Example

Each character encodes to its UTF-8 byte value in decimal. The space character is 32; uppercase letters start at 65; lowercase letters start at 97.

Text input
Hello, World!
Decimal bytes (UTF-8)
72 101 108 108 111 44 32 87 111 114 108 100 33
lightbulb

Common Use Cases

  • arrow_circle_right

    Inspecting UTF-8 byte sequences

    When debugging encoding issues — garbled characters, off-by-one length errors, or payload corruption — decimal output lets you see exactly which byte values are present and whether they match the expected UTF-8 encoding for each character.

  • arrow_circle_right

    Building byte-array literals in code

    Languages like Java, C, and Python accept byte arrays as comma- or space-separated decimal integers. Paste your string here, copy the output, and drop it directly into array initializer syntax without manual ASCII table lookups.

  • arrow_circle_right

    Verifying ASCII range compliance

    If a system requires pure ASCII input (all byte values 0-127), checking the decimal output immediately shows whether any character exceeds 127 and would cause encoding problems.

  • arrow_circle_right

    Preparing decimal-encoded protocol payloads

    Some network protocols and file format specifications define their data in decimal byte notation rather than hex. This tool produces exactly that format for any string you need to encode.

  • arrow_circle_right

    Teaching and learning character encoding

    Seeing that the letter 'A' is 65, a space is 32, and an emoji like a smiley face expands into four separate decimal values makes UTF-8 encoding tangible and easy to reason about for students and developers new to the topic.

quiz

Frequently Asked Questions

What does Text to Decimal actually convert? expand_more
It converts each character in your text to its UTF-8 byte value expressed as a decimal (base-10) integer. A standard ASCII character like 'A' produces one value (65), while a multi-byte Unicode character like an emoji may produce 3 or 4 separate decimal values.
How is this different from Text to Hex? expand_more
Both tools encode your text as UTF-8 bytes, but they express the byte values in different number bases. Text to Hex outputs hexadecimal (base-16, e.g. 48 65 6c), while this tool outputs decimal (base-10, e.g. 72 101 108). Use decimal when the target system, protocol, or language expects base-10 byte integers; use hex when working with hex editors, CSS color values, or systems that conventionally display bytes in hex.
How is this different from Text to Binary? expand_more
Text to Binary shows each byte as eight 1s and 0s (e.g. 01001000 for 'H'), which is useful for understanding bit-level structure. Text to Decimal shows the same byte as its base-10 integer (72 for 'H'), which is more compact and directly usable in code as an integer literal.
Why does an emoji produce multiple decimal values? expand_more
Emoji are Unicode code points above U+007F, so UTF-8 encodes them using 3 or 4 bytes. Each byte gets its own decimal value in the output. For example, the character U+1F600 encodes to 4 bytes: 240 159 152 128.
Can I convert the decimal values back to text? expand_more
Yes. Use the companion Decimal to Text tool on this site. Paste the space-separated decimal numbers and it will decode the UTF-8 byte sequence back into the original string.
Is my input data private? expand_more
Yes. The conversion uses the browser's built-in TextEncoder API and runs entirely in JavaScript on your device. Nothing is sent to a server, logged, or stored.
What character encoding does this tool use? expand_more
The tool always uses UTF-8, which is the dominant encoding on the web and in modern software. Every character in the Unicode standard can be represented in UTF-8, so the tool handles any language, symbol, or emoji correctly.
What is the decimal value of a space character? expand_more
A standard ASCII space (U+0020) encodes to the decimal value 32. This is a common reference point when manually reading a decimal byte sequence — any 32 in the output marks a space between words.