Skip to main content
>_devtools

XML Escape & Unescape

Escape text for XML text and attributes, or decode XML entities and character references.

What it does

Escape text for XML or decode XML entities and character references. Choose Escape or Unescape, then edit the input to see the result.

Example

Input: A & B
Escaped: A & B
Unescaped: A & B

Limits and behavior

  • Unescape supports the five predefined XML entities and valid numeric references.
  • Unknown HTML names such as   remain unchanged because they are not XML entities.
  • Optional settings escape quotes, encode non-ASCII characters, or remove forbidden control characters.