Hex ↔ Text

Convert UTF-8 text to a hex string, or parse a hex string back to text (separators :/.- ignored).

Monitor this automatically

NetTests can run this check on a schedule, preserve historical results, compare changes over time, and alert you the moment something breaks.

Start monitoring free → See all monitoring products

Frequently Asked Questions

What is hexadecimal?

Hexadecimal (base-16) uses digits 0–9 and letters A–F to represent values 0–15 per digit. Each byte (8 bits) is represented by exactly two hex digits: 00FF. Hex is commonly used for binary data, memory addresses, color codes (#FF5733), SHA hashes, and network packet dumps.

What does this tool encode exactly?

The text is first encoded as UTF-8 bytes, then each byte is written as two hex digits. A space (ASCII 32) becomes 20; the letter 'A' (ASCII 65) becomes 41. Multi-byte UTF-8 characters produce more than 2 hex digits — '€' (U+20AC) becomes e2 82 ac in UTF-8.

Why does decoding show replacement characters (�)?

The hex bytes, when interpreted as UTF-8, contained invalid sequences. This can happen with raw binary data (like an image or compiled code) that isn't valid text. The replacement character (U+FFFD) marks bytes that couldn't be decoded. Separators like spaces, colons, and hyphens are stripped before decoding.