XML Formatter

Pretty-print, validate, and minify XML documents. Tree view, attribute sorting, namespace handling — 100% browser-based, no uploads.

Ctrl/⌘ + , to toggle options
Saved
XML Input
Formatted XML

◆ What it does

Format and validate XML documents with proper indentation and structure. Supports namespaces, CDATA, and processing instructions.

▸ How to use

  • Paste XML into the input area.
  • Choose indent size and mode (format or minify).
  • Click Format (or Ctrl+Enter).
  • Copy, download, or share the result.

▸ Why use this

  • Compact XML is impossible to read or debug.
  • Browser-native DOMParser validates XML structure instantly.
  • Works offline — zero server uploads.