Developer Tools

Encoders / Escapers / Crypto

XML Escape

Escape / unescape XML entities.

XML0 chars
XML (escaped)

Guide & explanation

XML Escape replaces the five characters reserved by XML with their built-in entities so text is safe inside element content or an attribute value.

Mapping

CharacterEntity
&&
<&lt;
>&gt;
"&quot;
'&apos;

Example

<note prio="high">3 < 5 & correct</note>

The text 3 < 5 & correct must become 3 &lt; 5 &amp; correct.

The Unescape mode also resolves decimal (&#60;) and hexadecimal (&#x3C;) numeric character references.