XML Escape / Unescape
Escape or unescape the five XML special characters.
Also called: escape XML, XML entities.
XML Escape / Unescape
Escape or unescape the five XML special characters.
Watch: how to use the XML Escape / Unescape (14 seconds)
Recorded on a phone, steps written on screen, no sound.
About the XML Escape / Unescape
Escape or unescape the five XML special characters: & < > " ' become & < > " '.
The five characters
Escaping replaces the five characters that have a meaning in XML: & becomes &, < becomes <, > becomes >, the double quote becomes " and the apostrophe becomes '. Unescaping turns these five back.
Use it before putting text inside an XML element or attribute, for example a product name such as Fish & Chips in a feed or a sitemap. Other characters, including Urdu and emoji, are left as they are, because XML in UTF-8 accepts them.
How to use the XML Escape / Unescape
- Enter your textType or paste your text.
- Pick the optionsaction (the defaults suit most uses).
- Press Run toolThe result appears right under the button.
- Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.
This tool works inside your browser: what you enter stays on your device.
Example
A sample input and the result the XML Escape / Unescape gives for it (produced by the tool itself, not typed by hand).
- Input text
- <b>Tea & coffee</b> for "everyone"
- Action
- Escape
Result:
<b>Tea & coffee</b> for "everyone"
Good to know
- What you need
- You type or choose: Input text
- Where it runs
- In your browser, on your device.
- Cost
- Free, no sign-up.
Questions
When do I need this?
When putting text inside XML elements or attributes.
HTML too?
Use HTML Escape / Unescape for HTML.