Beautify, minify and validate XML with the browser's own parser. Line/column error reports, three indent styles, and lossless XML ↔JSON conversion. SOAP, RSS, SVG, plist — all handled.
Validation is not approximation. This tool uses DOMParser — the exact parser browsers use for XHTML and SVG. If it rejects your document, real-world consumers will too. The error report includes the precise line and column of the first problem.
The four common killers: unclosed tags (every opening tag needs a match), multiple root elements (XML allows exactly one), unescaped special characters (& for &, < for <), and unquoted attribute values. All four are caught with a location.
XML →JSON is honest about collisions: XML has attributes and child elements, JSON has only keys. This converter prefixes attributes with @ (the xml2js convention) so an element named id and an attribute id never collide. Repeated elements become arrays. The structure round-trips back through JSON →XML.
See also: JSON Formatter (sister) · JSON Minifier · JSON →CSV · CSV →JSON · YAML ↔JSON · SQL Formatter · All JSON / CSV Tools