What this tool does
Convert text to UTF-8 hexadecimal bytes with two digits per byte. Choose continuous, space-separated, or 0x-prefixed output; these options change only the display, not the content.
- Full support for multi-language Unicode and newlines.
- Can output continuous Hex, space separated Hex or byte-wise 0x prefix.
- All encoding is done within the current browser, no external conversion services are called.
How to use it
- Enter the text to be encoded.
- Choose Continuous, Spaced or 0x Prefix.
- Click "Convert to Hex".
- Copy the results in the desired format.
Common uses
- Prepare UTF-8 Hex for byte protocol or test data.
- Check the actual UTF-8 bytes occupied by the character.
- Lossless round-trip validation with Hex → Text.
Privacy and security
Your input and results stay in your browser and are not uploaded or saved automatically. Copy any results you want to keep and save them yourself before leaving the page.
Text → Hex Features
Encode Unicode text into UTF-8 bytes and output in three common hexadecimal formats. Review the result, then copy it for use.
FAQ
Why doesn't a Chinese character only occupy one byte?
UTF-8 generally uses multiple bytes for non-ASCII characters, which is a normal encoding rule.
Is the content the same in all three formats?
Same. They only differ in the delimiter and 0x prefix.
Can emoji be converted correctly?
Yes. Emoji are converted to their corresponding UTF-8 bytes.
Will the text be sent to the server?
No, the conversion is performed entirely locally in the browser.