Skip to main content

Hex to Text Converter

Convert a hexadecimal string to readable text, or encode text into hex bytes. Handles space, comma, dash, 0x and \x formats plus multi-byte UTF-8, with selectable output delimiter and case.

Input

Output

Result
Was this helpful?

Guides

Convert hex to text (and text to hex)

The Hex to Text Converter turns a hexadecimal string into readable characters, and converts plain text back into its hexadecimal byte values. It's built for developers, reverse engineers, and anyone who runs into hex dumps in logs, packet captures, config files, or API payloads and needs to see what they actually say.

Hexadecimal is a compact way to write the raw bytes that make up text. Each character is stored as one or more bytes, and each byte is two hex digits — for example the letter H is the byte 0x48. This tool reads those bytes and reassembles them into the original string, or does the reverse and shows you the bytes behind any text.

How to use it

  1. Paste your data into the input box.
  2. Choose a mode: Hex to Text to decode, or Text to Hex to encode.
  3. The result appears instantly — copy or download it with one click.

When encoding, you can pick how the output is formatted: space-separated (48 65), continuous (4865), comma-separated, dash-separated, or with 0x / \x prefixes. You can also choose uppercase or lowercase hex digits.

Flexible hex input

Decoding is forgiving about formatting. All of these produce the same text:

  • 48 65 6C 6C 6F — space separated
  • 48656C6C6F — no separators
  • 0x48 0x65 0x6C 0x6C 0x6F0x prefixes
  • \x48\x65\x6c\x6c\x6f\x escape style
  • 48-65-6C-6C-6F — dash separated

The converter strips the prefixes and separators automatically, so you can paste hex straight from a debugger, a hex editor, or a printf '%x' dump without cleaning it up first.

Unicode and emoji support

Text isn't only ASCII. Accented letters, non-Latin scripts, and emoji are stored as multi-byte UTF-8 sequences. This tool encodes and decodes with the full UTF-8 codec, so café becomes 63 61 66 C3 A9 and the 😀 emoji becomes F0 9F 98 80 — the correct bytes, not a broken single-byte guess. Decoding those exact bytes gives you the original characters back.

Error handling

If a hex string has an odd number of digits, contains a character that isn't a valid hex digit, or represents bytes that aren't valid UTF-8, you'll get a clear message explaining the problem instead of garbled output.

Is my data private?

Yes. The conversion runs entirely in your browser — nothing you type is uploaded or stored on a server. You can even use the tool offline once the page has loaded, which makes it safe for sensitive or internal data.

hexhexadecimaltextencodedecodeasciiutf-8converterdeveloper

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.