Skip to main content
dubinity

Developer & Web

XML Formatter

Format or minify XML and check that it is well formed, with the line and column of any error.

  • Runs in your browser
  • Works on mobile
  • In: XML, SVG, RSS
  • Out: XML
Loading the tool…

Your files and text are processed on your own device, inside this page. Nothing is uploaded to Dubinity or stored, and closing the tab discards it. How privacy works

About XML Formatter

Indents XML, RSS feeds, sitemaps, SVG and configuration files, or squeezes them onto one line.

Before formatting it checks the document the way a parser would: unclosed or mismatched tags, unquoted or duplicate attributes, a bare & in text, more than one root element. Errors come with a line, a column and a code frame.

Mixed content and elements marked xml:space="preserve" are left exactly as written, because whitespace there is data.

How to use it

  1. 1Type or paste your text, or open a file.
  2. 2Choose any options - the result updates as you type.
  3. 3Copy the result or download it as a file.

Questions

Was this tool helpful?

All developer tools
  • JSON Formatter

    Format and indent JSON, or minify it, with exact error positions and big numbers kept as written.

    JSON
    Runs in your browserOpen tool
  • HTML Formatter

    Indent messy or minified HTML so you can read it, with a preview of how it renders.

    HTML
    Runs in your browserOpen tool
  • XML Sitemap Generator

    Turn a list of URLs into a valid sitemap.xml, with optional lastmod, changefreq and priority.

    TEXT
    Runs in your browserOpen tool
  • Password Generator

    Create strong random passwords with the character rules a site demands, and see the real entropy.

    NONE
    Runs in your browserOpen tool
  • What Is My IP

    See the IP address our server sees, the rough location attached to it and what your browser sends.

    NONE
    Server lookupOpen tool
  • Regex Tester

    Test regular expressions live with highlighted matches, capture groups and a replacement preview.

    TEXT
    Runs in your browserOpen tool