XML Unescape

Unescape XML strings back to plain text.

Local Your input is processed locally in your browser. Found a problem? Report an issue

What XML Unescape does

XML Unescape decodes the five entities XML defines and numeric character references (é, é), following the XML 1.0 rules exactly.

XML has no other named entities unless a DTD declares them, so a reference such as  , or a bare &, is an error in an XML document. The tool reports it with its line and column. For HTML text, use HTML Unescape.

XML Unescape examples

The built-in sample

Input

say "hello" & <b>bye</b>

Output

say "hello" & <b>bye</b>

This is the input that the Load sample button fills in.

Entities and character references

Input

&lt;p&gt;Caf&#233; &amp;amp; cr&#xE8;me&lt;/p&gt; &quot;&apos;

Output

<p>Café &amp; crème</p> "'

&amp;amp; becomes the text &amp;amp; — one level of escaping is removed, as a parser would.

An HTML entity in XML

Input

Price:&nbsp;10 &euro;

Result

&nbsp; is not one of the five entities XML defines (&amp; &lt; &gt; &quot; &apos;); it only works with a DTD that declares it (line 1, column 7)

XML does not define &nbsp;, so this is an error.

Each output was produced by running this tool on the input above it.

How it works

Each reference is replaced as shown below.

ReferenceCharacter
&amp;&
&lt; &gt;< >
&quot; &apos;" '
&#233; &#xE9;the character with that decimal or hex code

Details and limits

  • References to characters XML 1.0 forbids, such as &#1;, are reported as errors.

Questions

Is my data uploaded when I use XML Unescape?

No. The tool runs in your browser, so what you paste or open is processed on your own device and is not sent to a server.

What does XML Unescape do?

XML Unescape decodes the five entities XML defines and numeric character references (&#233;, &#xE9;), following the XML 1.0 rules exactly.

Are there any limits I should know about?

References to characters XML 1.0 forbids, such as &#1;, are reported as errors.

Is there a size limit?

There is no fixed size limit. Everything happens on your device, so very large inputs depend on its memory and can take longer on a phone than on a computer.

Does it work on phones, and is it free?

Yes. It works in any current browser on Android phones, iPhones, tablets and computers. It is free and needs no account or sign-up.