Developer

JSON to XML / YAML / CSV

Convert JSON into XML, YAML or CSV.

JSON input
XML output

This free data converter transforms between JSON, YAML, XML, TOML, CSV and TSV in any direction. Pick a source and target format, paste, upload or drag-and-drop your data, then copy or download the result. Both panes are syntax-highlighted and conversion is live as you type. CSV and TSV work best on an array of flat objects (a header row is built from the keys, and you can toggle whether the first row is treated as a header); XML, YAML and TOML handle nested structures.

JSON output can be pretty-printed at 2 spaces, 4 spaces or a tab, or minified to a single line. TOML output requires a top-level object and renders nested objects as [tables] and arrays of objects as[[array-of-tables]]. Errors point at the problem — a bad line number, an invalid root element, or a shape that a target format can't represent — instead of failing silently.

Related tools