XML Formatter

Beautify and format XML instantly. Free online XML formatter. Validate and indent XML.

About

XML from APIs and configs often arrives minified. An XML formatter indents and structures your data for readability. Validate syntax, fix formatting, and prepare XML for documentation or debugging. Use cases: SOAP responses, config files, RSS feeds. Paste XML, get formatted output. Runs in browser.

Example

Input

<?xml version="1.0"?><root><a>1</a><b>2</b></root>

Output

<?xml version="1.0"?>
<root>
  <a>1</a>
  <b>2</b>
</root>

Use cases

  • Format SOAP responses
  • Validate XML configs
  • Debug RSS/Atom feeds
  • Prepare XML for docs

XML Formatter

Free, local-first - no data leaves your browser.

Open Tool