Free online tools

CSV to JSON and JSON to CSV Converter

Convert a spreadsheet export into a JSON array, or turn a flat list of JSON records back into a CSV table. Paste complete rows, including the CSV header.

Enter your values

Use comma-separated CSV with a header or a JSON array of flat objects.

This tool processes your input in your browser.

Result

Move spreadsheet rows into JSON

Give every column a unique header, then paste the table including quoted fields. Each data row becomes one JSON object. CSV values remain strings, so a reference such as 007 keeps its leading zeros. Commas, double quotes, and line breaks inside a quoted field remain part of that value.

Build columns from an array of records

Use a JSON array of flat objects. The output has a column for each property name that appears. Missing properties and null values produce empty fields. For a spreadsheet import, choose the text column type for names and identifiers whose exact spelling matters.

Frequently asked questions

What if some CSV rows have a different number of fields?

The tool identifies the first record that differs from the header count. Add missing separators or quote cells whose commas belong to their contents.

Can I export a nested JSON object as a CSV cell?

Use a single scalar value in each field. Choose the value you want to keep or put a serialized copy of the nested value into a JSON string before conversion.

How can I preserve a long account or item number?

Write it as a JSON string. Browser numeric precision can round sufficiently large integers, so the converter asks for those values in quotes.