Convert XML/HTML special characters (< > & " ') with one click, batch processing
Zero Dependencies ยท Works OfflineXML Escape/Unescape is a free online developer tool that converts XML/HTML special characters (<, >, &, ", ') to and from entity references. It supports batch processing, auto-detection of input format, and input/output swapping. Ideal for XML/HTML content editing, API data escaping, and configuration file processing. All processing happens locally in your browser.
1. Paste text to escape or unescape in the input box.
2. Click "Escape" or "Unescape" to convert.
3. Result appears below. Click "Copy Result" to get it.
4. Click "Swap Input/Output" to convert back and verify.
When embedding text with special characters in XML tags, escaping ensures correct parsing.
Escape/unescape XML/HTML data from APIs to ensure data integrity.
Escape quotes and special characters in XML configuration file attribute values.
XML defines 5 predefined entity references: < (<), > (>), & (&), " ("), ' ('). & must be escaped first, otherwise existing entity references will be broken. CDATA sections (<![CDATA[...]]>) don't need escaping. HTML also supports numeric entity references (<) and named entities ( etc.). In XHTML, ' may not be supported by all browsers; ' is recommended as an alternative.
Replacing special characters (<, >, &, ", ') with entity references (<, >, &, ", ') for safe display in XML.
When text contains XML reserved characters, escaping is required to avoid parsing errors.
5 XML predefined entities: < > & " '
Yes. & must be escaped first, otherwise existing entity references will be broken.
No. All escaping and unescaping happens locally in your browser.
Yes. Paste multi-line text and convert with one click.