Convert CSV and JSON safely for everyday data work
Understand headers, delimiters, quotes and data types when moving between spreadsheet data and JSON objects.
Start with a clean table
CSV is a text-based table, commonly separated by commas or semicolons. A header row identifies each column. Use unique, non-empty header names and keep the number of fields consistent for every row.
Account for quoting
A value may contain its own comma, newline or quote. Quote such fields using double quotes and represent a literal quote inside a quoted value as two double quotes. The CSV converter retains field values as strings, so codes with leading zeros are not accidentally treated as numbers.
Understand the shape of JSON
JSON-to-CSV works best with an array of objects. All distinct keys become headers; missing values are empty cells and nested values become JSON strings. If you open a CSV in spreadsheet software, verify that identifier columns retain their formatting.
Review the output
Formula-like text can be interpreted as a formula by spreadsheets. This tool prefixes risky text with an apostrophe for safer opening; verify whether the receiving system needs exact raw values. Validate JSON syntax and compare a few representative rows before using the converted data.