CSV JSON Converter
Convert CSV to JSON and JSON to CSV with delimiter options, headers, and formatting
- 100% Free
- Files stay private
- Works in your browser
Conversion runs entirely in your browser. Your data never leaves your device. The CSV parser understands quoted fields, escaped quotes and embedded commas or line breaks.
How it works
Paste CSV or JSON
Choose the CSV → JSON or JSON → CSV tab, then paste your data into the CSV input or JSON input box.
Set delimiter and header
Pick the Delimiter (the CSV column separator), and for CSV → JSON choose Objects or Arrays under First row is a header. The output updates live.
Copy or download the result
The converted output appears below with Rows, Columns and Size counts. Press Copy, or Download to save it as a file.
Convert CSV to JSON and JSON back to CSV in one place, with delimiter options, a header toggle and indent control, all live and entirely in your browser.
What is CSV JSON Converter?
CSV JSON Converter is a free two-way tool that transforms tabular CSV data into structured JSON and turns JSON arrays back into CSV. Going one way, it reads your CSV with a quote-aware parser and emits either an array of objects keyed by the header row or a raw array of arrays; going the other way, it flattens an array of objects into a header row plus value rows. It matters because CSV and JSON are the two formats data constantly needs to move between.
Who Benefits from This Tool
- Data engineers: reshape exports between the tabular and structured formats their pipelines expect.
- Developers: turn a spreadsheet dump into a JSON fixture, or an API array into a CSV report.
- Analysts: move data between spreadsheets and JSON-based tools without scripting.
- Marketers and ops teams: convert contact or campaign lists to the format a platform requires.
- QA engineers: generate test data in whichever format the system under test consumes.
Key Features
- Bidirectional: a tab switches between CSV → JSON and JSON → CSV.
- Quote-aware CSV parser: handles quoted fields, escaped "" quotes and embedded commas or line breaks.
- Header toggle: choose an array of objects (keyed by the header row) or an array of arrays.
- Delimiter picker: comma, semicolon, tab, pipe or space.
- Indent control: pretty-print JSON with 2 spaces, 4 spaces, a tab, or minified.
- Key-union headers: JSON → CSV collects every object's keys in first-seen order so ragged records still align.
- Row, column and size stats plus copy and download of the result.
How to Use
- Pick a direction: CSV → JSON or JSON → CSV.
- Set the delimiter, and for CSV → JSON choose whether the first row is a header and your JSON indent.
- Paste your data, or click Try sample to load an example.
- The conversion runs live; review the row, column and size stats.
- Copy the output or download it as a .json or .csv file.
Common Use Cases
- Turning a spreadsheet CSV export into a JSON array for an API or app.
- Converting a JSON API response into a CSV you can open in Excel or Google Sheets.
- Reformatting European-style semicolon CSVs into JSON.
- Producing tab-delimited output for a system that rejects commas.
- Flattening nested JSON records into a spreadsheet-friendly table.
Tips and Best Practices
- Match the delimiter to your file. Semicolon is common in locales that use commas for decimals.
- Keep the header toggle on when your CSV's first row names the columns; turn it off for raw rows.
- For JSON → CSV, ensure your input is an array of objects (or a single object) for the cleanest table.
- Choose Minified indent when the JSON is bound for code, and 2 spaces when it's for humans.
- Remember that all CSV values become strings in JSON. Cast numbers in your code if needed.
Limitations and Notes
Conversion runs entirely in your browser and nothing is uploaded, with input capped at roughly 2 MB to keep the page responsive. CSV → JSON treats every cell as a string, so numeric and boolean values are not automatically typed. In JSON → CSV, nested objects and arrays inside a cell are serialised back to compact JSON text rather than expanded into extra columns, and any cell containing the delimiter, a quote or a line break is quoted with quotes doubled.
FAQs
No. The CSV parser treats every cell as text, so values come out as JSON strings. Convert them to numbers in your own code if you need typed values.
Nested objects and arrays are written as compact JSON inside a single cell rather than split into separate columns.
Comma, semicolon, tab, pipe and space. Pick the one that matches your file for CSV → JSON, or your desired output for JSON → CSV.
No. The tool collects the union of every object's keys in first-seen order to build one header row, so ragged records still line up.
Yes, input is limited to about 2 MB so the browser stays responsive. Split very large files if needed.
No. Everything happens locally in your browser and your data never leaves your device.