Skip to tool
FeuTex · free tools runs in-browser no bloat built by LiMiT

XML Tools

Format, minify, validate (well-formed), escape/unescape, and convert XML to JSON — directly in your browser. Nothing is uploaded.

Category: Developer · URL: /tools/xml-tools.html
Tip: Validate checks well-formed XML (not XSD/DTD).
No network calls. Runs locally in your browser.
Privacy: runs locally in your browser. No uploads, no tracking scripts.

How to use

Paste XML into the input box, choose an action, and copy the result.

  1. Paste your XML (or text to escape/unescape) into Input.
  2. Pick Format, Minify, Validate, Escape, Unescape, or XML → JSON.
  3. Check Error if something fails; otherwise use Copy output.
Keywords this page targets (natural cluster): xml tools, xml formatter, pretty print xml, xml beautifier, xml minifier, minify xml online, xml validator, check xml well formed, xml escape characters, xml unescape entities, xml to json converter, convert xml to json, format xml with indentation, remove whitespace from xml, xml parse error, xml serializer, xml pretty printer, escape xml ampersand
Secondary intents covered: Pretty-print XML for debugging and code reviews, Minify XML to reduce payload size before sending/storing, Validate that XML is well-formed and find parse errors, Escape or unescape XML entities for embedding in attributes/text, Convert small XML snippets to JSON for quick inspection, Normalize XML formatting for consistent diffs

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.