XML Escape Tool
Input characters
0
Original text length
Output characters
0
Escaped text length
Entities created
0
Characters replaced
Original Text
Paste or type the text you want to escape.
Escaped Result
Your converted text appears here automatically.
Ready. Enter text or edit the example to get started.
&
&
Ampersand
<
<
Less than
>
>
Greater than
"
"
Quotation mark
'
'
Apostrophe
How to Use the XML Escape Tool
1
Enter your text
Paste XML-related text, application data, or a string containing special characters into the Original Text box.
2
Escape automatically
The tool replaces ampersands, angle brackets, quotation marks, and apostrophes with their corresponding XML entities as you type.
3
Review the result
Check the Escaped Result box and use the live statistics to see the input length, output length, and number of replacements.
4
Copy or download
Select Copy Result or Copy Escaped Text to copy the converted text. Use Download TXT to save the output as a text file.
Important XML tip:
The five named XML entities are
&, <,
>, ", and
'.
This tool escapes text, not entire XML documents for immediate reuse.
Escaping an entire document will also escape its markup tags. Escape only the
data you intend to insert into a document. Existing entities are escaped again
intentionally; this preserves literal ampersands. This tool does not validate
XML or remove characters forbidden by the XML specification.
Rate This Tool
Your feedback helps others discover great tools
4.4
out of 5
110 ratings
👍 Recommended
Tap a star to rate: