Skip to content
  1. ConvertSoon
  2. Text tools
  3. Hex

Hex decoder and text to hex converter

This hex decoder turns hexadecimal bytes into readable text, and text into hex. It is free, supports UTF-8 and works as you type.

Runs in your browser Updates as you type Free, no signup

How to use the hex decoder and text to hex converter

  1. Choose the direction

    Pick Text to hex or Hex to text above the boxes.

  2. Type or paste your text

    The result appears on the right as you type. Nothing is uploaded.

  3. Copy the result

    Press Copy result, or Save to download it as a .txt file.

Examples

Real results from this tool.

You typeYou get
Hi!48 69 21
48 65 78 (decode)Hex

Hex to text: a hex code decoder

Choose Hex to text and paste the hex. Bytes can be separated by spaces, written together, or written with 0x or \x in front; those prefixes are ignored. Each pair of hex digits is one byte, and the bytes are read as UTF-8, so 48 65 6c 6c 6f reads Hello.

Text to hex (ascii2hex)

Choose Text to hex and type. Every byte becomes two hexadecimal digits from 0 to f. Plain English letters give one byte each, the same as their ASCII codes; other alphabets and emoji give two to four. It is handy for debugging, reading file dumps and puzzles.

Hexadecimal decoder basics

Hexadecimal is base 16: the digits 0 to 9 and then a to f for ten to fifteen. Two hex digits cover 0 to 255, exactly one byte, which is why programmers use hex to show bytes.

Hex reader tips

If decoding gives odd symbols, check that every byte has two digits and that nothing else is mixed in, such as addresses or line numbers from a hex dump. Colour codes like #FF8800 are hex numbers too, but they describe a colour, not text, so they will not decode into words.

A hex reader is useful when you inspect files, network data or text with hidden characters: the zero-width space, for example, shows up as e2 80 8b.

Related tools

More codes and ciphers and similar tools, all free.

Questions about the hex decoder and text to hex converter

It is Hello in hex. 48 is H, 65 is e, 6c is l and 6f is o.

Both show the same bytes. Binary uses 8 digits of 0 and 1 per byte; hex uses 2 digits from 0 to f, which is shorter and easier to read.

Yes. Prefixes such as 0x and \x, commas and spaces are ignored, so you can paste hex straight from code.

Yes, with no signup. Everything runs in your browser.

No. The conversion runs in your browser, so the text never leaves your device and works offline once the page has loaded.