Tutorials

How to Convert CSV to JSON

Step-by-step tutorial for converting CSV spreadsheet data into JSON, and converting JSON back to CSV, with header detection and custom delimiters.

## Why Convert CSV to JSON CSV is the default export format for spreadsheets, reports, and databases. JSON is the default format for web APIs and modern applications. Converting between them lets you move tabular data into APIs, and API responses into spreadsheets. --- ## CSV to JSON: Step by Step 1. Open the [LABSTACK CSV to JSON Converter](/tools/csv-to-json). 2. Paste your CSV data or upload a .csv file. 3. Confirm "First row is header" if your first row contains column names. 4. Choose your delimiter (comma, semicolon, tab, or pipe). 5. Review the JSON output in the preview pane. 6. Copy or download the JSON result. ### Example **CSV input:** ``` name,role,years Alice,Developer,5 Bob,Designer,3 ``` **JSON output:** ```json [ { "name": "Alice", "role": "Developer", "years": 5 }, { "name": "Bob", "role": "Designer", "years": 3 } ] ``` --- ## JSON to CSV: Step by Step 1. Switch the converter to "JSON to CSV" mode. 2. Paste a JSON array of objects or upload a .json file. 3. Review the tabular output. 4. Download the CSV file. --- ## Privacy All conversion happens in your browser. Your spreadsheet data is never uploaded to a server. [Convert CSV to JSON](/tools/csv-to-json).