Text to Hex Converter
Convert text to hexadecimal and hex back to text. View ASCII values, hex codes, and decimal values side by side.
About this calculator
Convert text to hexadecimal and hex back to text, with the ASCII, hex and decimal values shown side by side. Paste, press a button, and copy.
Hex is how programmers view raw bytes.
How to use it
- Paste your text or hex.
- Press Text → Hex or Hex → Text.
- Press Copy.
How it works
Each character becomes its byte value written in two hex digits: H = 72 = 0x48, i = 105 = 0x69. So Hi is 48 69.
Worked example
Hello
| Hex | 48 65 6c 6c 6f |
| Decimal | 72 101 108 108 111 |
Tips and common mistakes
- Two hex digits equal one byte.
- Upper and lower case hex mean the same.
- Non-ASCII characters take several bytes in UTF-8.
- Check for stray spaces when decoding.
- Colours and memory addresses use hex too.
Frequently asked questions
What is hexadecimal?
A base-16 number system.
What is Hello in hex?
48 65 6c 6c 6f.
Why use hex?
It is compact and maps neatly to bytes.
Is 0x needed?
It is just a prefix.
Does it handle Unicode?
Basic ASCII is shown clearly.
Is it free?
Yes.