Skip to content

Convert between CSV and JSON

Paste CSV to get a JSON array of objects, or paste a JSON array to get CSV. Quoted fields, commas and line breaks inside cells are handled correctly.

Your text is processed in your browser as you type. It is not sent to ToolsNest servers or stored after you leave the page.

How to use the CSV ⇄ JSON Converter

  1. 1Paste CSV or JSON.
  2. 2Select the conversion direction.
  3. 3Copy or download the result.

Supported formats and limits

  • CSV input needs a header row; headers become the JSON keys.
  • Quoted fields with embedded commas, quotes and line breaks are supported.
  • JSON input must be an array of flat objects.
  • All values are kept as text; no number or date guessing.

Common uses

  • Turning a spreadsheet export into API-ready JSON.
  • Converting a JSON dataset for Excel.
  • Checking a CSV file's structure quickly.

Frequently asked questions

What about nested JSON objects?

Nested values are serialised as JSON text inside the CSV cell. Flatten your data first for the cleanest result.

Related tools