Tools Encoding

String Escape & Unescape

Escape and unescape HTML entities, JSON strings and hex.

🔒 Runs in your browser. Nothing is uploaded.
Result

How to use it

  1. Choose a format: HTML entities, JSON string or hex.
  2. Choose Escape or Unescape.
  3. Paste your text. The result updates as you type.
  4. Copy the result.

Questions

Which HTML entities are decoded?

All of them: named ones like &copy; and &nbsp;, and numeric ones like &#169; and &#xA9;. Escaping only changes the five characters that matter in HTML: & < > " and '.

Can I unescape a JSON string with its quotes?

Yes. Paste it with or without the surrounding double quotes. A bare " in the middle, or an escape JSON doesn’t have, like \x41, is an error.

What hex formats can be decoded?

Bytes with or without separators: 68656c, 68 65 6c, 68:65:6c and 0x68 0x65 0x6c all work. The bytes must be valid UTF-8 text.