How to convert CSV to JSON
- Paste CSV text or open a .csv file. The delimiter (comma, semicolon, tab or pipe) is detected automatically — European Excel versions often save with semicolons.
- With First row is headers on, each row becomes a JSON object using the header names as keys. Turn it off to get an array of arrays.
- With Convert numbers & true/false on,
42becomes the number 42 andtruea boolean; empty cells becomenull. Turn it off to keep every value as a string. - Copy the JSON or download it as a file.
How to convert JSON to CSV
Switch to JSON → CSV and paste an array of objects, such as an API response. The tool:
- collects every key that appears in any object to build the header row, so records with missing fields still line up;
- quotes values that contain the delimiter, quotes or line breaks, following RFC 4180, so Excel and Google Sheets read them correctly;
- writes nested objects and arrays as JSON text inside the cell;
- finds the array automatically if it's wrapped in an object, as in
{"data": [ … ]}.
Tip: to open the result in Excel with accented characters intact, use Data › From Text/CSV and choose UTF-8, or open it in Google Sheets.
CSV details handled correctly
CSV looks simple but has traps that naive “split by comma” converters get wrong. This parser follows RFC 4180: fields in double quotes may contain commas, line breaks and doubled quotes ("" means one "); Windows and Unix line endings both work; a byte-order mark at the start of the file is ignored. Duplicate header names get a suffix (id, id_2) so no column is lost.
Values that only look like numbers are kept as text when converting them would change them: leading zeros (ZIP codes like 02139, phone numbers) and integers too large for JavaScript to store exactly (long IDs).
Frequently asked questions
Is my file uploaded?
No. Files are read and converted with JavaScript on your device, which makes the tool safe for exports containing customer names, emails and orders.
How large a file can I convert?
Files of several megabytes (tens of thousands of rows) convert in about a second. Very large files are limited by your browser’s memory.
Why are my numbers in quotes in the JSON?
Either “Convert numbers” is off, or the value has a leading zero or is too long to be stored exactly as a number — in those cases keeping it as text protects the data.
My CSV opens in one column in Excel. Why?
Excel uses your system’s list separator. In regions where the decimal separator is a comma, Excel expects semicolons. Choose “Semicolon” as the delimiter when converting JSON to CSV, or import via Data › From Text/CSV.