Escape or unescape XML special characters
Paste your text
Enter text containing XML special characters like <, >, &, or quotes.
Select escape or unescape
Choose to escape characters for XML or unescape entities back to text.
Copy the result
Click the Copy button to copy the escaped or unescaped text to your clipboard.
Yes, the XML Escape/Unescape tool is completely free with no limitations. Escape or unescape as much XML as you need without any registration or restrictions.
Yes, all XML escaping happens locally in your browser. Your XML content is never sent to any server, making it safe to process sensitive configuration files or data.
XML escaping converts the five predefined XML entities: < to <, > to >, & to &, ' to ', and " to ". This ensures special characters are treated as data, not markup, preventing parsing errors and security issues.
XML and HTML escaping are similar but XML is stricter. XML requires escaping apostrophes and has fewer named entities. HTML has many more named entities (like ) that are not valid in XML without being defined.