Skip to content

Hex to Text Converter

Encode text as hexadecimal UTF-8 bytes or decode hex back into readable text.

Options
Case
Runs in your browser — your data is not uploaded.

How to use

  1. Set Mode to Text → Hex or Hex → Text.
  2. Type or paste your text or hex bytes into Input; Result updates as you type.
  3. For Text → Hex, set Delimiter, Case and Prefix to match the format you need.
  4. For Hex → Text, set Delimiter to match your input and choose how to handle Invalid UTF-8.
  5. Click Copy to copy Result or Download to save it as a text file.

Examples

Compact hex for a test string

Input
Order #1042
Output
4f72646572202331303432

Read colon-separated text bytes

Input
53:74:61:74:75:73:3A:20:4F:4B
Output
Status: OK

Create byte escapes for a code sample

Input
GET /health
Output
\x47\x45\x54\x20\x2F\x68\x65\x61\x6C\x74\x68

FAQ

Does hex to text use ASCII or UTF-8?

This tool uses UTF-8, which includes ASCII. ASCII characters use one byte, while é uses two and 😀 uses four. Open Character breakdown to inspect the code points and bytes for up to 200 characters.

Why do I get an odd number of hex digits error?

Each byte needs exactly two hex digits. Use 0A rather than A; the tool does not add missing zeros.

Why does my hex string show an invalid UTF-8 error?

Valid hex can still contain bytes that are not valid UTF-8 text. Show error reports the problem byte; Replace with � keeps decoding and marks invalid sequences with �. Other text encodings, such as Latin-1, are not supported.

Can I convert an MD5 or SHA-256 hash back to text?

A hash is not hex-encoded text and cannot be reversed with this converter. Its bytes will usually produce an invalid UTF-8 error.

Is my text uploaded or saved?

Conversion runs in your browser, and the tool does not upload or save your input. It saves option settings and whether Character breakdown is open. The page uses Google Analytics for tool events, but those events do not include your text.