Text to Hex Converter - Hexadecimal, Done Properly
Hex is how computers show raw bytes: colors, files, memory and network data all speak it. Type text below to see it as hex, or paste hex to read what it says. Unlike naive converters, this one encodes proper UTF-8, so letters like "é", Urdu script and even emoji convert correctly.
How to use the Text to Hex Converter
- Type or paste plain text and click "Text to Hex" - every byte appears as two hex digits.
- Choose whether bytes are separated by spaces, ready to paste into code or a hex editor.
- To decode, paste hex (with or without spaces) and click "Hex to Text" - UTF-8 is reassembled into the original characters.
How it works
Hexadecimal counts in base 16, using digits 0-9 and letters A-F, so one byte (0-255) is always exactly two hex digits: "A" is byte 65, written 41 in hex. Text becomes bytes through UTF-8 encoding: plain English letters take one byte each, accented and Urdu characters take two or three, and emoji take four. The converter uses your browser's built-in UTF-8 encoder and decoder - the same ones the web itself runs on - so what you encode here decodes identically anywhere.
Worked example
"Hi" encodes to 48 69. The Urdu letter "ا" (U+0627) encodes to D8 A7 - two bytes - and decoding D8 A7 gives the letter straight back, which simple ASCII-only converters get wrong.
Frequently Asked Questions
Is this hex converter free?
Yes - completely free, with no sign-up and no limit.
Why do some characters produce more than two hex pairs?
Because UTF-8 uses more bytes for them: English letters take 1 byte, Urdu and accented letters usually 2-3 bytes, emoji 4 bytes. Each byte is one hex pair.
Can I decode hex without spaces?
Yes - spaces, commas and line breaks are all ignored, so 4869 and 48 69 both decode to "Hi".
Is my text uploaded anywhere?
No. The conversion happens 100% in your browser - your text never leaves your device.
What if my hex is invalid?
The decoder reports the problem instead of guessing - hex must contain an even number of digits 0-9 and A-F.
Related Text Tools
Text to Binary
See text as the 0s and 1s computers store - and decode binary back.
Text to ASCII Converter
See the ASCII codes behind every character, and turn codes back into text.
NATO Phonetic Alphabet Converter
Spell text in the Alfa-Bravo-Charlie alphabet, and decode it back.
Password Generator
Strong random passwords with the length and symbols you choose.