About the CSV to JSON Converter
FreeToolr's CSV to JSON Converter changes pasted CSV text into JSON in your browser. It suits developers, analysts, students, and anyone moving table data into a JSON-based workflow.
Paste your CSV into the text tool, then choose Array of objects, Array of arrays, or Text values only. The result appears in the tool, and one click copies it. Nothing you type is uploaded.
Array of objects works well when your first row contains column names. Each later row becomes an object with matching values. Array of arrays keeps rows as ordered lists. Text values only gives you JSON values as text.
The tool keeps the process simple. You do not need an account, file transfer, or separate software. It focuses on three clear output choices and quick copying, which helps when you need JSON for code, notes, or another browser tool.
How to use it
- 1Paste your CSV text into the input area.
- 2Choose Array of objects, Array of arrays, or Text values only.
- 3Review the JSON result shown by the tool.
- 4Click the copy control to copy the output.
Worked example
Input CSV: name,age Ada,36 Grace,28 Array of objects result: [ {"name":"Ada","age":"36"}, {"name":"Grace","age":"28"} ]
How it works
Basic row-object method:
1Parse the CSV according to its delimiter, quoting and line-ending rules.
2Let:
- H = [h1, h2, ..., hn] be the header row.
- Rj = [rj1, rj2, ..., rjn] be data row j.
3Produce:
- Oj = { h1: rj1, h2: rj2, ..., hn: rjn }
4Output:
- JSON = [O1, O2, ..., Om]Source: RFC 4180, Common Format and MIME Type for CSV FilesRFC 8259, The JSON Data Interchange Format. Last checked 2 November 2026.
What it is good for
- Runs in your browser, with nothing typed uploaded.
- Offers three useful JSON output formats.
- Copies the result with one click.
- The tool accepts pasted CSV text and does not provide a file upload control.
- It does not show visible controls for custom delimiters, header settings, or automatic data type conversion.
Questions people ask
How do I convert CSV to JSON?
Paste your CSV text into the converter. Choose an output format, then copy the JSON result.
Does the first CSV row become JSON keys?
For Array of objects, the first row supplies the object keys. The remaining rows supply the matching values.
What is the difference between the three output options?
Array of objects creates one object per data row. Array of arrays keeps each row as a list, while Text values only returns values as text.
Will my CSV be uploaded?
No. The tool runs in your browser, and nothing you type is uploaded.
Can I copy the converted JSON?
Yes. Click the copy control after the result appears. The tool copies the output to your clipboard.
Should I use Array of objects or Array of arrays?
Use Array of objects when your first row contains field names. Use Array of arrays when you need to preserve each row as an ordered list.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.