- YAML Formatter (Pretty Print & Fix Indentation)
- Online JSON Converter (Pretty, Minify, Validate, CSV)
- Online JSON Converter to Excel (CSV/TSV)
- Base64 Format Checker (Base64/Base64URL Validator)
- Base64 Checker Online (Validate, Decode, Encode)
- Base64 Checker (Validate, Decode, Encode)
- VAT Checker Ireland (IE) • VAT Checker Great Britain (GB)
How to use
Use this tool to format or validate XML without leaving your browser.
- Paste your XML into the input box.
- Choose Pretty or Minify, and set indentation options.
- Click Format (or Minify) to generate output, or Validate to only check syntax.
- Copy the result with Copy.
FAQ
Does this XML formatter upload my data?
No. Formatting and validation run locally in your browser with no network calls.
Can it validate XML?
Yes. Click Validate to check if the XML parses and see an error message if it doesn’t.
What’s the difference between Pretty and Minify?
Pretty adds line breaks and indentation; Minify removes whitespace between tags to reduce size.
Will formatting change my XML content?
It preserves structure and text nodes, but it may remove whitespace between elements, which can matter for mixed-content XML.
Can I keep the XML declaration (<?xml ...?>)?
Yes—enable Keep XML declaration to preserve it when present in the input.
Why do I see a “parsererror” message?
Your XML isn’t well-formed (for example, a missing closing tag or invalid character). Fix the reported spot and try again.
Does it support attributes, namespaces, CDATA, and comments?
Yes for parsing/validation; pretty-printing keeps them but may not reflow them exactly as your original source.