← All tools/Utilities/Text/Text to Hex Converter
Text to Hex Converter
Turn plain text into hex bytes, or hex back into text — every byte shown, nothing leaves your browser.
Bytes
“Hi” is 2 characters → 2 UTF-8 bytes
Bytes:
How it works
Encode: text → UTF-8 bytes → each byte as two hex digits. Decode: hex pairs → bytes → UTF-8 text. “Hi” → H = 72 = 0x48, i = 105 = 0x69 → “48 69”.
“Hi” is two UTF-8 bytes: H is 72 in decimal, 0x48 in hex; i is 105, 0x69 — so the output is “48 69”. The euro sign “€” is three bytes, E2 82 AC, and “Hello” is five bytes, 48 65 6C 6C 6F.
Encoding is UTF-8 (RFC 3629). Decoding ignores spaces and odd trailing digits. Nothing leaves your browser. Last updated November 2026.
Frequently asked questions
What is hex, in plain words?
Hexadecimal is base 16: each byte (0–255) is written as two characters from 0–9 and A–F. “H” is byte 72, written 48 in hex; “i” is byte 105, written 69.
Why is “€” three bytes?
Text is encoded as UTF-8, where characters outside basic English take more than one byte. “€” is U+20AC, which UTF-8 stores as the three bytes E2 82 AC.
How do I decode hex back to text?
Switch to “Hex → text”, paste the hex with or without spaces, and the tool rebuilds the bytes and decodes them as UTF-8. Odd trailing digits are ignored.
Uppercase or lowercase hex — does it matter?
No — 4A and 4a mean the same byte. Pick whichever style your other tools expect.
Tell us what you think
Loving this tool, or stuck on something? Tell us — it takes a minute.
We’ll only use your name and email to reply if needed. The tool and page are filled in for you.