CalcHive

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:&lt;item name=&quot;Books &amp; More&quot;&gt;5 &lt; 10&l...

Special characters

In:Tom & Jerry's "Adventure" <2024>
Out:Tom &amp; Jerry&apos;s &quot;Adventure&quot; &lt;2024&gt;

CDATA-like content

In:<![CDATA[Hello & World]]>
Out:&lt;![CDATA[Hello &amp; World]]&gt;

How to Use XML Escape & Unescape

  1. Select Escape or Unescape mode.
  2. Paste your XML text in the input area.
  3. The result appears instantly as you type.
  4. 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.

Frequently Asked Questions

Related Tools