Format, validate and conservatively minify XML locally, preserving text whitespace, namespaces, comments and CDATA. Copy or download XML without uploads.
01 / YOUR XML
Up to 200,000 characters. Example: <project><name>Nimzoa</name></project>. XML is never rendered or executed.
02 / RESULT
Format, validate or minify to create output.
Namespaces, attributes, comments, CDATA and processing instructions are retained. Formatting adds indentation only to elements without existing text nodes. Mixed content and xml:space regions remain untouched. Existing indentation is preserved.
Minify compacts tag syntax without removing text whitespace, comments or CDATA, so some line breaks may remain. Validation checks XML well-formedness, not an XSD schema. DTDs and entity declarations are unsupported; external resources are never loaded.
Downloads use UTF-8 and update an existing XML encoding declaration to match. No XML is uploaded or stored.
Enter your values locally; no inputs are uploaded.
Check validation feedback before reviewing the browser-generated result.
Review the explanation, copy supported outputs or reset the workspace.
Paste XML and choose Format, Validate or Minify. Optional indentation is under Advanced. Review syntax feedback, then copy or download the output.
Clear validation, full-width responsive controls, useful advanced options and private browser-local results.
Processing stays in your browser without uploads or storage.
The browser XML parser checks well-formed syntax and namespace usage. This is not XSD or DTD schema validation. Parser line and column details are shown when available.
Yes. All existing text whitespace is retained. Formatting adds indentation only to elements without text nodes; mixed-content and xml:space regions remain untouched.
Whitespace in XML text can affect meaning. Minify conservatively compacts tag syntax without deleting text, comments, CDATA or processing instructions.
No. DTD and entity declarations are rejected before parsing. XML remains inert and is never inserted into the live page or processed remotely.
Up to 200,000 characters, 20,000 lexical tokens and 128 nesting levels. Formatted output is limited to 1,000,000 characters.
Downloads are UTF-8. If the document has an XML encoding declaration, its encoding is updated to UTF-8 to match the downloaded bytes.