How do you convert CSV to JSON?
To convert CSV to JSON, the first row is used as the property names and every following row becomes an object in a JSON array. This CSV to JSON converter detects the delimiter automatically (comma, semicolon, tab or pipe), handles quoted fields with line breaks, and can turn numbers and booleans into real JSON types. It runs in your browser, so your data stays private.
How to convert CSV to JSON
- 1
Paste your CSV or TSV data into the input box, or press “Try an example”.
- 2
Leave the delimiter on Auto, or choose it yourself.
- 3
Choose whether the first row is a header and whether numbers and booleans should be detected.
- 4
Copy the JSON or download it as a .json file.
Key features
Automatic delimiter
Commas, semicolons, tabs and pipes are detected for you, so exports from Excel in any locale just work.
Typed values
Numbers and true/false values become real JSON types instead of strings, or keep everything as text by switching the option off.
Quoted fields
Fields with embedded commas, quotes and line breaks are parsed correctly following RFC 4180.
Array or object output
With a header row you get an array of objects; without one you get an array of arrays.
Frequently asked questions
How do I convert CSV to JSON?
Paste the CSV into the input box. The first row becomes the keys and each following row becomes an object in the JSON array shown on the right.
What if my CSV uses semicolons?
Leave the delimiter on Auto and it will be detected. Semicolon-separated files are common when Excel is set to a European locale.
Why are my numbers strings in the JSON?
Turn on “Detect numbers and booleans”. When it is off, every value is kept as text exactly as written, which preserves leading zeros in IDs and ZIP codes.
Can I convert a CSV without a header row?
Yes. Turn off “First row is a header” and the output is an array of arrays, one inner array per CSV row.
Is the CSV uploaded anywhere?
No. Parsing is done by a library running in your browser and the data never leaves your device.