Home›Developer Tools›XML Formatter Online

XML Formatter

Indent or minify XML and catch unclosed tags — right in your browser.

Also searched as: xml beautifier · xml validator

XML formatter and validator

Paste XML — a SOAP response, sitemap, RSS feed, Android layout or GST e-invoice XML — and get it indented with one element per line, or minified into a single line. The tool uses the browser's XML parser, so unclosed tags, mismatched case and stray & characters are reported as errors.

Also see the JSON formatter and Word to HTML converter.

Frequently asked questions

Does it validate against an XSD schema?

No — it checks well-formedness (matching tags, proper nesting, escaped characters), which catches most problems.

Why is my & causing an error?

In XML an ampersand must be written as & unless it starts an entity like <.

Is the XML uploaded?

No, everything runs locally in your browser.

More free tools

JSON Formatter & ValidatorBeautify, minify and validate JSONDeveloper ToolsBase64 Encode / DecodeText ↔ Base64, UTF-8 safeDeveloper ToolsURL Encode / DecodePercent-encode or decode any URL or query stringDeveloper ToolsHEX to RGB ConverterHEX ↔ RGB ↔ HSL with a live colour previewDeveloper ToolsRegex TesterTest JavaScript regular expressions with live matchesDeveloper ToolsWord to HTML ConverterPaste from Word or Docs, get clean HTMLDeveloper Tools