CSV to JSON
Convert CSV text into a JSON array of objects, with or without a header row.
🔒 Everything runs in your browser. Nothing you choose or type is uploaded. How to verify
How to use it
- Paste your CSV.
- Choose whether the first row is a header.
- Select Run and copy the JSON.
Handy for
Feeding spreadsheet data to apps, APIs and test scripts.
Good to know
Numbers and true or false are converted by default. Turn that off if values such as ZIP codes or IDs must keep their leading zeros as text.
Privacy: where the work happens
Everything you enter or choose is processed by JavaScript in your browser and never sent anywhere. Only the page code, and any library this tool needs, is downloaded from cdnjs or jsDelivr.
Questions
Which separators are detected?
Commas, semicolons, tabs and pipes, based on the first line.
Are quoted values supported?
Yes. Quotes, doubled quotes and line breaks inside quoted cells are handled.