XML Formatter | Beautify and Validate XML Online
Beautify, minify, and validate XML with CodeMirror highlighting, LF/CRLF control, optional declaration stripping, and a tree view for large documents.
Free online XML formatter: beautify, minify, validate, tree view, and uploads—for configs, SVG, and feeds.
How to use
When to use
Pretty-print API payloads, shrink config blobs, or sanity-check SVG and feed snippets before deployment.
Workflow
- Paste or upload XML; pick indent, line endings, and whether to drop the declaration.
- Run Format, Minify, or Validate depending on your goal.
- Open Tree view to explore structure; expand or collapse nodes as needed.
Tips
- Minify removes comments and inter-element whitespace—confirm downstream expectations.
- Drag the resize bar under the editor to adjust height for large files.