XML Formatter & Validator
Pretty-print XML with proper indentation. Catches malformed tags via the browser's XML parser.
XML input
Formatted XML
Start typing in the left pane.
More tools
XML Formatter & Validator
Dev / SEO tool
Current
JSON Formatter
Pretty-print JSON
YAML Formatter
Pretty-print YAML
HTML Tag Stripper
Extract text
XML Formatter & Validator
XML stuffed on one line is unreadable. This tool pretty-prints any XML with adjustable indentation, and uses the browser's native DOMParser to check validity. Invalid XML is reported with the parser's own error message.
- Pretty-print with 0–8 space indentation
- Validation via native DOMParser — no library needed
- Works with any XML your browser can parse
- Runs entirely in your browser