XML Encode Online Tool

A tool for encoding plain text to XML.


Encodes text into XML text format by escaping special characters reserved by XML. XML text is text contained inside XML elements. The XML format reserves certain characters to indicate XML markup and text needs to have these reserved characters escaped to indicate that they are not supposed to be interpreted as markup.

XML Special Characters
Special Character Escaped Character XML Usage
< &lt; XML tag open bracket
> &gt; XML tag close bracket
& &amp; First character of escaped character
" &quot; Surrounds a string literal
' &apos; Surrounds a string literal