How to use
Paste XML into the input box, choose an action, and copy the result.
- Paste your XML (or text to escape/unescape) into Input.
- Pick Format, Minify, Validate, Escape, Unescape, or XML → JSON.
- Check Error if something fails; otherwise use Copy output.
FAQ
Does this tool validate against XSD/DTD schemas?
No. It checks XML well-formedness (parseable XML) and reports parser errors.
Is my XML uploaded to a server?
No. All operations run locally in your browser with no network requests.
Why can formatting change whitespace?
Pretty-printing may normalize whitespace-only text nodes; enable Keep whitespace if you want to preserve them.
What does Minify do?
It removes most whitespace between tags and outputs a compact XML string.
Can XML → JSON round-trip back to the same XML?
Not perfectly. The JSON output is meant for inspection and debugging, not lossless conversion.
What characters does Escape / Unescape handle?
Escape converts &, <, >, ", and '; Unescape reverses those and also supports numeric entities like & and &.
My XML has a DOCTYPE. Will it be preserved?
Browsers may not preserve DOCTYPE consistently via DOMParser/XMLSerializer, so it may be omitted in formatted/minified output.