CSV to JSON

CSV to JSON converts each row of a CSV file into a JSON object, using the header row as keys. Optionally detect numbers, booleans and empty values, and choose pretty or minified output.

  • CSV, TSV → JSON
  • Runs in your browser
  • Free, no sign-up
Loading tool…

How to use CSV to JSON

  1. Paste CSV or drop a .csv file.
  2. Confirm the delimiter and header row.
  3. Toggle type detection and formatting options.
  4. Copy the JSON or download a .json file.

Examples

  • name,age↵Ana,31 → [{"name":"Ana","age":31}] with type detection on.

Supported formats

InputCSV, TSV
OutputJSON
ProcessingOn your device, in the browser (no upload)

Limitations to know

  • Type detection only converts unambiguous values; codes with leading zeros stay as strings.
  • Duplicate header names are made unique by adding “_2”, “_3”.

Privacy: CSV to JSON runs entirely in your web browser. Your CSV/TSV data is not uploaded, stored or shared, and nothing about its contents is sent to analytics.

Frequently asked questions

How do I convert CSV to JSON?

Paste your CSV or drop the file. The first row becomes the property names and each following row becomes an object in a JSON array. Copy or download the result.

Can I get arrays instead of objects?

Yes – choose “Array of arrays” to output each row as a list of values, with no keys.