Loona Automation logoLoona Text Tools
Home › Text Tools › Text to Hex Converter

Text to Hex Converter - Hexadecimal, Done Properly

In short: the Text to Hex Converter turns any text into hexadecimal bytes and converts hex back into text, using real UTF-8 encoding so non-English characters survive the round trip.

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.

Private by design: everything in this tool happens 100% in your browser with JavaScript. Your text is never uploaded to a server, never stored and never seen by us - close the tab and everything is gone.

How to use the Text to Hex Converter

  1. Type or paste plain text and click "Text to Hex" - every byte appears as two hex digits.
  2. Choose whether bytes are separated by spaces, ready to paste into code or a hex editor.
  3. 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

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.