How to use CSV ↔ JSON
About CSV ↔ JSON
Convert CSV tables and arrays of JSON records.
JSON input must be a flat array of objects. Nested objects require a different flattening strategy.
- Choose a CSV file or paste an array of JSON objects. Preview the result and export. CSV values remain strings to preserve leading zeros.
- Process the selected files, then inspect the preview, dimensions or warnings.
- Download a new copy and check it before replacing or sharing the original.
How it works
CSV-to-JSON maps header names to string cell values. JSON-to-CSV accepts a non-empty array of flat objects, combines their property names as columns and writes missing values as empty cells.
A quick example
Convert an address table into a JSON array without turning 00123 into 123.
Assumptions, edge cases & limits
- Nested JSON objects and arrays are unsupported.
- CSV exports escape formula-like cells for spreadsheet safety, which can introduce an apostrophe.
- JSON input must be a flat array of objects. Nested objects require a different flattening strategy.
Questions about CSV ↔ JSON
How do I convert a CSV table to JSON records?
Load the CSV and inspect the parsed headers and rows. CSV-to-JSON maps header names to string cell values; check identifiers and duplicate headers before using the exported JSON.
Will CSV to JSON preserve leading-zero IDs as strings?
Yes. CSV cells remain strings, so 00123 is not silently changed to a number. Convert types deliberately later if your receiving system requires numeric values.
Can I convert nested JSON to CSV?
Not directly. Flatten nested objects and arrays into the columns you want before conversion. This tool expects flat objects and does not invent a nesting convention.
For processing, privacy and service availability, see our privacy details and methodology. Tool-specific questions and limitations are explained above.
A result or explanation needs correcting? Tell us the tool name and an example.