About This Tool

What does this tool do?

A character sanitizer for XML documents. Encodes reserved XML characters (`&`, `<`, `>`, `"`, `'`) and numeric character references (`&`, `<`) to maintain XML parser validity, and unescapes entity strings back to raw markup.

When should you use it?

Use this tool when embedding dynamic text content inside XML tags or attributes, constructing SOAP XML envelopes, or fixing XML parsing errors caused by unescaped ampersands.

Key Capabilities & Features

Escape special XML reserved characters into standard entities (&, <, >, ", ')
Unescape XML entities back into human-readable characters and markup tags
Safe XML CDATA block generation and entity preservation options
Syntax validation identifying illegal XML characters and malformed tags
Clean formatted XML output with indentation and error diagnostics