Convert CSV to JSON and JSON to CSV
Convert CSV to JSON or JSON to CSV with delimiter detection and a live preview.
- No upload
- No signup
- Free
Loading tool…
Your file stays in this browser. Nothing is uploaded.
Loading tool…
Your file stays in this browser. Nothing is uploaded.
How CSV ↔ JSON Converter works
Browser Toolset CSV to JSON Converter provides bi-directional data conversion between CSV spreadsheets and JSON payloads directly inside your browser memory. Features automatic delimiter detection, live tabular data preview, and instant file export with zero server uploads.
How to use this tool
- In Paste mode, select the direction: CSV to JSON or JSON to CSV. An uploaded .json file is converted to CSV and any other file to JSON.
- Paste raw data or drop a .csv / .json file into the input workbench.
- Set the options: First row is Header, delimiter (auto-detect, comma, tab, semicolon or pipe), and Parse Numbers & Booleans (off by default).
- Inspect the table preview, which shows the first 50 rows of an uploaded file or the first 200 rows of pasted text.
- Download converted data or copy formatted output with 1 click.
Common uses
- Converting exported database CSV dumps into JSON for frontend applications and testing.
- Converting API JSON response payloads into CSV format for spreadsheet analysis in Excel.
- Cleaning and verifying customer contact lists before importing into CRMs.
- Restructuring tabular scientific data for web charts and dashboards.
Frequently asked questions
Does this tool automatically detect CSV delimiters (commas, tabs, semicolons)?
Yes. With the delimiter set to Auto-detect, the PapaParse library works out whether your data uses comma, tab, semicolon or pipe separators. You can also pick a delimiter yourself, and CSV output uses the one you choose.
Can it convert nested JSON structures back into CSV format?
Yes, but nested values are not flattened. JSON to CSV takes an array of objects or arrays, and any nested object or array inside a cell is written as a JSON string. Column headers come from the keys found across all rows.
Is it safe to convert confidential customer lists and payroll spreadsheets?
Yes. Uploaded files and pasted text are converted in your browser and are not sent anywhere. When writing CSV, text cells starting with =, +, - or @ get a leading apostrophe so spreadsheets do not run them as formulas.
Does it support large CSV files with tens of thousands of rows?
Within your device memory, yes. CSV to JSON files are streamed through a background worker, and the page shows only a 50-row preview while the whole file is converted. JSON to CSV loads the full file, so very large JSON files can be refused.
Can I export both formatted JSON and minified JSON?
Yes. For CSV to JSON choose Formatted, which uses two-space indentation, or Minified, which removes extra whitespace. The indentation width is fixed. You can then copy the result or download it as a .json file.
Details and limits
Translating tabular spreadsheet data into structured JSON objects (and vice versa) is a constant requirement for developers, data engineers, and business analysts. Online converters that upload your file send your records to a third-party server.
Browser Toolset CSV to JSON Converter delivers bidirectional, zero-server data transformation. Powered by PapaParse running in local browser memory, the delimiter can be auto-detected (commas, semicolons, tabs, or pipes), and numbers, booleans, and empty cells can be converted to JSON types when Parse Numbers & Booleans is on.
A table preview shows the first rows so you can check them before downloading. When converting JSON back to CSV, nested objects and arrays are written into their cell as JSON text, not split into extra columns. The data is not uploaded.
Conversion happens in your browser
Parsing and writing are done on your device with the Papa Parse library. You can paste or edit text, or upload a .csv, .tsv, .json or .txt file. Nothing is uploaded.
In file mode, the direction follows the file name: a .json file converts to CSV and anything else converts to JSON. CSV files are read in 256 KB chunks, so large files do not need to sit in the page as one block. The preview shows the first 50 rows while the download contains every row. In paste mode the table preview covers up to 200 rows, while the output text holds all of them.
Options and limits
- Delimiter: Auto-detect (CSV to JSON only), comma, tab, semicolon or pipe. For JSON to CSV, the choice sets the output delimiter.
- First row is Header (on by default): keys come from the header. Turn it off to get arrays of values, which previews as Col 1, Col 2 and so on.
- Parse Numbers and Booleans (off by default): every value stays a string until you turn it on. Then numeric text becomes numbers, true and false become booleans, and empty cells become null. Leading zeros are lost, so 00123 becomes 123.
- JSON format: formatted with 2-space indent, or minified.
- JSON to CSV needs an array of objects, where columns are the union of all keys, or an array of arrays. Nested values are written as JSON text, and any other shape gives an error.
- Text cells starting with =, +, -, @, tab or carriage return get a leading apostrophe so spreadsheets do not run them as formulas.
- Very large JSON files can be refused when they exceed a memory-based limit. A file with no data rows reports an error.
Common mistakes and fixes
- Semicolon-separated exports, common where the comma is the decimal mark, may need the Semicolon delimiter if auto-detect picks wrongly.
- If the first data row appears as column names, or the first column name is a value, check the header checkbox.
- Keep ZIP codes and phone numbers as text by leaving number parsing off.
- The CSV output is plain UTF-8 without a byte-order mark. If Excel shows garbled accents, import it through Data, From Text/CSV and choose UTF-8.
- Unbalanced quote marks produce a warning. Fix the source row and convert again, then check the output in the JSON Formatter.