Text to Hex Converter
Convert text to hexadecimal bytes (UTF-8) in several styles, or decode hex bytes back into text.
Text and hex
Choose a direction and a hex style.
Result
Result
48 65 6c 6c 6f
5
UTF-8 bytes
Private: Everything runs in this page. Nothing you type is sent anywhere or saved.
On this page
Text to hex examples
| Text | Hex bytes |
|---|---|
| A | 41 |
| Hi | 48 69 |
| abc | 61 62 63 |
| Hello | 48 65 6c 6c 6f |
| é | c3 a9 |
Formula
each byte of the UTF-8 text is written as two hex digits (00 to ff)
How the text and hex works
- Step oneChoose Text to hex or Hex to text.
- Step twoPick how the bytes are written. Decoding accepts any of the styles.
- Step threeCopy the result from the box.
What this tool does not do
- It writes the UTF-8 bytes of the text, not another character set.
- It does not encrypt anything: hex is only another way of writing the same bytes.
- Hex to text needs complete pairs of digits.
Frequently asked questions
What is hexadecimal?
A way to write numbers with 16 digits: 0 to 9 and a to f. One byte is always exactly two hex digits.
Can I paste hex with 0x or backslash-x prefixes?
Yes. Decoding ignores 0x and \x prefixes, spaces, commas and colons.
Why do accented letters give two bytes?
In UTF-8 they take two bytes, so the e with an accent becomes c3 a9.