JSON, CSV, YAML and XML Converter

Convert data between JSON, CSV, YAML and XML in any direction, with options for CSV delimiter, header row and nested fields. Free and in your browser.

🔒 Runs in your browser
Settings

About this tool

Turn JSON into CSV, CSV into YAML, XML into JSON or any other combination of the four formats. The input format can be detected automatically, nested objects can be flattened into a.b columns, and parse errors show the line and column. Free, no sign-up, and your data never leaves your browser.

How to use

  1. Paste your data, open a file or click Example.
  2. Leave the source format on Auto-detect or pick it, then choose the target format.
  3. If needed, open Settings to set the CSV delimiter, header row, indentation, XML root element and type detection.
  4. Copy the result or download it as a file.

Frequently asked questions

Is my data uploaded anywhere?

No. Parsing and conversion run entirely in your browser; files you open are read locally and nothing is sent to a server.

How are nested JSON objects converted to CSV?

With the nested fields option on, nested keys become columns like contacts.email, and converting such a CSV back rebuilds the nested structure. With it off, nested values are written as JSON text in a single cell.

Which CSV delimiters are supported?

Comma, semicolon, tab and vertical bar. On Auto, the delimiter is detected when reading and a comma is used when writing. Opening a .tsv file switches to tab automatically.

How is XML mapped to JSON?

Elements become keys, attributes get an @ prefix, text next to child elements is stored as #text, and repeated elements become arrays. With type detection on, numbers and true or false values are converted from text.