Bytelify

XML Escape

Escape the five reserved XML characters, live as you type, in either direction.

100% private, runs in your browser

Escapes the five reserved XML characters (&, <, >, ", ') to their entity form — type in either field, both directions update live. Runs entirely in your browser.

What is XML Escape?

Type text containing &, <, >, ", or ' and see them escaped to their XML entity form instantly — needed whenever that text is going inside XML content or an attribute value. Type in either field, both directions update live. Skipping this step is a common source of malformed XML — an unescaped & or < in a text node breaks parsing entirely. Escaping happens live as you type, entirely in your browser.

FAQ

The five characters XML reserves: & (&amp;), < (&lt;), > (&gt;), " (&quot;), and ' (&apos;).

& and < always need escaping in XML text content; " and ' only matter inside quoted attribute values (using the matching quote character); > is often left unescaped but is safe to escape everywhere, which is what this tool does by default.