Escaping runs entirely in your browser — nothing is uploaded.
Escape and unescape XML entities online, free. XML escaping replaces the five characters with special meaning in XML — &, <, >, ", ' — with their predefined entities so they are treated as data, not markup. This tool escapes text into XML-safe form, or unescapes the five entities back to characters, entirely in your browser.
It emits the strict five predefined XML entities (including '), so output is valid in any XML document or attribute value. 100% free, no registration, and complete privacy — everything runs locally in your browser, so your data never touches a server.
Escapes &, <, >, " and ' to &, <, >, " and ' — the predefined XML set.
Convert text to XML-safe entities, or decode them back to the original characters.
Runs locally with no upload and no wait.
Your XML documents, attributes and content never leave your device.
XML defines five predefined entities. Two are mandatory in text content — the ampersand & (as &) and the less-than sign < (as <). In attribute values you also escape the matching quote — " as " or ' as '. The greater-than sign > is commonly escaped as > to avoid the ]]> sequence, though it is only strictly required there.
XML has exactly five named entities and uses ' for the apostrophe. HTML has hundreds of named entities and uses ' (not ') because ' was not part of HTML 4. This tool's XML mode emits ' and the strict five-entity set; use HTML Escape for web pages.
No. Text wrapped in a <![CDATA[ ... ]]> section is taken literally, so < and & need no escaping there — the only forbidden sequence is the terminator ]]>. Outside CDATA, use this tool to escape the predefined entities.
No. Escaping and unescaping run entirely in your browser. Your XML documents, attribute values and content never leave your device.
Paste text containing entities like <tag> and click Unescape. The tool converts & < > " and ' back into &, <, >, " and ', recovering the original markup or text.
We use cookies for analytics and personalized ads to help keep these tools free. Until you accept, ads stay non-personalized and analytics cookies are off. See our Privacy Policy.