Paste your XML
Paste your XML into the input box.
Pretty-print, validate and minify XML in secondsXML never really went away: SOAP services, RSS feeds, sitemaps, Android manifests, Maven build files. Real-world XML arrives as one endless line. Paste it here and get it back pretty-printed with clean indentation that reveals the true nesting.
Pretty-print, validate and minify XML in seconds
0 characters in, no output yet.
Paste your XML into the input box.
Choose your indent width and click Format (or Minify).
Copy the cleaned XML or download it as a file.
Minified XML is painful to read: a whole sitemap on one line, with nesting you can only guess at. This formatter rebuilds the layout with clean, consistent indentation, preserving attributes, comments, CDATA blocks, and processing instructions.
It doubles as a lightweight validator, flagging mismatched or unclosed tags with specific errors. One click minifies the document back down when readability isn't the goal.
Making inherited XML reviewable.
Inspecting a SOAP response shows what the service actually returned. The formatted view makes the document reviewable rather than merely present.
Checking an RSS feed that stopped updating reveals the malformed entry that broke it. One unclosed tag can silence a whole feed.
Reviewing a sitemap before submitting it to search engines catches structural mistakes early, when they are still cheap to fix.
Editing a pom.xml or AndroidManifest.xml is safer with clean indentation revealing the true nesting, since one misplaced tag breaks the whole build.
Strict rules, clear explanations.
XML has strict rules: every opened tag must close, attribute values must be quoted, and the document needs exactly one root element. Violations are flagged with an explanation.
The unclosed tag or stray ampersand that would make a parser reject the document gets caught before it reaches a failing system.
JSON won the API wars for new development, but XML remains entrenched where schemas, namespaces, and document validation matter. Formatting takes no sides.
Paste, format, copy. Validation rides along, free, with no signup.

Free hosting provider checker. Reveal any website's hosting company accurately, server IP and reverse DNS from header and DNS fingerprints, in seconds.
Read article →
Free SSL certificate checker: verify any website's certificate issuer, expiry date, days remaining, covered domains and fingerprint. Avoid expiry outages.
Read article →