HomeXML Character Escape

XML Character Escape

Convert special characters to XML entities for valid XML documents



Documentation

About XML Escape / Unescape

This tool converts reserved XML/HTML characters to entities (and back) to prevent parsing conflicts.

Key Features

  • XML Escape: Converts reserved characters to entity references.
  • XML Unescape: Restores entities to original characters.
  • Copy Output: One-click result copy.
  • Sample Input: Quick validation with example text.

Common Entities

Character Entity
& &
< &lt;
> &gt;
" &quot;
' &apos;

Steps

  1. Enter XML/text input.
  2. Choose escape or unescape.
  3. Review and copy output.

FAQ

Why do I get double-escaped output like &amp;amp;?

You likely escaped content that was already escaped. Verify input state before converting.

Can I use it for HTML?

Yes for common entity handling, but complex templates should still be validated in your rendering stack.