← All tools

XML Formatter & Well-Formedness Checker

Format XML and check its structure locally. Preserve mixed text and inspect parser errors without uploading your document.

Your XML stays in this tab. No upload or storage. Up to 512 KiB.

Supported XML and formatting effects

Checks XML 1.0 structure, not XSD, DTD or data correctness. Supports namespaces, comments and CDATA. Mixed text, CDATA or xml:space="preserve" keeps the entire original. Formatting may change namespace, quote, empty-tag and XML declaration representations.

Result

Paste XML or load the sample, then format or check it.

How to use this tool

Paste XML, choose indentation, then format or check well-formedness. Review the result before copying it into your workflow.

When not to use it

This is not an XSD or DTD validator. Well-formed XML does not prove that data is correct or trusted. Formatting is not byte-preserving and must not be used on signed XML.

Read the guide →