XML

XML Escape

Escape the five predefined XML entities: & < > " and apostrophe.

Text input
Output

Result appears here after you select

{ } How to use

  1. Paste the text you want to put inside XML.
  2. Select Process, then copy the escaped text.

{ } How it works

XML Escape works on the text you provide. Select Process ▸ and it runs entirely in your browser — nothing is uploaded to a server — then shows the result in the Output panel.

Input

  • Text input — paste or type your input in the left panel (use Sample for an example)

Output

TXT text — copy or download it from the Output panel.

{ } Common uses

  • Put a value containing < or & into an element or an attribute.
  • Show XML markup inside an XML document.
  • Escape text before pasting it into a hand-written document.

{ } Limitations

  • The five predefined XML entities are escaped — & < > " and the apostrophe. Everything else, accented letters included, is left as it is, which is correct for a UTF-8 document.
  • This escapes text. It does not make untrusted markup safe, and it is not a substitute for a CDATA section when you have a large block of markup to carry.

{ } FAQ

Is my data uploaded to a server?

No. Everything runs locally in your browser — your files never leave your device.

Can I process more than one file at once?

This tool works on one input at a time.

Is this tool free?

Yes — it’s completely free and needs no sign-up.

Does XML have more named entities, like HTML?

No — those five are the only ones XML predefines. Anything else has to be declared in a DTD or written as a numeric reference.