Convert your JSON to CSV or TSV formatted data.

1) Copy/paste or upload your JSON to convert it. 2) Choose your separator. 3) For Excel, convert to TSV then copy and paste into Excel. 4) Save your result for later or for sharing.

   
Download Copy
Bug or suggestion?

About CSV, TSV and Excel

  • CSV stands for Comma Separated Values. Often used as an interchange data format to represent table records, one per line. CSV is plain text.
  • TSV or Tab Separated Values is used to store table data in the Clipboard. You can then copy (Ctrl+C) and paste (Ctrl+V) it into Excel.
  • In French, Excel will expect a semi-colons ; instead of a comma ,. Make sure to pick that option if you are going to import the CSV file in Excel.

About JSON to CSV

  • JSON to CSV will convert an array of objects into a table. By default, nested arrays or objects will simply be stringified and copied as is in each cell. Alternatively, you can flatten nested arrays of objects as requested by Rogerio Marques in Github issue #3.

CSVJSON format variant

  • CSV values are plain text strings. Dror Harari proposed a variant called CSVJSON (csvjson.org). The variant proposes that every CSV value be a valid JSON value. More specifically, objects and arrays would not be wrapped in double quotes but output as is. Toggle the switch Output CSVJSON variant to output that format.
  • CSVJSON format variant is not valid CSV however every value is valid JSON. Parsing CSVJSON is done by processing one line at a time. Wrap a line with square brackets [] and use JSON.parse() to convert to a JSON array.
  • To convert from CSVJSON back to JSON, use the companion tool CSVJSON to JSON.
  • Dror Harari: "The reason why I came up with CSVJSON was not to allow embedding of JSON objects in a CSV line, that's a nice benefit but my main reason was to have the very well defined encoding semantics of JSON (as per json.org) be used to describe CSV lines (just taking out the [ and ])."

Change Log

  • Mar 31, 2018 CSVJSON format variant support: ensure CSV values are JSON valid.
  • Jan 24, 2018 Initial release.

Feedback

Code available on Github. Report bugs or ask for improvements through Github issues.