CSV and JSON Converter
Convert CSV and JSON records locally, keeping leading zeros on CSV import and quoting cells with commas.
Move tabular data without changing what identifiers mean
A comma inside a value belongs to the cell
Consider ID 001 and a mailing city recorded as Dover, DE. Quote the city in the CSV row so the comma stays in the value. Within a quoted cell, two double quotes represent one literal quote. A line break in that quoted cell belongs to the field. RFC 4180’s description of CSV documents those conventions. The tool uses a comma delimiter and one header row.
In CSV-to-JSON mode, 001 stays a string. An empty field becomes an empty string. This matters when 001 identifies a specific account and 1 identifies another. Import settings in other programs can change a numeric-looking text field.
Decide what you need to recover on the way back
CSV has no separate flag for a JSON number, a Boolean, a null or a string. A row containing JSON values 42, false and null exports as 42,false, with a final empty cell. On reimport those become strings. Nested arrays and objects need an explicit flattening step before conversion. If your source will not parse, start with the JSON validator.
When sharing a spreadsheet, consider whether a recipient application will interpret a cell as a formula. Spreadsheet mode adds an apostrophe ahead of common formula markers in the exported data. Use verbatim export only when exact text is needed for a controlled downstream import. See OWASP’s CSV injection explanation for importer-specific limitations.
Editorial review
Calculation method
Use the first CSV row as headers. Cells stay text, including account-like identifiers with leading zeros. JSON export uses the first record’s field order, checks that every record has the same keys and quotes delimiters, quotes and embedded line breaks.
CSV header → object keys. CSV cell text → JSON strings.Assumptions and limits
UTF-8 text, commas only and up to 2,000 data rows. JSON to CSV accepts scalar values. Use strings for exact decimals or large identifiers. The spreadsheet option prefixes common formula markers to reduce formula interpretation, which changes those cell values. Check import behavior in your spreadsheet.