TonySkill

XML formatter

Indent XML cleanly or minify it. Comments, CDATA and mixed content preserved, tag errors pinpointed. Nothing is uploaded.

Accepted: JSON, CSV, TSV, XML, YAML, YML, TXT, RSS, ATOM, KML, GPX, XSD, PLIST · Max 50 MB per file

Processed on your device. Only tools that say so send a file to our server.

Tip: paste text anywhere on the page (Ctrl+V).

How to format XML

  1. Paste your XML or drop the file (XML, SVG, RSS, GPX…).

  2. Pick the indentation or the minified version; a badly closed tag is reported with its line.

  3. Copy the formatted XML or download it.

Why use this tool

Clean indentation
2 or 4 spaces or tabs. In XML, comments, CDATA and mixed content (text and tags together) are kept as they are.
Errors explained
A missing comma, a badly closed tag, wrong indentation: the line and column are shown, the line is highlighted and “Go to error” puts the cursor there.
Minification
Compact onto a single line to slim down a file or embed it in code. The downloaded file name ends in .min.
Nothing leaves your device
The conversion runs in your browser: your data is never sent to a server, even 50 MB files.

Something wrong with this tool?

More data tools

  • JSON formatterIndent unreadable JSON in one click, or compact it onto a single line. Errors are pinpointed to the line.FreeNo sign-up
  • Data converterSwitch between data formats: CSV, JSON, XML or YAML. The source format is detected automatically.FreeNo sign-up
  • CSV to JSONEach CSV row becomes a JSON object keyed by the headers. Delimiter detected, numbers and booleans recognised.FreeNo sign-up
  • JSON to CSVA list of JSON objects becomes a CSV table ready for Excel. Nested objects are flattened into columns.FreeNo sign-up
  • CSV editorOpen a CSV in a real spreadsheet: delimiter detected, accents kept, save as CSV or Excel.FreeNo sign-up
  • CSV to XLSXOpen a CSV in Excel without broken accents or columns.FreeNo sign-up