Skip to content
NMSnabbit.

Text to Hex Converter

Turn each character of your text into its UTF-8 hex byte values.

Converters Runs in your browser

How do you convert text to hex?

Hexadecimal is base 16: every byte fits in exactly two digits, 00 to ff. This converter encodes your text as UTF-8 and writes those pairs space-separated, so “Hello” comes out as “48 65 6c 6c 6f”. Output is lowercase, which most tools accept; uppercase it later if a spec demands it. Multi-byte characters expand honestly: “€” becomes “e2 82 ac”, three bytes, not one mystery value.

How to use the Text to Hex

  1. 1 Feed the converter any string, short or long.
  2. 2 Scan the space-separated hex pairs it prints, two digits for every byte.
  3. 3 Note that accents and emoji yield several pairs each because encoding is UTF-8.
  4. 4 Take the hex wherever you need it.

What you can use it for

  • Inspecting the byte values behind a string.
  • Building hex literals for code or config.
  • Debugging character-encoding issues.
  • Creating colour or data values from text.

Frequently asked questions

Is the output upper or lower case hex?
Lowercase (a–f). Hex is case-insensitive everywhere that matters, but if a checksum spec or register map insists on uppercase, transform it after copying.
How are multi-byte characters handled?
UTF-8 first, always. “é” shows as c3 a9 and a typical emoji as four pairs, which is exactly what a file on disk would contain.
Can I reverse it?
Paste the pairs into the Hex to Text converter. It tolerates the spaces this tool inserts, so no cleanup is needed.

Related tools

More Converters

More tools like this:

All Converters