About this tool
Each character is turned into its UTF-8 bytes and every byte is shown as two hex digits, so an emoji becomes four bytes while plain English letters stay one byte each. Choose spaces, colons, no separator, 0x prefixes or \x escapes to match the format your code or protocol expects. Encoding happens on your device as you type.
How to use Hex Encoder
- Type or paste text into the input box.
- Choose a byte separator and letter case.
- Copy the hex output.
- Use Swap to turn the hex back into text and check it.
Frequently asked questions
Why does one character produce several bytes?
Characters outside basic ASCII, such as accented letters, symbols and emoji, take two to four bytes in UTF-8.
Which separator should I pick?
Use \x for string literals in C, Python or JavaScript, 0x for byte arrays, colons for MAC-style dumps and no separator for compact hashes.