Raw bytes of any file in hex and ASCII, with search and a data inspector
Text to Hex Converter
See the exact bytes behind a string, or read a hex dump from a log or packet capture as text.
Loading tool…
How to use text to hex converter
Choose Text to hex or Hex to text.
Type the text, or paste hex with or without spaces or prefixes.
Pick an output style: 48 65, 4865, 0x48, \x48 or %48.
Copy or download the result.
What this tool does
- Encodes text as UTF-8, so é is c3 a9 and an emoji is four bytes.
- Reads hex with spaces, commas, colons, 0x, \x or % prefixes, or one long run.
- Uppercase or lowercase output.
- Flags hex that is not valid UTF-8 instead of hiding the problem.
How the result is verified
Hex output is parsed back to bytes and decoded as UTF-8; it must equal your text exactly before the check turns green.
Frequently asked questions
Why is one character two or more hex bytes?
Only ASCII characters fit in one byte. UTF-8 uses two bytes for most accented Latin, Greek and Cyrillic letters, three for most Asian scripts and four for emoji.
Can I paste a hex dump with addresses in it?
Remove the address column and the text column first; this tool reads only hex digits and separators. For a full file view, the hex viewer shows offsets for you.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Text to 8-bit binary and binary back to readable text
Characters to decimal codes and codes back to text
Text or files to Base64, Base64url or a data URL, with UTF-8 support
Code point, bytes and category of every character, hidden ones flagged