XML formatter and minifier

Format or minify XML, check it is well-formed with errors by line and column and, if you need it, convert it to JSON. Comments, CDATA and entities stay as you wrote them. Everything runs in your browser.

Your data stays on your computer. Files are processed in your browser and are never uploaded.

Drop an .xml file (or .svg, .rss, .xhtml…) here, or type below.

What is touched

Only the whitespace between tags. Text, entities (&, é), CDATA, comments, instructions, DOCTYPE and the content of xml:space="preserve" stay identical. In mixed content the text goes on its own lines.

Checks

Nested tags, a single root, unique and quoted attributes, valid entities. Then the browser's own parser gives a second opinion (for example on undefined entities).

Where your data goes

Everything happens on this page: the text is not stored, put in the address or sent. External entities in an XML file are never downloaded or expanded.

Keyboard shortcuts

In this tool

This tool has no keyboard actions.

Everywhere

Open this panel (outside text fields)
?
Closes panels and menus, never clears data
Esc
Search for a tool
/ or CtrlK

Tool chains

Link several tools into a path: after using a tool, “Send to…” offers the next step first. Saved chains keep only a name and the tools, never your data.

Saved chains

No saved chains.

New chain