XML/XHTML Encoder
Convert text to and from XML/XHTML-safe encoding.
About the XML/XHTML Encoder & Decoder tool
There are several characters in XML and HTML documents that have a special meaning - such as < and >. If you need to include these characters in the content of an XML or HTML document, you need to encode them. This is known as XML encoding.
This online XML/XHTML encoder and URL decoder converts special characters in a string to and from XML encoding.
Use Cases
Use the XML/XHTML Encoder & Decoder tool on Solid Tools for Developers to:
- Replace special characters in a string with their XML-encoded equivalent
- Replace XML-encoded characters with their original, un-encoded equivalent
Usage
To replace special characters in a string with their XML-encoded equivalent, type or paste the text into the first text-area (labelled "string to encode") and click the "Encode" button. The XML-encoded string will appear in the second text-area.
To replace encoded characters back into their un-encoded equivalent, type or paste the text into the second text-area (labelled "string to decode") and click the "Decode" button. The un-encoded string will appear in the first text-area.