XML Escape & Unescape
Escape or unescape XML special characters instantly. Converts &, <, >, ", and ' to their XML entity equivalents and vice versa.
Examples
XML tags with attributes
In:<item name="Books & More">5 < 10</item>
Out:<item name="Books & More">5 < 10&l...
Special characters
In:Tom & Jerry's "Adventure" <2024>
Out:Tom & Jerry's "Adventure" <2024>
CDATA-like content
In:<![CDATA[Hello & World]]>
Out:<![CDATA[Hello & World]]>
How to Use XML Escape & Unescape
- Select Escape or Unescape mode.
- Paste your XML text in the input area.
- The result appears instantly as you type.
- Click "Copy" to copy the result to your clipboard.
About XML Escaping
XML escaping is the process of replacing special characters with their corresponding XML entity references. This is necessary because characters like <, >, and & have special meaning in XML and would be interpreted as markup rather than literal text. By escaping these characters, you ensure that your XML documents are well-formed and that data is preserved accurately.