XML Viewer

Pretty-print and inspect XML documents.

#development#data

About the XML Viewer

Paste an XML document to format it with clean indentation, or minify it to a single line. Invalid XML is detected and reported so you can spot structural problems quickly.

Everything is processed in your browser, which makes it safe for inspecting API payloads, feeds and config files — nothing is uploaded.

Features

  • Pretty-print XML with indentation
  • Minify XML to a single line
  • Validates and reports XML errors
  • Copy the result to your clipboard
  • Runs entirely in your browser
  • Free with no sign-up and privacy-friendly

How to format XML

  1. Paste your XML into the editor.
  2. Click Format to indent it, or Minify to compress it.
  3. Check the error message if your XML is invalid.
  4. Click Copy to grab the result.

Frequently asked questions

Does it validate XML?

Yes. It parses the document and reports a message if the XML is not well-formed.

What's the difference between format and minify?

Format adds indentation and line breaks for readability; minify removes whitespace between tags for the smallest output.

Is my XML uploaded?

No. All processing happens locally in your browser.

Is it free?

Yes, completely free with no sign-up.