Text ↔ Code Converter (Hex, Binary, Octal, Decimal, ASCII, UTF-16)
Local ProcessingConvert text to and from hexadecimal, binary, octal, decimal codes, ASCII or UTF-16.
How It Works & Processing Standards
Convert text to and from hexadecimal, binary, octal, decimal codes, ASCII or UTF-16.
Tool processing runs in your browser. If you create a calculator or conversion share link, its values are included in the URL. See the privacy policy for account, analytics and advertising data.
Current Limits
- Maximum input length: 100,000 characters
Shows which numbers characters are stored as. Choose one of twelve conversions under "Task"; hex, binary and octal work on UTF-8 bytes.
What You Can Do
- Hex, binary, octal
- Text becomes UTF-8 bytes, each written in the base. The reverse works too.
- Decimal code
- Each character’s Unicode code point in decimal (가 = 44032).
- ASCII code
- ASCII numbers (0–127) for letters, digits and symbols
- UTF-16
- The 16-bit code units used by JavaScript and Java strings
How to Use Text ↔ Code Converter (Hex, Binary, Octal, Decimal, ASCII, UTF-16)
- 1Choose a taskText → code or code → text, and the base.
- 2Enter inputSeparate bytes with spaces when entering codes.
- 3CopyCopy the result.
Examples
Text to hex
Input: Hi!
Result: 48 69 21
Binary to text
Input: 01001000 01101001
Result: Hi
A Korean code point
Input: 가
Result: 44032
Common Use Cases
- Reading raw bytes from files or network data
- Tracking down character encoding problems
- Computer architecture and data representation homework
Frequently Asked Questions (FAQ)
One Korean character gives three hex values.
In UTF-8 a Korean syllable is 3 bytes, like "EA B0 80". The decimal code is one number per character (44032).
What if I put Korean into ASCII code?
ASCII covers 0–127 only, so Korean cannot be represented and you are told so.
