Skip to content
Private: files never leave your device

XML Formatter and Validator

XML formatter that makes XML readable with neat indentation, confirms it is well-formed with exact error positions, or minifies it. Handles sitemaps, RSS feeds, SOAP and Android files.

XML Formatter and Validator tool

Beautify with 2 or 4 spaces or tabs, validate with line and column, or minify.

Handled on your device, so your files stay private.

XML Formatter and Validator at a glance

XML formatter and validator: indent XML neatly, find errors by line and column, or minify it. Sitemaps, RSS and SOAP supported. Free, private.

Cost
Free to use, with no account, watermark or usage cap.
Privacy
Processing happens on your device; nothing is sent to our servers.
Devices
Up-to-date Chrome, Edge, Firefox or Safari on computers, Android phones and iPhones.
Last updated

Formatting XML, step by step

  1. Paste your XML or drop an .xml file in. Click Load sample to try it out.
  2. Pick Format / beautify with 2 spaces, 4 spaces or tabs, or pick Minify.
  3. If the XML contains an error, its line and column are displayed so you can fix it.
  4. Copy the output or save it as an .xml file.

Format, check and minify

  • Format nested elements with consistent indentation; short text can stay on one line to keep things readable.
  • Validate using the browser's own XML parser: unclosed or mismatched tags, illegal characters and duplicate attributes are reported with their location.
  • Minify by stripping whitespace between elements, and optionally comments too.

Handy for SEO and development

Check an XML sitemap before submitting it in Google Search Console, read an RSS or Atom feed, debug a SOAP request, or tidy Android layouts, Maven pom.xml and .NET config files. For JSON, use the JSON Formatter; for YAML, YAML to JSON.

Your data stays private

Lots of online text utilities send whatever you paste to their servers. These run entirely in your browser, so contracts, essays, customer lists, passwords and source code never leave your device. Nothing is saved, and you need no account.

Frequently asked questions

How can I check whether my XML is valid?

Paste it in. Well-formed XML gets a green confirmation; otherwise the error is shown with its line and column.

Can it validate against an XSD schema?

No. It checks that the XML is well-formed (correct syntax) but does not test it against an XSD schema.

Does formatting alter my data?

No. Only the whitespace between elements changes. Text, attributes and CDATA sections are left alone.

Can it handle big XML files?

Yes. Files of several megabytes are fine; very large ones depend on your device's memory.

Does my text get uploaded?

No. Everything happens in your browser on your own device. Your text is never sent, logged or saved.