Text to Hex Converter — UTF-8 Safe
Convert text to hexadecimal bytes (UTF-8 encoded), or decode hex back to text. Live update, choose separator and case.
Runs in your browser.
What text-to-hex means
Hexadecimal is base-16 — each digit covers 4 bits, and every byte takes exactly two hex digits. Hex is the compact, human-readable way to display raw bytes. Hello in UTF-8 bytes is 48 65 6c 6c 6f (or 48656c6c6f without separators).
Where you see hex bytes
- File / memory hex dumps in debuggers and forensics tools.
- Network packet inspection (Wireshark, tcpdump).
- Cryptographic keys and digests (SHA-256 output is 64 hex chars).
- JWT signatures and OAuth tokens.
- Binary protocols documentation — request/response bytes shown in hex.
- UUIDs — 32 hex chars (with optional hyphens).
- MAC addresses — 12 hex chars in 6 colon-separated pairs.
Tips
- Decoding accepts any separator — spaces, colons, hyphens, newlines all get stripped.
- UTF-8 multi-byte characters use multiple hex bytes.
- For cryptographic comparisons, lowercase no-separator is conventional.
- MAC address format uses colons:
de:ad:be:ef:12:34.
FAQs
Is anything uploaded?
No.
Why does the emoji produce many hex bytes?
UTF-8 uses 3-4 bytes for emojis.