Text to Decimal Converter
The Text to Decimal Converter converts each character of whatever you type into Text Input into its decimal code point. Click Convert and the numbers show up in Decimal Output, in the same order as your original text. Enter a hex value into the hex to int c# and click Convert to see both the integer result and its C# equivalent.
How to Use the Text to Decimal Converter
Step-by-Step Guide
- Type or paste your text into Text Input: Any text — names, sentences, punctuation, or symbols — works here.
- Watch the conversion happen live: Each character's decimal code point appears in Decimal Output as you type, with no button required — though a Convert button is also available if you'd rather click.
- Copy your result: Use the Copy button next to the output box to grab the decimal values for use elsewhere.
- This converter reads each character's real Unicode code point, so it isn't limited to the basic 128-character ASCII range — accented letters and other non-English characters convert the same way as plain A–Z text.
- To reverse the process — turning decimal code points back into text — use the Decimal to Text Converter on this site. When decoding, separate each decimal value with a space or a new line.

Understanding Character Encoding: ASCII, Unicode, and Decimal Code Points
What Is ASCII, and How Does It Relate to This Tool?
ASCII (American Standard Code for Information Interchange) is the original character-encoding standard for digital text, built around 128 7-bit codes. It assigns every basic Latin letter, digit, punctuation mark, and control character a unique decimal code point from 0 to 127. The fastest way to turn hex-encoded data back into plain text is to paste it into the hex to text converter.
- Letters
- Uppercase A–Z use codes 65–90; lowercase a–z use codes 97–122.
- Digits
- The characters 0–9 use codes 48–57 — note this is the character '5', not the number 5 itself, which is why "5" converts to 53, not 5.
- Punctuation & Control Codes
- Common punctuation (such as
!,.,?) and control characters (likeNUL,LF,CR) round out the ASCII table, covering formatting characters such as newline and tab.
Beyond ASCII: Full Unicode Support
This tool isn't limited to the 128 basic ASCII characters. It reads each character's actual Unicode code point, whatever that character is — so accented letters, symbols, and characters from other writing systems all convert correctly, not just plain English text. This matches how modern text is actually represented in software: ASCII is really just the first 128 code points of the much larger Unicode standard.
Conversion Table: Character to Decimal, Hex, and Binary Reference
Worked Examples
A few typical text-to-decimal conversions: When you're working with signed binary arithmetic, the hex twos complement calculator calculates the correct negated value for your chosen bit width.
Hello = 72 101 108 108 111 hello = 104 101 108 108 111 John 123 = 74 111 104 110 32 49 50 51
- Converting 'Hello' to decimal:
- Look up each character's code point: H=72, e=101, l=108, l=108, o=111.
- Result: 72 101 108 108 111
- Converting a phrase with spaces and digits ('John 123'):
- J=74, o=111, h=104, n=110, space=32, 1=49, 2=50, 3=51
- Result: 74 111 104 110 32 49 50 51
- Non-printable control characters: a newline (LF) converts to 10, and a tab (HT) converts to 9 — useful when you need to confirm exactly which whitespace character is embedded in a string.
Full Reference Table: Character, Decimal, Hex, and Binary
| Character | Decimal | Hexadecimal | Binary |
|---|---|---|---|
| NUL | 0 | 00 | 00000000 |
| SOH | 1 | 01 | 00000001 |
| HT (Tab) | 9 | 09 | 00001001 |
| LF (Newline) | 10 | 0A | 00001010 |
| Space | 32 | 20 | 00100000 |
| ! | 33 | 21 | 00100001 |
| 0 | 48 | 30 | 00110000 |
| 1 | 49 | 31 | 00110001 |
| A | 65 | 41 | 01000001 |
| Z | 90 | 5A | 01011010 |
| a | 97 | 61 | 01100001 |
| z | 122 | 7A | 01111010 |
| DEL | 127 | 7F | 01111111 |
For characters beyond code point 127 — accented letters, other-language scripts, and symbols — the same decimal code point logic applies; the table above just covers the common basic-ASCII range for quick reference.
Why Convert Text to Decimal Code Points?
- Encoding & obfuscation checks: Quickly seeing the numeric codes behind a string, or generating codes from text for a script.
- Debugging text encoding issues: Verifying exactly which character codes a string contains when something looks garbled or mismatched.
- Learning character encoding: Seeing the direct mapping between letters and their underlying numeric codes without a lookup table.
- CTFs & puzzles: Decoding or generating character-code-based ciphers and challenges.
Frequently Asked Questions
Does this support letters beyond basic English text?
Yes, it works with any Unicode character, not just the basic ASCII range — each character's actual code point is used, whatever it is.
Is this the same as encryption?
No — this is a direct, publicly-known representation of each character's code point, not a cipher. It doesn't provide any security or secrecy.
How should I separate decimal values when decoding?
Separate each value with a space or a new line — the reverse tool splits on whitespace and treats each token as one character's code.
Does this tool send my text anywhere?
No. Everything runs locally in your browser using client-side JavaScript. Nothing you type is uploaded or stored.