How to use CSV to JSON
- Paste your CSVPaste rows into the CSV data box. Fields in double quotes may contain delimiters, line breaks and doubled quotes.
- Set delimiter and outputLeave Delimiter on Detect automatically or pick comma, semicolon, tab or pipe, then choose Array of objects or Array of arrays.
- Copy or download the JSONThe JSON updates as you type. Use Copy, or Download to save it as data.json.
Common uses
- Turning a spreadsheet export into seed data or test fixtures
- Preparing CSV rows as a JSON body for an API import
- Reading a semicolon-separated export from a European Excel setup
Frequently asked questions
How do I use CSV to JSON?
1. Paste your CSV: Paste rows into the CSV data box. Fields in double quotes may contain delimiters, line breaks and doubled quotes. 2. Set delimiter and output: Leave Delimiter on Detect automatically or pick comma, semicolon, tab or pipe, then choose Array of objects or Array of arrays. 3. Copy or download the JSON: The JSON updates as you type. Use Copy, or Download to save it as data.json.
How does automatic delimiter detection work?
It reads the first record and picks whichever of comma, semicolon, tab or pipe appears most often outside double quotes, so quoted values that contain delimiters do not confuse it. Choose the delimiter yourself if the first row has only one column.
What does Convert numbers and true/false do?
It turns cells like 42, -3.5 or 1e3 into numbers, true and false into booleans and null into null. Values with leading zeros such as 007, and numbers with more than 15 significant digits such as long IDs, stay strings, so no digits are lost.
What happens to the header row?
With First row is a header ticked, header names become keys in Array of objects; empty names become column1, column2 and so on, and repeated names get _2, _3. In Array of arrays mode the header row is left out; untick the box to keep it as the first row.
Is my CSV uploaded?
No. The conversion runs in your browser with JavaScript, and the data never leaves your device.