Inspect XML syntax, add indentation or remove whitespace between tags. Syntax checking uses the browser XML parser; it does not validate your data against an XSD or a business schema. Formatting changes the editor, so keep the original when whitespace carries meaning.
lightbulb When to use this tool
- check_circle Read a compact configuration or XML response with visible nesting.
- check_circle Investigate malformed tags using the parser error message before copying data elsewhere.
Inputs and results
Input: XML text/file and indentation choice.
Output: Formatted/minified XML, copy and download.
How it works
Paste XML, load a text file, or use the sample.
Resolve any parser error before formatting.
Choose indentation and Format, or use Minify for a compact copy.
Review mixed text, attributes and namespaces before copying or downloading.
Examples
science Well-formed versus valid data
An XML element such as <count>many</count> can be well-formed even if your application requires a numeric count. A parser success does not establish that application rule.
science Mixed-content caution
In <p>Hello <b>world</b> !</p>, whitespace contributes to readable text. Compare such content carefully instead of assuming reformatting is semantically neutral.
Limitations
Not XSD validation. Formatting can alter whitespace meaningful to mixed content; keep the original.
Frequently Asked Questions
Does it validate XSD rules? expand_more
Can I use Minify on any XML document? expand_more
Processing & Privacy
Processing uses your browser rather than uploading the supplied input to a processing server. Fonts and tool libraries can make third-party network requests. Optional analytics loads after consent. See the Privacy Policy for site-wide details.