CSV ↔ JSON Converter
Move structured data between CSV and JSON
About CSV ↔ JSON Converter
This converter turns CSV into a JSON array and back. CSV to JSON reads the first row as column names, so every later row becomes an object keyed by those names. Parsing uses the PapaParse library with a comma delimiter, so quoted fields, commas inside quotes and doubled quotes are handled. Semicolon or tab separated files are not auto-detected and need their delimiters changed to commas first. Fully empty lines are skipped. Every value stays a string, so 007 keeps its leading zeros and 42 becomes "42" rather than a number. Headers must be unique and non-empty, and malformed rows, such as a different number of fields than the header, stop the conversion with a row-numbered error. JSON to CSV expects an array of flat objects. The header row is the union of all keys in first-seen order, and a key missing from a row, or set to null, becomes an empty cell. Nested objects and arrays are rejected until you flatten them. Values that start with = + - @ are prefixed with an apostrophe so spreadsheets will not run them as formulas. For example, name,city then Alex,London converts to a one-item array with name Alex and city London. Input is limited to 500,000 characters, and download names end in .json or .csv.
How to use CSV ↔ JSON Converter
- Choose CSV → JSON or JSON → CSV from the Mode menu.
- Paste your data into the Your input box, with a header row for CSV or an array of objects for JSON.
- Fix any error shown below the boxes, then read the Result.
- Press Copy result or Download to get a .json or .csv file.