Text to Decimal Converter
Safely encode standard readable text accurately instantly into underlying standard base-10 decimal byte sequences locally.
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.
Key Features
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.
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.
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.
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.
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.
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.
How to Use
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.
Read the decimal output
The right pane shows a space-separated list of decimal byte values that updates instantly as you type.
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.
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.
Hello, World! 72 101 108 108 111 44 32 87 111 114 108 100 33 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.