Text to Hex Converter

Convert text to hexadecimal (UTF-8 bytes) and hex back to text.

Runs instantly in your browser — results update as you type.

What is text-to-hex conversion?

Text-to-hex conversion encodes each character as bytes and writes every byte as two hexadecimal digits, for example "Hello" becomes 48 65 6c 6c 6f.

Uses

  • Inspecting hidden characters, BOMs and encoding problems in text.
  • Preparing byte strings for code, protocols and hardware.
  • Decoding hex dumps back into readable text.

Decoding

Paste hex in any common format — 48656C6C6F, 48 65 6C 6C 6F or with 0x prefixes. Non-hex characters are ignored, and the bytes are decoded as UTF-8.

Need bits instead? Use the Text to Binary Converter. To convert single numbers, use the Number Base Converter.

Frequently asked questions

Which character encoding is used?

UTF-8, the standard encoding of the web.

Why does "é" become two bytes?

In UTF-8, characters beyond basic ASCII need two to four bytes.

Does case matter in hex?

No, 6C and 6c are the same byte.