XML Escape/Unescape
Free online XML special character escaper tool
About XML Escape
XML Escape converts special characters into their XML entity representations so they are processed correctly inside XML documents. Characters such as `<`, `>`, `&`, `"` and `'` have special meaning in XML and must be escaped when used as literal text content.
How to Use
1. Type or paste your text into the input box. 2. Choose "Escape" to encode special characters, or "Unescape" to decode entities back. 3. Click the process button. 4. Copy the result with the copy button.
Use "Swap" to move the output back into the input for further processing, and "Clear" to reset both fields.
Escape Mapping
• `<` → `<` • `>` → `>` • `&` → `&` • `"` → `"` • `'` → `'`
▶Why does the ampersand (&) get escaped?
▶What is the difference between escaping and encoding?
▶Does it handle numeric entities like <?
▶Is my data sent to a server?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee