XML Toolkit - Format, Validate & Convert XML

Free online XML toolkit. Format, minify, validate XML syntax, validate against XSD/DTD, convert XML to JSON, visualize trees, and evaluate XPath. 100% client-side.

Features

Frequently Asked Questions

What is the difference between well-formed and valid XML?

“Well-formed” means syntactically correct (tags balanced, single root, proper escaping). “Valid” means well-formed AND conforms to a schema (XSD or DTD). This toolkit checks both.

How does XML to JSON conversion handle attributes?

XML attributes are mapped to JSON keys (commonly with an @ prefix by convention) and element text to a text/body key. The exact mapping varies by converter; the toolkit uses a consistent, documented convention.

What is XPath and how do I use it here?

XPath is a query language for selecting nodes in XML (e.g., /bookstore/book[@category="web"]). Enter an expression and the toolkit evaluates it against your document, returning matching nodes.