Format XML
Format well-formed XML with two-space indentation.
Input & settings
How to use this tool
Paste your source, choose the supported options, then process. Inspect or download the complete result.
Limits and behavior
DOCTYPE/entity declarations rejected. Added indentation is whitespace and may affect whitespace-sensitive XML; use a copy. This checks well-formedness, not XSD. Maximum total input 1 MB, output 3 MB, JSON nesting 64 levels. Processing stays in your browser worker. Input is limited to 1 MB and output to 3 MB. No input content is saved by CraftAI.
Pretty-print valid XML for readability
Paste a well-formed XML document to produce a consistently indented version. This XML beautifier helps developers inspect nested elements and markup.
Will formatting XML fix broken tags?
No. The XML must be well formed first. Repair invalid elements or attribute syntax before formatting.
Related tools: XML validator · Minify XML