Text to Hex Converter
Convert any text to its UTF-8 byte representation in hexadecimal. Runs entirely in your browser.
Plain text
Hex output
How text is converted to hex
Each character is first encoded as UTF-8 bytes — one byte for ASCII, two to four bytes for non-ASCII characters. Each byte is then written as two hexadecimal digits (00–FF). So the letter "A" (byte 0x41) becomes 41, and "👋" (bytes F0 9F 91 8B) becomes f09f918b.
When to use
- Producing hex dumps of string contents.
- Preparing raw byte literals for C/C++/Go source.
- Debugging non-ASCII data flowing through APIs.
- Feeding binary values into low-level protocols.
How to use
- Type or paste text into the left panel.
- Pick your separator and case preference.
- Click Encode →, then Copy or Download.
Privacy
All conversion is local. No data leaves your browser.
