Text to Hex / Hex to Text Converter

Turn any text into its hexadecimal byte values and back again, with full UTF-8 support for accented letters and symbols. Runs entirely in your browser.

OutputWaiting for input
Advertisement

How to use the converter

  1. Type or paste your text into the box.
  2. Click Text to Hex to get the hexadecimal bytes, or paste hex bytes and click Hex to Text to read them as text.
  3. Use the checkbox to include or remove spaces between the hex bytes.
  4. The result appears below, ready to copy.

What hexadecimal is

Hexadecimal, or hex, is a base-16 number system that uses the digits 0-9 and the letters A-F. It is a compact way to write binary data — every byte (eight bits) fits in exactly two hex characters, so the decimal number 255 becomes FF. Because it is so compact and unambiguous, hex is used everywhere from memory dumps and color codes to checksums and network protocols.

How text becomes hex

Computers store characters as numbers. When you convert text to hex, each character is first encoded into one or more bytes using UTF-8, then each byte is written as its two-digit hex value. A capital A is byte 65, which is hex 41. The word "Hi" becomes the four bytes 48 69. Characters outside plain ASCII — accented letters, non-Latin scripts, emoji — use several bytes each, and this tool handles those correctly because it works on real UTF-8 bytes rather than just the first 256 characters.

Decoding hex back to text

To decode, the tool strips spaces, newlines and any 0x prefixes, then groups the remaining digits into pairs. Each pair is read as one byte, the bytes are reassembled in order, and the sequence is decoded as UTF-8 text. If the input has an odd number of digits or contains characters that are not valid hex, the tool tells you instead of producing garbage.

Common uses

Frequently asked questions

Yes. The converter works on real UTF-8 bytes, so characters outside plain ASCII are encoded and decoded correctly.
No. Spaces, newlines and 0x prefixes are ignored, so both "48656c6c6f" and "48 65 6c 6c 6f" decode to the same text.
The tool detects an odd number of digits or non-hex characters and shows a clear error message instead of producing wrong output.
No. Encoding and decoding happen entirely in your browser. Your text never leaves your device.