XML Formatter
Format and indent XML documents for readability.
Processed locally in your browser. Nothing you enter is uploaded or stored.
- Indents nested elements so document structure is readable.
- Handles single-line XML from APIs, RSS feeds and config exports.
- Runs in your browser; documents aren't uploaded.
Why this is private
- Processed locally in your browser. Nothing you enter is uploaded or stored.
- Open your browser's DevTools → Network tab while using this tool — you won't see a request carrying your input, because it never leaves your device.
- Nothing you enter is uploaded to a server or shared with us — the processing happens entirely on your device.
Overview
Reformats minified or inconsistently indented XML into clean, nested markup.
How to use it
- 1Paste XML.
- 2The formatted output updates automatically.
Frequently asked questions
What people use it for
Read an XML API responseExpand a one-line SOAP or REST-XML payload to inspect it.
Inspect an RSS or Atom feedFormat the raw feed to see item structure.
Review a config or manifest fileIndent an `.xml`, `.pom` or `.plist` so nesting is clear.
Tidy XML before committingConsistent indentation keeps version-control diffs meaningful.
Related guides
- How to read JSON with a tree viewerA tree viewer turns a wall of brackets into a structure you can expand, search and copy paths from. Here's how to use one effectively.
- JSON parse errors explained: 'Unexpected token', 'Expected comma or brace', and the restWhat each common JSON error message actually means, the usual cause, and how to find the spot fast using line and column.
- How to format JSON (and actually understand the errors)JSON looks like a JavaScript object but follows stricter rules. Here's what those rules are and how to read the errors when they're broken.
Related tools
All developer toolsXML ValidatorCheck that XML is well-formed and pinpoint the error.XML MinifierStrip comments and insignificant whitespace to compress XML.HTML FormatterFormat and indent HTML markup for readability.JSON Viewer & FormatterView, format, validate, edit and beautify JSON with an interactive tree view, plus a shareable link.
Ready to use XML Formatter?
XML Formatter