XML Formatter
Beautifies XML with clean indentation or minifies it to one line.
Check whether your XML is well-formed. If it isn't, you get the line and column of the first error and a plain-English explanation of how to fix it.
.xml file.^ under the problem, and how to fix it.The validator reads the XML with a strict parser that follows the XML 1.0 well-formedness rules:
< and & in text are escaped as < and &, and every entity is one of the five predefined ones, a numeric reference, or declared in the DOCTYPE._, or :, and the XML declaration, if present, comes first.<note><to>Ada</note> is invalid: the end tag </note> doesn't match the open element <to>. Fix: close <to> first.<a href=https://example.com></a> is invalid: attribute values must be in quotes.<q>Tom & Jerry</q> is invalid: a bare & must be written &.<a/><b/> is invalid: an XML document can have only one root element.<list><item n="1"/><item n="2"/></list> is valid: 3 elements, 2 attributes, depth 2.Well-formed XML follows the syntax rules: matched tags, quoted attributes, one root. Valid XML is also well-formed and matches a schema (DTD or XSD) that says which elements are allowed where. This tool checks well-formedness.
HTML allows unclosed tags such as <br> and attributes without values. XML doesn't. Write <br/> and give every attribute a quoted value.
Write &, <, and >, or put the text in a CDATA section: <![CDATA[ a < b && c ]]>.
No. It is checked in your browser.
Often used together with the XML Validator.
Beautifies XML with clean indentation or minifies it to one line.
Converts XML into readable JSON, with attributes and repeated elements handled.
Checks JSON syntax and explains any error in plain English.