Rows to Objects
Each CSV row becomes a JSON object keyed by your header row — or an array of arrays if you prefer.
Convert CSV data into clean, structured JSON in your browser. Use the first row as keys, detect numbers and booleans automatically, and handle quoted values and different delimiters with ease.
Paste your CSV or open a file. Nothing is uploaded — everything is processed on your device.
CSV (comma-separated values) is the simple table format used by spreadsheets and exports. JSON is the format most web apps and APIs expect. A CSV to JSON converter turns each row into a JSON object, using the header row as the property names.
It saves you writing a throwaway script whenever you need to move spreadsheet data into an app, a test fixture, a config file or an API request.
Each CSV row becomes a JSON object keyed by your header row — or an array of arrays if you prefer.
Comma, semicolon, tab and pipe are detected automatically, or choose one yourself.
Optionally turn numbers, true/false and null into real JSON types. Values like 007 stay as text.
Quoted values, escaped quotes, line breaks inside cells and Windows line endings all work.
Choose readable output or compact JSON for production use.
Files are read locally in your browser and never uploaded.
Paste CSV into the box or choose a file from your device.
Choose the delimiter, header row, type detection and output style.
The JSON appears instantly with a row count.
Copy the JSON or save it as a .json file.
Quick answers about using the MoSanKit CSV to JSON Converter.
Yes. It is free with no sign-up and no limits on how often you use it.
Yes. When type detection is on, numbers with leading zeros stay as text so IDs and phone numbers are not changed.
Yes. The delimiter is detected automatically, or you can choose comma, semicolon, tab or pipe.
Turn off "First row is the header" and you will get an array of arrays instead of objects.
Missing values are filled with empty text and extra values are ignored. The tool tells you how many rows were affected.
No. Files are read and converted in your browser, and nothing is sent to a server.
Explore more free developer tools from MoSanKit.