SimplConvert

XML formatter & validator

Indent, validate and minify XML, SVG and RSS.Runs in your browser, nothing uploaded

Loading the tool…

About XML formatter

Paste XML and get it back with one element per line and clear indentation, so nested structures are easy to follow. The formatter also checks that the XML is well-formed and points to the line of the first problem, such as a tag that is never closed.

It works with any XML-based format: SVG images, RSS and Atom feeds, sitemaps, SOAP messages, Android layouts, Maven and .NET project files, and more. Minify does the opposite and removes the spacing between tags.

How to use it

  1. Paste your XML or open a file.
  2. Choose Format or Minify, and pick the indent size.
  3. If the XML is not well-formed, read the message and jump to the highlighted line.
  4. Copy or download the result.

Text and mixed content

Text inside elements is kept exactly as written. Elements that mix text with tags, like a paragraph with bold words in it, stay on one line so that no spaces are added to the text. Comments, CDATA sections and processing instructions are kept.

Questions

Does it validate against a schema (XSD)?

It checks that the XML is well-formed: tags are closed and nested correctly, attributes are quoted, and there is one root element. It does not check against an XSD or DTD.

Can I format HTML with it?

HTML is not always valid XML. Use the HTML formatter for web pages.

Is my file uploaded?

Everything happens inside your browser. Your file is never uploaded to a server, so it stays private and the tool keeps working even on a slow connection.