Skip to content

Convert JSON, XML, CSV and YAML

Runs only in your browser. Nothing is sent to our servers.

Convert data between JSON, XML, CSV and YAML. Pick the formats, paste the data and convert.

Result

How the conversion works

  • XML attributes become keys that start with @, and element text next to attributes becomes #text. The same keys turn back into attributes when you convert to XML.
  • To XML: an object with one key uses that key as the root element. Anything else is wrapped in <root>, and array items become <item>.
  • To CSV: each array item becomes a row. Nested fields are flattened to dot paths such as customer.name. If the data is wrapped in a single key, such as {"orders": [...]}, the array inside is used.
  • From CSV: the first row is the header. Numbers and true/false are typed, and dot paths in the header are turned back into nested objects.