Pretty-print, minify, or check XML and convert it to JSON in your browser. Text, CDATA, comments, entities, and attribute order are kept exactly as written; only the whitespace between elements changes. Errors point to the line and column.
Paste XML into the input box, drop a file such as .xml, .svg, .rss, or .plist, or click Open file.
Pick an Output: Format, Minify, or JSON.
For Format, choose the Indent and how Attributes wrap: One line, Wrap long tags, or One per line.
Optional: turn on Self-close empty elements or Remove comments, then copy the result or click Download.
No. The browser's own XML parser checks the document and the formatting runs locally, so nothing is sent to a server.
No. It checks that the XML is well-formed, meaning tags, quotes, and entities are correct. Schema validation is not part of this tool.
Only whitespace between elements changes. Text, CDATA sections, comments, entities, and attribute order stay as written, unless you turn on Remove comments.
Each element becomes an object, attributes become keys starting with @, text goes under #text, and repeated child tags become arrays.
Yes. Any well-formed XML works, including SVG, RSS, Atom, plist, KML, GPX, XLIFF, and .csproj files.