CSV ↔ JSON Converter

Turn a spreadsheet export into JSON for an API or app — or flatten a JSON array into a CSV you can open in Excel or Google Sheets. Paste text or open a file; nothing leaves your computer.

Your data is converted in your browser and never uploaded — safe for customer lists and exports.

Direction

How to convert CSV to JSON

  1. 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.
  2. 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.
  3. With Convert numbers & true/false on, 42 becomes the number 42 and true a boolean; empty cells become null. Turn it off to keep every value as a string.
  4. 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:

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.