Back to all tools

XML Escape Unescape

Escape or unescape XML special characters in text.

When to use this tool

Useful when generating XML documents programmatically to ensure special characters like <, >, and & do not break the XML structure. Also helpful when debugging XML logs or parsing user-generated content that needs to be safely embedded in an XML response.

How to use

Enter the text with XML special characters in the input area. Choose "Escape" to convert special characters to XML entities, or "Unescape" to convert entities back to their literal characters.