Toolkit Hub

CSV ↔ JSON

Convert tabular CSV data to JSON and back.

Paste CSV (with header) or JSON array/object and convert

What is the CSV ↔ JSON?

This converter maps tabular CSV rows to an array of JSON objects keyed by the header row, and back again. Doing it properly means respecting quoted fields, so a comma or newline inside a value does not split the row — the failure mode of most quick hand-rolled scripts.

Frequently asked questions

Is it safe to convert a spreadsheet with customer data?

Yes. Parsing happens entirely in your browser, so the file is never uploaded. That is the main reason to prefer a local converter for exports containing personal or commercial data.

How are commas inside a value handled?

A field wrapped in double quotes may contain commas, newlines and escaped quotes, and is treated as one value. That is the RFC 4180 convention that Excel and Google Sheets both produce.

What happens to nested JSON when converting to CSV?

CSV is flat, so nested objects and arrays have to be flattened or serialised into a single cell. Expect some structure loss going from JSON to CSV — it is a limitation of the format, not the tool.

Related Converters

CSV ↔ JSON is one of 4 tools in Converters on Toolkit Hub, a free collection of browser-based utilities. It requires no account and no installation. Browse all tools.