Skip to content

XML formatter

Beautify, minify, validate and convert XML ↔ JSON — with live preview.

0 bytes
Output will appear here as you type.
Mode
Indent

Features

How it works

  1. Paste, type or drop any XML — or JSON, for the JSON → XML mode — into the input pane. Well-formedness is checked inline as you type, flagging the line and column of the first error.
  2. Pick a mode — Beautify, Minify, XML → JSON or JSON → XML — and an indent size (2 spaces, 4 spaces or tab).
  3. The result updates live; copy it to the clipboard or download it as a .xml or .json file.

Your files never leave this page

Every conversion runs entirely in your browser using WebAssembly. There is no upload, no server-side processing, no analytics, and no cookies. Open DevTools → Network during the operation and you will see zero outbound traffic.

Topics covered