XML Formatter

Paste XML to indent it neatly and check that every tag is closed.

  • Free, no sign-up
  • Runs in your browser

Drop your file here, or

TXT, CSV, JSON, Markdown, HTML, XML, DOCX, PDF, RTF and more

Type, paste with Ctrl V, or drop a file

Options

Indentation

or press Ctrl EnterRuns in your browser

Result

Your result will appear here.

Add your text, then press Format XML.

How to use XML Formatter

  1. Paste your text into the input box, or drop a file onto it.
  2. Choose your options.
  3. Press Format XML.
  4. Copy the result or download it in the format you need.

Example

Before
<note><to>Ada</to><from>Grace</from></note>
After
<note>
  <to>Ada</to>
  <from>Grace</from>
</note>

2-space indentation.

Good for

  • Reading sitemaps, RSS feeds and SVG files
  • Debugging API responses and config files
  • Minifying XML for transfer

What happens to your text

Your text is processed in your browser and kept only in this tab’s memory. It is not uploaded, saved or used for analytics.

Questions about XML Formatter

More answers in the TextVix FAQ.

Are comments and CDATA kept?

Yes. Comments, CDATA sections, processing instructions and the DOCTYPE are kept as written.

Is my text uploaded anywhere?

No. This tool runs entirely in your browser. Your text and files are never sent to a server or stored.