Clean up JSON and convert to CSV
Paste JSON to check it, and see the line and column of the first error. Format it with 2 or 4 spaces or tabs, minify it, or sort the keys. On the CSV side, convert a spreadsheet export to JSON, or JSON to CSV with nested values turned into columns.
Work with spreadsheet data
CSV exports from Excel and Google Sheets often use commas or semicolons and put quotes around text with commas. The tool reads these correctly. To count values in a spreadsheet column, try the Excel column and value counter.
Questions
- Why does my JSON fail?
- The most common causes are a trailing comma, single quotes instead of double quotes, and a missing quote around a key. The error shows the line and column.
- How are nested objects converted to CSV?
- They become columns with dotted names, such as job.title.
- Does it handle commas and line breaks inside CSV cells?
- Yes, when the cell is in double quotes, as the CSV standard requires.
- Why are some numbers kept as text?
- Numbers with a leading zero, such as 0123, and numbers over 15 digits stay as text so no digits are lost.
- Is my data uploaded?
- No. It is processed in your browser.