Convert CSV (Comma-Separated Values) to JSON array of objects. First row is used as headers/keys. Auto-detects comma, semicolon, or tab delimiters. Numbers are automatically parsed. Download result as .json file. All processing in browser.
CSV (Comma-Separated Values) and JSON (JavaScript Object Notation) are the two most common data interchange formats. CSV is simple and spreadsheet-friendly but lacks structure — it's flat rows and columns. JSON supports nested objects, arrays, and typed values. Converting between them is a daily task for data analysts importing spreadsheets into web applications, developers preparing API payloads, and anyone migrating data between systems. This converter handles the nuances: quoted fields containing commas, escaped quotes, different delimiters (tabs, semicolons), header row detection, and proper JSON escaping. The first row is treated as field names, creating an array of objects where each row becomes a JSON object with named properties.
Comma is standard, but Europeans often use semicolons (because commas are decimal separators). Tab-separated (TSV) is common in database exports. Excel sometimes uses pipes. Check by opening the file in a text editor.
Fields containing commas, newlines, or quotes should be wrapped in double quotes per RFC 4180. Quotes within quoted fields are escaped by doubling them. This converter follows the RFC standard.
CSV is inherently flat — nested objects need to be flattened. Common approaches: dot notation (address.city becomes a column), or separate related data into multiple CSVs. Our JSON to CSV tool handles this.
The tool processes data in the browser, so very large files (100MB+) may be slow or exceed memory. For enterprise-scale conversion, use command-line tools like jq, csvjson, or pandas in Python.
JSON has distinct types (number, string, boolean). This converter attempts type inference — numeric values without leading zeros become numbers, 'true'/'false' become booleans. Override with format options if needed.