XML Formatter & Validator

Format, minify, and validate XML locally in your browser.

XML input

Processed XML

About

Parse XML with the browser's native XML parser, then format it for review or remove indentation for transport. Nothing is uploaded.

Key Features

  • Native XML validation
  • Two-space indentation
  • Safe handling of mixed text content
  • One-click minification

How to use

  1. 1Paste an XML document into the input.
  2. 2Choose Format XML or Minify XML.
  3. 3Review the validation result and copy the output.

Example

Input

<user><name>Ada</name><active>true</active></user>

Output

<user>
  <name>Ada</name>
  <active>true</active>
</user>

Limitations

  • Input is limited to 2,000,000 characters.
  • Formatting preserves mixed text content on one line to avoid changing whitespace.
  • The tool does not resolve external entities or schemas.

Last reviewed:

Related Tools