About this tool
Convert CSV data to a formatted JSON array.
The CSV to JSON converter parses comma-separated values and produces a JSON array of objects. The first row of the CSV is used as the key names for each object. Options include changing the delimiter (comma, semicolon, tab), trimming whitespace, and optionally inferring numeric values so "42" becomes the number 42 rather than the string.
Example
Input: name,age\nAlice,30\nBob,25
Output: [{"name":"Alice","age":"30"},{"name":"Bob","age":"25"}]
How to use
- Paste your CSV data including the header row.
- Select the delimiter if not a comma.
- Click Convert.
- Copy the resulting JSON array.
Features
- Header row → JSON object keys
- Comma, semicolon and tab delimiters
- Numeric type inference
- Whitespace trimming
- Handles quoted fields with commas
Frequently Asked Questions
Does the first row need to be a header?+
Yes, by default. If your CSV has no header row, disable the header toggle and keys are named col1, col2, etc.
What delimiters are supported?+
Comma (,), semicolon (;) and tab (\t). Select the correct one from the dropdown.
Are numbers converted from strings?+
With numeric inference enabled, values like "42" become the number 42 in the JSON. Disable this to keep all values as strings.
What is the size limit?+
The tool handles files up to several MB in the browser. Very large CSVs may be slower.
What delimiters are supported?+
Comma (default), tab (for TSV), and semicolon. Select from the delimiter dropdown before pasting.
How does it handle quoted fields with commas inside?+
Standard CSV quoting is supported. "Smith, John" is treated as one value, not split on the comma.