Encode / Decode

Hex ⇄ Text Converter

Convert text to its hexadecimal byte representation, or convert hex back to readable text. The encoder outputs UTF-8 bytes, so emoji and non-ASCII characters are handled correctly. The decoder is flexible — it accepts hex with or without 0x prefixes, spaces, colons, or other separators. If the hex bytes aren't valid UTF-8, it tells you instead of showing garbled output.

Hex ⇄ Text — Convert between text and hexadecimal bytes (UTF-8)

What it does

  • Converts text to hex bytes using UTF-8 encoding
  • Converts hex back to text, stripping 0x prefixes, spaces, colons, and commas
  • Optional grouping with spaces between byte pairs for readability
  • Validates that hex input has an even number of digits
  • Reports clearly if decoded bytes aren't valid UTF-8 text

Use cases

  • Inspecting the raw byte values of a string for debugging encoding issues
  • Converting hex data from a network capture or binary dump to readable text
  • Checking the UTF-8 byte representation of emoji or special characters
  • Decoding hex-encoded values from a config file or database

How it works

1

Paste your text or hex string into the input pane

2

Select Text → Hex or Hex → Text mode

3

Toggle byte grouping if you want spaces between hex pairs

4

The result appears instantly in the output pane

Frequently asked questions

1What input formats does the decoder accept?

It accepts hex with or without separators. 48656c6c6f, 48 65 6c 6c 6f, 48:65:6c:6c:6f, 0x48 0x65, and 48656c6c6f all work. The tool strips 0x prefixes, spaces, colons, and commas before parsing.

2Why does it say my hex isn't valid UTF-8?

The hex bytes decode to raw bytes, but those bytes might not form valid UTF-8 text. This happens when the hex represents binary data or text in a different encoding (like Latin-1). The tool tells you this instead of showing garbled characters.

3How does it handle emoji and non-ASCII text?

When encoding, the tool converts text to UTF-8 bytes, so an emoji like 😀 becomes four hex bytes (f0 9f 98 80). When decoding, it interprets the bytes as UTF-8, so multi-byte sequences are correctly converted back to characters.

Related tools

Use Hex ⇄ Text offline in Devinity

All 95 tools run locally on your Mac. No internet required, no data sent to servers.

Download Devinity →