Skip to content
DevTools

Text to Hex & Hex to Text Converter

Convert UTF-8 text to hexadecimal bytes and hex back to text. Choose separators and letter case. Accepts 0x prefixes and mixed spacing when decoding.

Input

Output

Ready

Runs locally in your browser — your data is never uploaded.

About the Text ↔ Hex Converter

Convert text to its hexadecimal byte representation using UTF-8, or decode hex back to text. Choose a separator (space, none, colon or comma) and upper- or lower-case digits.

When decoding, 0x prefixes, spaces, colons and line breaks are ignored, so you can paste hex dumps from debuggers, packet captures or byte-array literals.

How to use it

  1. Choose Encode or Decode.
  2. Paste text or hex.
  3. Copy the result.

Features

  • UTF-8 encoding
  • Custom separators and case
  • Lenient hex input

Frequently asked questions

Why does one character produce several bytes?

UTF-8 uses one byte for ASCII and two to four bytes for other characters, so é becomes c3 a9 and ✓ becomes e2 9c 93.

Is my data uploaded anywhere?

No. All processing happens in JavaScript inside your browser tab. Your input is never sent to a server, logged or stored, so it is safe to use with internal or sensitive data.