Paste XML to check that it is well-formed, i.e. that any XML parser will read it. Each error names the line and column, the tag involved and what to write instead.
Open a file: (or drop it on this box)
Many formatters parse XML into a DOM and print it back, which quietly rewrites the document: entities like ' come back as ', CDATA sections turn into escaped text, single-quoted attributes become double-quoted, and some tools trim or re-wrap text. This one works on the original characters. It moves elements onto their own lines and indents them, and copies everything else as written:
<p>Text with <b>bold</b></p> stays on one line, because adding line breaks there would add spaces to the text.<a/> and <a></a> are not swapped.XML parsers stop at the first well-formedness error, and their messages (mismatched tag, not well-formed (invalid token), EntityRef: expecting ';') rarely say what to change. Here each error gives the line and column, shows the line with a caret, and names the fix. The usual causes:
Smith & Sons, ?a=1&b=2): it must be written &. or ©: XML only predefines five, so the error gives the numeric form ( ).<Item>…</item>), since XML tag names are case-sensitive.<br> without a closing slash.<?xml ?> declaration that is not the very first line.Well-formed is not the same as valid against a schema: this checks the syntax every XML parser requires, not an XSD or DTD.
Need a document from XML data, like an invoice, a report or a feed snapshot? Transform it to HTML (XSLT or your own template) and the Shotmint API renders it in real Chromium: POST https://shotmint.creasework.com/v1/pdf with {"html": "…"} returns a PDF and /v1/screenshot returns a PNG of any page or HTML (1 credit each; 25 free renders a month, then €5 for 2,000 that never expire). Scripts, AI agents and Make or Zapier can get a key with a bare POST https://shotmint.creasework.com/v1/keys/free (no body, JSON reply); the request bodies are described in openapi.json.
Get 25 free renders a month API docs
Is my XML uploaded? No. Checking and formatting run in your browser; this page sends nothing to a server, so it is safe for config files, SOAP messages and exports with personal data.
Does it check namespaces or a schema? No. It checks well-formedness (the rules of XML 1.0 itself). Undefined entities are accepted when the file has a DOCTYPE, since the DTD may declare them.
Related tools: XML formatter, XML minifier, XML to JSON, JSON to XML, JSON formatter, YAML to JSON.
JSON Validator · JSON to XML · XML to JSON · XML formatter · Minify XML · all free tools