JSON ↔ YAML ↔ TOML ↔ XML ↔ CSV illustration

JSON ↔ YAML ↔ TOML ↔ XML ↔ CSV

Converts data between JSON, YAML, TOML, XML and CSV in any direction. Paste anything — the input format is auto-detected — and the output updates live as you type, with parse errors pinned to a line number. CSV gets delimiter and header-row options plus a column picker when exporting arrays of objects, and clear warnings appear when a target format loses data (flattened nesting in CSV, dropped nulls in TOML, dropped comments). Download the result with the right file extension.

Runs 100% in your browser — nothing you paste leaves your device.

Notes

  • YAML and TOML are parsed with well-tested libraries (js-yaml, smol-toml) loaded on demand from a CDN.
  • Not every conversion is lossless: XML attributes, TOML dates and YAML anchors have no exact JSON equivalent; the tool tells you when something was approximated.
  • Runs 100% in your browser — nothing you paste leaves your device.

Explore the idea

This interactive demo needs JavaScript.