XML Tools
Pretty-print, validate and minify XML, and convert it to and from JSON. Handles SOAP envelopes, RSS and Atom feeds, sitemaps, SVG and Maven POMs, with exact error locations for malformed documents.
About XML Tools
XML remains the format of enterprise integrations, feeds and document standards. Formattr validates well-formedness with fast-xml-parser and pretty-prints with xml-formatter, preserving CDATA, comments and processing instructions.
Conversions to JSON let you choose how attributes are represented and whether repeated elements always become arrays, which keeps downstream code predictable.
Frequently asked questions
Does Formattr validate against an XSD schema?
Not currently. It checks that the document is well-formed — tags match, attributes are quoted, entities are valid.
Can I format HTML here?
Use the HTML Formatter for HTML: it understands void elements and whitespace rules that XML does not.
More categories
- Data Formatters & ConvertersFormat, validate and convert the data and configuration formats developers handle every day: JSON, YAML, XML, CSV, TOML and .env files. Every tool here keeps the same information and changes only its structure — pretty-printed for reading, minified for shipping, or converted for the next system. Everything runs in your browser, so API responses and customer records never leave your machine.
- Code FormattersFormat JavaScript, TypeScript, HTML, CSS, Markdown and more with the same engines your editor uses — Prettier, clang-format, gofmt and Ruff — without installing anything. Paste minified or messy code, get consistently formatted output, and minify it again when you need to ship. Code never leaves your browser.