CSV to JSON

Convert CSV to JSON array or JSON Lines. Works offline in your browser.

0 chars
Tip: Ctrl/Cmd + Enter to convert.
Download will save as .json or .ndjson.
If fewer headers than columns, remaining keys will be col_4, col_5, ...
Ready. Paste CSV and click Convert.

How conversion works

  • Header row: uses the first row as keys.
  • Type inference: converts numbers, booleans, and null automatically.
  • NDJSON: outputs one JSON object per line (great for pipelines).

This tool runs locally in your browser and does not upload any data.