About the CSV to JSON Converter
CSV is how spreadsheets, databases and analytics tools export data, while JSON is what web apps, APIs and JavaScript code expect. This converter bridges the two. It reads comma, tab, semicolon or pipe separated data, uses the first row as field names and builds a JSON array with one object per row.
Quoted fields that contain commas or line breaks are handled correctly, numbers and true or false values can be turned into real JSON types, and empty cells can become null. You can also output an array of arrays, an object keyed by the first column, or JSON Lines for streaming and big data tools. Everything runs in your browser, so private data stays on your computer.
How to use the CSV to JSON Converter
- Paste your CSV or TSV data, or open a .csv file.
- Leave the delimiter on automatic or choose comma, tab, semicolon or pipe.
- Pick the output shape and indentation, and choose whether to convert numbers and booleans.
- Copy the JSON or download it as a .json file.
Key features
- Detects comma, tab, semicolon and pipe delimiters
- Handles quoted fields, embedded commas and line breaks
- Objects, arrays, keyed object or JSON Lines output
- Converts numbers, true/false and null
- Warns about rows with missing or extra fields
Tips for the best results
- Turn on number detection so prices and counts become numbers, not strings.
Frequently asked questions
Can I convert TSV to JSON with this tool?
Yes. Tab separated data is detected automatically, or you can choose Tab in the delimiter menu. Data copied from Excel or Google Sheets is tab separated.
What happens to duplicate column names?
Duplicate headers get a number added (for example name and name_2) so no data is lost when rows become JSON objects.
Why are my zip codes or IDs being changed?
Values that look like numbers are converted to JSON numbers, which drops leading zeros. Untick "Convert numbers, true/false and null" to keep every value as text.
Is there a size limit?
There is no fixed limit. Files of several megabytes convert in a second or two; very large files depend on your device's memory.