CSV to JSON
Paste CSV data or upload a file — convert to a JSON array of objects instantly in your browser.
About the CSV to JSON Converter
CSV (Comma-Separated Values) is the universal format for tabular data — exported from spreadsheets, databases, and data pipelines. JSON is the standard data interchange format for APIs and web applications. This tool bridges the two: paste your CSV, click Convert, and get a clean JSON array of objects ready to use in code.
How the conversion works
The first row of your CSV is treated as the header row and becomes the keys of each JSON object. Each subsequent row maps to one object in the output array. Quoted fields containing delimiters or newlines are handled correctly according to RFC 4180.
- Type inference — when enabled, numeric values are output as numbers and
true/falsestrings become booleans rather than quoted strings - Custom delimiters — supports comma, semicolon, tab, and pipe for TSV and other variants
- Empty row skipping — rows where all values are empty are omitted from the output
- Pretty-print — formats the JSON with 2-space indentation for readability; disable for compact single-line output
CSV to JSON vs JSON to CSV
MyToolkit has both directions. Use CSV to JSON when you have spreadsheet or database exports that you want to use in an API or JavaScript application. Use JSON to CSV when you have API response data that you want to analyse in a spreadsheet.