CSV to JSON & JSON to CSV
Convert between CSV and JSON both ways, right in your browser. Nothing is uploaded.
Files are processed in your browser and never uploaded.
How to use CSV to JSON & JSON to CSV
Add your text
Type or paste your text into the input box. Everything is handled by your own browser, so nothing is sent to a server.
Set the options
Choose First row is a header and Pretty-print JSON. The options are visible from the start, not hidden until you paste something.
Read it and keep a copy
The output updates as you type, so there is nothing to submit and nothing to wait for. Copy result, Don puts the result on your clipboard and Download saves it as a file.
What this tool does
CSV to JSON and JSON to CSV
Direction switches between CSV to JSON and JSON to CSV, so the same page handles both halves of the job.
Handles quoted fields and delimiters
Quoted fields, embedded commas and line breaks inside a value are handled, and the delimiter can be a comma, a semicolon or a tab.
Header row and pretty-print options
First row is a header turns the top row into object keys, and Pretty-print JSON formats the output for reading rather than for size.
Copy or download the result
Copy result puts the output on your clipboard and Download saves it as a file, whichever suits what you are doing next.
Works offline, no sign-up
The conversion runs in your browser, so the data is never uploaded and the page works with no connection.
Frequently asked questions
Is my data uploaded anywhere?
No. The conversion runs entirely in your browser and nothing is uploaded, so even sensitive spreadsheets stay on your device. It works offline once loaded.
Does it handle commas and quotes inside fields?
Yes. The CSV parser follows the usual rules, so fields wrapped in double quotes can contain commas, line breaks and escaped quotes, and they are read and written correctly.
Can I use a semicolon or tab delimiter?
Yes. Switch the delimiter to comma, semicolon or tab. This applies to both reading CSV and writing CSV.
What JSON shape does it expect for JSON to CSV?
An array of objects works best, where each object becomes a row and the keys become columns. A single object or an array of arrays also works. Nested values are written as compact JSON inside the cell.
Why do I get a parse error?
For CSV to JSON the text must be valid CSV; for JSON to CSV it must be valid JSON. The message tells you what went wrong so you can fix the input.
Last updated: