Category: Developer tools
Text to Hex Converter
Encode text into UTF-8 hex bytes
Encode text into UTF-8 hex byte pairs, entirely in your browser.
Hex bytes
4c 6f 63 61 6c 54 6f 6f 6c 73
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
The text is first encoded as UTF-8, so a multi-byte character such as an emoji or an accented letter produces several two-digit hex byte pairs, matching what you would see inspecting the bytes on the wire or in a hex editor.
How to use it
- Type or paste the text you want to encode.
- Read the resulting hex byte pairs below.
- Copy the hex bytes for use elsewhere.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- Is my text uploaded anywhere?
- No. Encoding happens with JavaScript in your browser tab, so the text never leaves your device.
- Why does one character sometimes produce more than one byte pair?
- UTF-8 encodes characters outside the basic ASCII range as two to four bytes, so this tool shows every byte separately, the same way the text is actually stored.
- Is this the same as Base64 encoding?
- No. Base64 repacks bytes into a compact printable alphabet. This tool shows the raw UTF-8 bytes themselves as hex pairs.