TOOLTIKI Lovable tool, really free
Developer Formatting

XML formatter

What to do
Indent

Processed in your browser · nothing is uploaded

Local · well-formedness, not schema validity
Advertisement
320 × 100

Re-indents an XML document by nesting depth, minifies it, or checks it is well-formed using the browser’s own parser.

How to use the xml formatter

1 Paste your input. The result appears immediately.
2 Pick the operation you want.
3 Copy the result, or save it as a file.

Well-formed and valid are different things and the difference matters. Well-formed means the syntax holds: every tag closed, correctly nested, one root element, attributes quoted. Valid means it additionally conforms to a DTD or schema saying which elements may appear where. This checks the first and not the second, because the second needs the schema. Two things make XML stricter than HTML and catch people out: tags are case-sensitive, so `<Book>` does not close `<book>`, and a bare ampersand is illegal — it must be written `&amp;` even inside an attribute.

Questions

Well-formed is correct syntax. Valid additionally conforms to a DTD or schema. This checks well-formedness.

W3C — Extensible Markup Language (XML) 1.0
Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING