XML Escape / Unescape
Escape or unescape XML special characters like ampersand, angle brackets, quotes, and apostrophes.
Processed on your device β never uploaded
Input
Output
Frequently Asked Questions
What characters need to be escaped in XML?
The five XML special characters that must be escaped are & (&amp;), < (&lt;), > (&gt;), " (&quot;), and the apostrophe (&apos;).
Why do I need to escape XML characters?
Unescaped special characters like < and & break XML parsing because they are reserved for markup syntax. Escaping ensures your text content is treated as data, not structure.
What is the difference between XML and HTML escaping?
XML uses the same core five entities as HTML but is stricter. HTML has many more named entities like &nbsp; and &copy; that are not valid in XML.