XML Escape

Your data never leaves your browser

Escape special XML characters to make text safe for XML documents.

Brie — Bug Reporting Tool

Tracking down XML parsing issues?

Brie captures full network request/response data including headers and payloads, so you can inspect XML responses in context.

About XML Escape

Convert special characters (&, <, >, ", ') into their XML entity equivalents (&amp;, &lt;, &gt;, &quot;, &apos;). Essential when embedding user input or dynamic content into XML documents to prevent parsing errors and XML injection.

How to use

  1. Paste the text containing special characters into the input panel.
  2. The escaped text appears instantly in the output panel.
  3. Click Copy to use the escaped text in your XML documents.

More XML Tools

Frequently Asked Questions

FAQs about XML Escape

Which characters are escaped?

The five XML special characters: & becomes &amp;, < becomes &lt;, > becomes &gt;, " becomes &quot;, and ' becomes &apos;.

Why do I need to escape XML?

XML uses these characters for its syntax (tags, attributes, entities). Unescaped special characters in content will cause XML parsing errors.

Is this the same as HTML escaping?

Very similar. HTML escaping covers &, <, >, and ". XML also escapes single quotes (') as &apos;, which is less common in HTML.

Does this handle Unicode?

This tool escapes the 5 standard XML special characters. Unicode characters are passed through unchanged, as they are valid in XML.

Is my data safe?

Yes. All processing happens in your browser. No data is sent to any server.