Text to Decimal Tool
Convert any text characters into their corresponding decimal values, with support for multiple encoding formats and output styles.
Browser execution mode: Your data is processed in your browser and is not uploaded to the server.
Speed and Stability: Processing speed depends on your device and browser. For large batch work, the desktop version may be more stable.
Loading tool, please wait...
Loading tool, please wait...
If the online tool fails to load or run, try the desktop tool.https://tools.yikeaigc.com/
Tool Usage
Return to old versionSupports any text, including Chinese, English, numbers, symbols, etc.
Processing...
Converting, please wait...
Error:
Success:
Conversion Stats
Characters: 0
Bytes: 0
Decimal Count: 0
Encoding: UTF-8
Conversion Examples
English: A → 65
Numbers: 1 → 49
Chinese:你 → 20320
Symbols: @ → 64
Tips
Encoding:UTF-8 supports all characters; ASCII supports English only; Latin-1 supports Western European characters
Mode:By character shows character code values; by byte shows each byte value
Chinese handling:Chinese characters produce multiple byte values in UTF-8
Instructions
Software Usage Instructions
- Enter text content: Enter the text to be converted in the text input box. Any characters are supported, including Chinese, English, numbers, and symbols.
- Select encoding format:
- UTF-8 (Unicode): Supports all characters, including Chinese, Japanese, emojis, etc.
- ASCII: Only supports English letters, numbers, and basic symbols (0-127)
- Latin-1: Supports the Western European character set (0-255)
- Select output format:
- Space-separated: numbers are separated by spaces (e.g., 65 66 67)
- Comma-separated: numbers are separated by commas (e.g., 65, 66, 67)
- Line-separated: each number appears on its own line
- No separator: all numbers are joined together (e.g., 656667)
- Select conversion mode:
- Convert by character: Displays the Unicode code value of each character
- Convert by byte: Displays the byte values of characters in the specified encoding
- Start conversion: Click the "Convert" button or enter text directly to automatically convert it into decimal values.
- Copy and reverse conversion: You can copy the conversion result, or use the "Reverse Conversion" feature to convert decimal values back into text.
FAQ
A: Text to decimal conversion is the process of converting text characters into their corresponding numeric codes. Each character has a unique numeric code in a computer, such as the letter 'A' corresponding to 65 and the Chinese character '你' corresponding to 20320. This is commonly used in programming, data analysis, and other fields.
A: ASCII can only represent 128 characters, mainly English letters, numbers, and basic symbols; UTF-8 is an implementation of Unicode and can represent almost all characters in the world, including Chinese, Japanese, emojis, etc. When ASCII is selected, only English characters can be entered.
A: Convert by character displays the Unicode code value of each character, with one value per character; Convert by byte displays the byte values of characters in a specific encoding, where one character may correspond to multiple byte values. For example, Chinese characters usually occupy 3 bytes in UTF-8 encoding.
A: In convert by byte mode, Chinese characters usually occupy 3 bytes in UTF-8 encoding, so 3 decimal values are displayed. If you choose convert by character, only one Unicode code value is displayed. This is normal and reflects the characteristics of different encoding methods.
A: The conversion results can be used in many areas: 1) programming debugging, viewing the numeric encoding of characters; 2) data analysis, processing text data; 3) cryptography research; 4) learning character encoding; 5) network protocol analysis, etc. Programmers often need to view the ASCII or Unicode values of characters.
A: After there are decimal values in the output box, click the "Reverse Convert" button to convert these values back to the original text. Make sure the value format is correct; they can be separated by spaces, commas, or line breaks. The system will automatically recognize the numbers and convert them into the corresponding characters.
A: The tool supports four output formats: space-separated (65 66 67), comma-separated (65, 66, 67), line-separated (one number per line), and no separator (656667). You can choose the appropriate format based on your usage needs and subsequent processing requirements.
A: The tool uses local processing and converts text of normal length very quickly. Processing extremely large text may take a few seconds, so it is recommended to process especially long text in sections. All processing is completed locally and is not uploaded to the server, ensuring data security.