Convert text to hexadecimal – two hex digits per UTF-8 byte, or per code point. Hex is the standard way to display bytes in debuggers, hex editors and protocol dumps.
Show calculation steps
Processed privately in your browser — nothing you paste is uploaded, logged or stored.
How to use the Text to Hex
- Paste your text.
- Choose bytes or code points, a separator and whether to zero-pad each value.
- Click "Convert to hex".
Frequently asked questions
Why is hex the standard way to show bytes?
Because one byte maps exactly onto two hex digits, so the notation is compact, unambiguous and aligns neatly in columns. Binary is four times longer and decimal does not align to byte boundaries.
What is the difference between byte mode and code point mode here?
Byte mode shows the actual UTF-8 encoding – the letter e-acute appears as the two bytes C3 A9. Code point mode shows the character identity, U+00E9, as the single value E9. Both are correct answers to different questions.
Can I get output with 0x prefixes for source code?
Set the separator to comma and add the prefixes in your editor, or paste the result into the Text to Binary tool family as needed. The Hex to Text converter accepts 0x prefixes on input regardless.