worldngayon tools

JSON / CSV formatter

Format, validate and minify JSON, and convert between JSON and CSV, with error line numbers.

Checked November 5, 2026. The JSON side checks that your text is valid, tells you the line and column of the first problem, and then formats or minifies it. The most common mistakes are a trailing comma, single quotes instead of double quotes, and a missing quote around a key. The CSV side follows the standard rules: fields in quotes can hold commas and line breaks, and a double quote inside a field is written twice. When it converts JSON to CSV, nested objects become columns such as “job.title”, and lists inside a cell are kept as JSON text. Large numbers over 15 digits stay as text so no digits are lost. In Excel, save as “CSV UTF-8” so accents and the ₱ sign are kept. Your data is processed in your browser and is not uploaded. Related: the Excel column and value counter.

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.

More in Utilities