Skip to content

Structured Data Converter

Convert between JSON, YAML, XML, TOML, and CSV.

Conversion notes

  • TOML does not support a top-level array, so arrays are wrapped as { items: [...] } before conversion. Data whose top level is neither an object nor an array cannot be converted.
  • TOML cannot represent null, so keys with a null value are omitted from TOML output (null inside an array is an error).
  • XML requires a single root element, so data without one obvious root (arrays, primitives, objects with multiple keys, and single-key objects whose value is an array) is wrapped in a <root> element.
  • Only arrays of flat objects (no nesting) can be converted to CSV. When reading CSV, the first row is treated as the header.
  • Reading CSV infers value types, so numbers with leading zeros (such as 007) are read as numbers (7) and lose the leading zeros.
  • JSON numbers are read as JavaScript double-precision floating-point numbers, so integers larger than 253 in absolute value may lose precision (the last digits are rounded).
  • Date and time values in YAML and TOML are handled as date objects and are written as ISO 8601 strings when converting to CSV.

More tools in Data