CodeUtils
Loading…

Indent and structure XML documents for readability. Handles nested elements, attributes, CDATA sections, and namespaces cleanly.

Use Cases

  • Formatting SOAP request and response payloads
  • Cleaning up minified Maven or Gradle build files
  • Inspecting RSS and Atom feeds
  • Reviewing configuration files from Java or .NET applications

Example

Input
<catalog><book id="1"><title>Clean Code</title><author>Martin</author></book></catalog>
Output
<catalog>
  <book id="1">
    <title>Clean Code</title>
    <author>Martin</author>
  </book>
</catalog>

FAQ

Can it handle XML with namespaces?

Yes. Namespace declarations and prefixed elements are preserved exactly as-is.

What indent size is used?

2 spaces by default. You can switch to 4 spaces or tabs using the toolbar.