XML Escape/Unescape

Form of XML Escaping/Unescaping

Enter XML here to escape/unescape:

Press F11 to switch to fullscreen mode
Move to "Paste Code" for Saving

About online XML escape/unescape

About XML escape/unescape

Escapes or unescapes a XML string removing traces of offending characters that could be wrongfully interpreted as markup.

The XML Escape / XML Unescape it's online tool was created to help with escape special characters into XML entities and also unescape it.

What characters are replaced?

The following characters are reserved in XML and must be replaced with their corresponding XML entities:

  • ' is replaced with '
  • " is replaced with "
  • & is replaced with &
  • < is replaced with &lt;
  • > is replaced with &gt;

How it Works?

Just paste your XML code to the textarea above and click to the button "Escape" or "Unescape" and you will get your escaped/unescaped data.

Example of XML Escaping

XML before:
<?xml version="1.0" encoding="UTF-8"?>
<result>
	<website>
		<domain>wtools.io</domain>
		<title>Online Web Tools</title>
		<tool>XML escape/unescape</tool>
	</website>
</result>
After:
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;result&gt;
	&lt;website&gt;
		&lt;domain&gt;wtools.io&lt;/domain&gt;
		&lt;title&gt;Online Web Tools&lt;/title&gt;
		&lt;tool&gt;XML escape/unescape&lt;/tool&gt;
	&lt;/website&gt;
&lt;/result&gt;
After the conversion, you can apply the XML to your project or use it for some other purpose.
Share