XML Escape
Escape the five XML special characters (& < > " ') so text is safe in XML element content and attributes.
Runs in your browserText → XML
Loading tool…
Example
<note to="Ann">Fish & Chips</note>
<note to="Ann">Fish & Chips</note>
How to use the XML Escape
- Paste or type your Text into the input area, or open a file from your device.
- Adjust the options above the editor if the tool offers any.
- Review the XML result, then copy it or download it as a file.
Privacy and limitations
- Your data is processed on your device and is not uploaded to any server.
Related converters
HTML EscapeEscape & < > " and ' so untrusted text can be safely inserted into HTML pages and attributes.XML FormatterBeautify and indent XML while keeping comments, CDATA sections, attributes and element order exactly as written.XML UnescapeDecode XML entities (& < > " ') and numeric character references back to plain text.JavaScript String UnescapeDecode JavaScript escape sequences such as \n, \x41, \u00e9, \u{1F600} and legacy octal escapes into plain text.JavaScript String EscapeEscape text for a JavaScript string literal in single, double or backtick quotes, including \x, \u and U+2028 handling.HTML UnescapeConvert escaped HTML (<p>, &, ©, €) back to the original characters and markup.JSON String UnescapeTurn an escaped JSON string (with or without surrounding quotes) back into plain text, reporting invalid escapes.CSV EscapeQuote a value for CSV per RFC 4180: wrap fields containing delimiters, quotes or line breaks and double inner quotes.