Skip to content
Toolbento

XML formatter

Format, minify and validate XML, with the line number of the first problem.

Everything stays on this device

XML formatter runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Indentation

Missing a feature or found a bug in XML formatter? Tell me on X (@_andrewtran) or by email.

How to use XML formatter

  1. Paste your XML in the input pane.
  2. Choose 2 spaces, 4 spaces or Minify.
  3. Copy the result or download it as a file.

Questions and answers

Is my data sent anywhere?

No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.

What does it check?

That the XML is well-formed: every tag closed and matched, attributes quoted, one root element. It does not check the document against a schema or DTD.

Is my content changed?

Only the spacing between tags. Text, attributes, comments and CDATA sections are kept as they are.

Esc

Loading tools