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.

Action

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