XML Formatter
Pretty-print XML with indentation or minify it to one line. Validates tag balance and preserves comments and CDATA. Everything runs in your browser.
FAQ
Does it catch XML syntax errors?
It detects unclosed and mismatched tags. Full schema validation (XSD/DTD) is not supported.
How are comments and CDATA handled?
Comments (<!-- -->) and CDATA sections are preserved exactly as written.
Is my XML sent to a server?
No. All processing happens locally in your browser; nothing is transmitted or stored.
Related tools
Format JSON for readability or minify it to a single line. Syntax errors are shown instantly.
Parse, validate, and reformat YAML into a consistent style, with optional key sorting. Everything runs in your browser.
Encode characters like <, >, &, and quotes into HTML entities, or decode them back including numeric and hex entities. Everything runs in your browser.