Hex to Text Converter

Paste hex from a log, packet capture or database dump and read it as text. Spaces, commas, 0x, \x and %-escapes are all understood, and one unbroken run of digits is split into bytes for you. The bytes are decoded as UTF-8, so Indian scripts and emoji come out correctly, and if the bytes are not valid text you are told why instead of seeing garbage.

Encoding
Direction

Hindi letters and ₹ take 3 bytes each.

Hex
Text

Processing runs in your browser. What you type never leaves this device.

Features

  • Accepts 48 69, 0x48,0x69, \x48\x69, %48%69 or 4869

  • Decodes UTF-8: Hindi, Tamil, ₹ and emoji

  • Clear errors for odd digit counts and broken bytes

  • Code-point mode for one number per character

  • Swap to encode text back to hex

  • Runs in your browser

Where hex turns up

Logs and packet dumps

Read the payload in a Wireshark or tcpdump hex dump, or a hex-encoded field in an application log.

Database exports

Decode BYTEA or BLOB columns exported as hex (\x... in PostgreSQL, 0x... in MySQL and SQL Server).

Puzzles and CTFs

Hex-encoded clues are a staple of capture-the-flag challenges and treasure hunts.

Decoding hex, step by step

What the decoder accepts

  • Bytes separated by spaces, commas, colons or new lines.
  • Prefixes 0x, \x and %, which are removed first.
  • One long run of digits: it must have an even number of digits, two per byte.

When the result looks wrong

"Not valid UTF-8" means the bytes are not text, or a byte is missing. Files such as images or encrypted data are binary and have no text form. If you see the wrong letters instead of an error, the text may have been saved in an older encoding; try Code points if each number stands for a whole character.

The other direction

Use the text to hex converter, or press Swap. For bytes written in binary, use binary to text.

Hex to Text Converter - FAQ