Format, validate XML with XPath queries, interactive tree view, XML-to-JSON conversion, and multiple color themes
Got a wall of unformatted XML? Paste it here and get a properly indented, syntax-highlighted version. The formatter validates well-formedness and flags errors so you can fix broken tags or mismatched nesting before they cause problems downstream.
Initializing in your browser…
Format, validate, minify JSON with JSONPath queries, tree view explorer, schema validation, diff comparison, and sort keys. Multiple indent styles
Format, validate, and convert between YAML and JSON formats. Live validation, syntax highlighting, and bidirectional conversion.
Minify or beautify code in 7 languages: JavaScript, TypeScript, CSS, HTML, JSON, XML, SQL with compression visualization
A SOAP response arrived as one unreadable line and you need to inspect the nested elements and confirm it is well-formed.
Input
<order><item id="9">Widget</item><qty>3</qty></order>
Formatted
<order> <item id="9">Widget</item> <qty>3</qty> </order> ✓ Well-formed
The parser pretty-prints the hierarchy and reports the exact location of any unclosed tag or stray character, which is far faster than scanning a single 4 KB line. It also minifies and can validate structure, useful when an integration partner sends XML that "looks fine" but is not.
Got a wall of unformatted XML? Paste it here and get a properly indented, syntax-highlighted version. The formatter validates well-formedness and flags errors so you can fix broken tags or mismatched nesting before they cause problems downstream.
Format SOAP or REST XML responses into readable structures for debugging and data inspection.
Clean up XML config files (Maven pom.xml, Spring beans, Android manifests) for easier reading and editing.
Check XML data feeds for well-formedness issues before processing them in ETL pipelines.
The formatter parses your XML into a tree, validates structural correctness, and re-serializes it with consistent indentation. Attributes are preserved in their original order, CDATA sections and processing instructions are handled correctly, and namespace prefixes remain intact. You can adjust indentation depth and choose whether to collapse empty elements into self-closing tags.
No, it checks well-formedness (proper nesting, matching tags, valid characters) but does not validate against XSD or DTD schemas.
Yes. Namespace declarations and prefixed elements are preserved exactly as they appear in the input.
It works well for files up to a few megabytes. For very large files, browser memory may become a limiting factor.
Your text is processed locally in the browser. Nothing you paste or open is transmitted or logged.