Escape XML special characters to entities or unescape entities back to text. Runs in your browser — your data never leaves your machine.
Converts all 5 XML-special characters: & to &, < to <, > to >, " to ", and ' to '. These cover every character that can break XML syntax.
Type in either panel — text on the left escapes to entities on the right, and entities on the right unescape to text on the left, all in real time.
All escaping and unescaping runs locally in your browser using JavaScript. Nothing is sent to a server — safe for sensitive data.
Type or paste text containing XML-special characters in the left panel and the escaped version with entity references appears instantly on the right. To unescape, paste XML text with entities like & and < in the right panel and the original text with literal characters appears on the left. The built-in entity reference table shows all 5 predefined XML entities for quick reference.
XML uses angle brackets to delimit tags and ampersands to start entity references. When these characters appear as literal text content, they must be replaced with predefined entity references to avoid ambiguity. The XML specification defines exactly 5 such entities. Proper escaping is critical for generating well-formed XML and preventing injection attacks when constructing XML from user input.
Escape or unescape JSON strings instantly. Handle special characters, quotes, and Unicode. Free.
Pretty-print or minify XML with configurable indentation. Free, runs in your browser.
Validate XML syntax and see errors with line numbers. Free, runs in your browser.