XML Formatter, Minifier & Validator

XML Formatter, Minifier & Validator

Local Processing

Pretty-print or minify XML and check that it is well-formed.

How It Works & Processing Standards

Pretty-print or minify XML and check that it is well-formed.

Tool processing runs in your browser. If you create a calculator or conversion share link, its values are included in the URL. See the privacy policy for account, analytics and advertising data.

Current Limits

  • Desktop max file size: 50MB
  • Mobile max file size: 20MB

Choose format, minify or validate under "Task". Use it to read one-line XML responses or find a tag that was never closed.

What You Can Do

Format
One element per line, indented by two spaces.
Minify
Removes whitespace between tags.
Validate
Checks tag pairs and attributes and reports the line of an error.

How to Use XML Formatter, Minifier & Validator

  1. 1
    Choose a taskFormat, minify or validate.
  2. 2
    Paste XMLPaste the XML.
  3. 3
    Read the resultCopy it or see the error position.

Examples

Format
Input: <a><b>1</b><c>2</c></a>
Result: <a> <b>1</b> <c>2</c> </a>
Unclosed tag
Input: <a><b></a>
Result: ✗ Invalid (line 1)

Common Use Cases

  • Reading SOAP or RSS responses comfortably
  • Checking the syntax of sitemap.xml or XML config

Frequently Asked Questions (FAQ)

Does it validate against a schema (XSD)?

No. It only checks that the XML is well-formed; element names and order are not validated.

Have feedback or ideas for this tool? Suggest & Inquire →