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
<p>Café &amp; crème</p> "'Output
<p>Café & crème</p> "'&amp; becomes the text &amp; — one level of escaping is removed, as a parser would.
An HTML entity in XML
Input
Price: 10 €Result
is not one of the five entities XML defines (& < > " '); it only works with a DTD that declares it (line 1, column 7)
XML does not define , 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.
| Reference | Character |
|---|---|
& | & |
< > | < > |
" ' | " ' |
é é | the character with that decimal or hex code |
Details and limits
- References to characters XML 1.0 forbids, such as , 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 (é, é), following the XML 1.0 rules exactly.
Are there any limits I should know about?
References to characters XML 1.0 forbids, such as , 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.