T-49 · Developer tools
Pretty-print or minify XML with 2 or 4 spaces or tabs, and check it is well-formed. Errors show the line and column of the first problem.
Well-formed XML · 369 characters
About this instrument
Paste XML to indent it neatly or squeeze it onto one line. The input is checked for well-formedness as it is parsed: mismatched or unclosed tags, unquoted or duplicate attributes, text outside the root element and more are reported with the line and column where the problem is. Comments, CDATA sections, processing instructions and the DOCTYPE are kept, and text content is never changed.
FAQ
Every start tag has a matching end tag in the right order, attribute values are quoted, attribute names are unique within a tag, and there is exactly one root element.
Minifying removes only whitespace between tags (and comments, if you ask). Text inside elements that contain text, and everything in CDATA sections, is left exactly as it was.
No. The parser runs in your browser, so configuration files and API responses stay on your device.
Related instruments