XML Formatter & Validator

Turn a one-line XML file into an indented tree, or the reverse. The browser’s XML parser checks well-formedness and reports the first error it finds.

Runs entirely in your browser. Your input and files are not uploaded to any server.

How to use

  1. Paste XML.
  2. Choose Format or Minify and the indentation.
  3. Copy or download the result.

Examples

Sitemap

Check a sitemap.xml copied from a server and make it readable.

Privacy

Runs entirely in your browser. Your input and files are not uploaded to any server. See the privacy policy for what is stored in your browser (favorites and history only). Privacy policy

Check it yourself: open your browser’s developer tools, select the Network tab and use the tool. Your file never appears in an upload request. Once this page is saved for offline use, you can also disconnect from the internet and keep working. Ads and anonymous visit statistics, when enabled, make their own requests, but they never receive your files or text.

Frequently asked questions

Does it validate against a schema (XSD)?

No. It checks that the XML is well-formed (tags are balanced, attributes quoted, one root element). Schema validation needs the schema file and a dedicated validator.

Are comments and CDATA kept?

Yes, both are preserved in format and minify mode.

XML Sitemap GeneratorPaste a list of URLs and get a valid, escaped sitemap.xml with optional last-modified dates.
SVG Preview & OptimizerPreview SVG files safely and shrink them by removing comments, editor metadata and whitespace, with optional number rounding.
Color Picker & ConverterPick a colour, convert between HEX, RGB and HSL, sample colours from an image or your screen, and check contrast against white and black text.

Search tools