CSV to JSON
Convert CSV to JSON
CSV Input
JSON Output
About This Tool
When "First row is header" is enabled, each data row becomes a JSON object where property names come from the header row. When disabled, rows are converted to arrays. Numeric values are automatically cast to numbers in the output.
This tool handles RFC 4180 CSV: fields containing commas or quotes must be wrapped in double quotes, and double quotes inside fields are escaped by doubling them. All processing runs in your browser β no data is sent to any server.
How to Use
- Paste your CSV into the input panel, or click Sample to load an example.
- Select the delimiter (comma, tab, or semicolon) and indent size.
- Toggle "First row is header" as needed.
- Click Convert β JSON, then click Copy to copy the result.
Use Cases
Developers converting spreadsheet data to JSON for API testing or data import. Data analysts transforming CSV exports from databases into JSON for web dashboards. Anyone needing to quickly convert tabular data to a format usable by JavaScript applications.
FAQ
- Are numbers detected automatically? β Yes. Values that parse as valid numbers are converted to JSON numbers. Non-numeric values remain as strings.
- What if my CSV has no header row? β Uncheck "First row is header". Each row becomes a JSON array instead of an object.