XML Escape / Unescape

Escape XML special characters or convert escaped sequences back to plain text.

XML reserves five characters — ampersand, less-than, greater-than, double-quote and apostrophe — that need escaping when used as data. Converterzilla's tool handles both directions: escape plain text for safe embedding, or unescape XML-encoded text back to its original form.

How to use XML Escape / Unescape in your browser

  1. Pick a mode. Toggle between Escape (text → XML-safe) and Unescape (XML-safe → text).
  2. Paste your input. Drop the text into the textarea.
  3. Click run. Output appears below. Use the Copy button to send it to your clipboard.

Why use Converterzilla for XML Escape / Unescape

Both directions

One tool, two modes — switch with a toggle, no separate URLs to remember.

Clipboard-friendly

One-click copy of the output.

Browser-only

Tiny, fast, no upload.

Frequently asked questions about XML Escape / Unescape

Five: & → &amp;, < → &lt;, > → &gt;, " → &quot;, ' → &apos;. Numeric entities like &#10; are left alone.

No — XML is UTF-8 by default, so Unicode characters don't need escaping. Only the five reserved chars are converted.

Mostly yes — HTML adds &nbsp; and other named entities. For HTML-specific escaping, a dedicated tool is more thorough.

Related browser-based tools