🔒 All processing happens 100% in your browser — no data sent to server 🔒

CSV ↔ JSON Converter β€” Free Online Tool

Delimiter Output
Input CSV drop .csv / .json here
Output JSON
Rows
Columns
Records

What is CSV to JSON Converter?

CSV to JSON Converter transforms comma-separated values files into JSON arrays or objects, and JSON back to CSV. Paste or upload CSV data, configure delimiters (comma, tab, semicolon, pipe), header row handling, and type inference (numbers and booleans auto-detected vs everything as strings), and get clean JSON output immediately.

CSV (Comma-Separated Values) is the universal format for tabular data exchange β€” spreadsheet exports, database dumps, analytics reports, and data feeds. JSON is the universal format for web APIs and configuration. Converting between them is a daily task for data engineers, frontend developers working with API data, and analysts moving data between systems.

Type inference is the most important option: with inference enabled, a column of "1,2,3" becomes [1,2,3] (numbers) rather than ["1","2","3"] (strings). Boolean inference converts "true"/"false" and "yes"/"no" to JSON true/false. Without inference, every cell is a string β€” safer for IDs and codes that look like numbers but should remain strings (e.g., ZIP codes like "00123").

How to Use

  1. Paste CSV data into the input field or click Upload File to load a .csv file.
  2. Verify the detected delimiter (comma, tab, etc.) β€” change it if the preview shows incorrect columns.
  3. Toggle 'First row is header' if the first row contains column names rather than data.
  4. Configure type inference β€” enable for data analysis, disable for IDs and code fields that look like numbers.
  5. Copy the JSON output or download it as a .json file.

Examples

Employee CSV with header row

Result: id,name,active / 1,Alice,true / 2,Bob,false β†’ [{"id":1,"name":"Alice","active":true},{"id":2,"name":"Bob","active":false}]

Tab-separated data (TSV)

Result: Change delimiter to tab β€” parses TSV files from spreadsheet exports correctly

ZIP codes that must stay as strings

Result: Disable type inference β€” ZIP code "00123" stays as "00123" not 123

Frequently Asked Questions

What delimiter should I use?

CSV uses comma by default. TSV (tab-separated) is common for spreadsheet exports. Some European locales use semicolons because commas are used as decimal separators. Pipe (|) is used when data contains commas and quotes. This tool auto-detects the most likely delimiter.

How are quoted fields handled?

Standard CSV quotes fields that contain commas, newlines, or double-quote characters. A quoted field may span multiple lines. Double-quote inside a quoted field is escaped as two double-quotes. The tool handles RFC 4180 compliant CSV including multi-line fields.

What if my CSV has inconsistent column counts?

Rows with fewer columns than the header row get null values for missing fields. Rows with more columns than the header get extra fields named column_N. The tool reports inconsistencies so you can fix them in the source data.

Can I convert JSON back to CSV?

Yes β€” toggle to JSON to CSV mode, paste your JSON array, and the tool extracts all unique keys as CSV headers and maps values to rows. Nested objects are serialized as JSON strings in the cell.

What is the difference between JSON array and JSON object output?

Array output: [{}, {}, {}] β€” each row is an object in an array. Object output uses a key field as the object key. Array is more common and compatible with all parsers; keyed object is useful when you need fast lookup by key.

Related Tools