CSV to JSON Converter

Convert CSV to JSON and JSON back to CSV, with a table preview, right in your browser.

0 characters

This converter turns CSV spreadsheet data into JSON and JSON back into CSV. Paste your data or drop a file, and the result appears as you type, with a table preview so you can check every column landed in the right place. It runs entirely in your browser, so customer lists, exports and reports never leave your device.

How to convert CSV to JSON

  1. Paste CSV into the input box, or upload a .csv, .tsv or .txt file.
  2. The delimiter (comma, semicolon, tab or pipe) is detected automatically - pick one yourself if the guess is wrong.
  3. Copy the JSON or download it as a .json file.

With First row is column names on, each row becomes an object keyed by the header, which is what most code and APIs expect. Turn it off to get plain arrays of values instead. Quoted fields that contain commas, line breaks or doubled ""quotes"" are handled the way Excel and Google Sheets write them.

Numbers, true/false and leading zeros

CSV has no data types - every cell is text. Detect numbers & true/false turns cells like 42, 3.14 and true into real JSON numbers and booleans, but it is deliberately careful: a ZIP code such as 0105, a phone number with a leading zero, or an ID too long to store exactly stays as text, so nothing is silently changed.

How to convert JSON to CSV

Switch to JSON → CSV and paste an array of objects. Every key that appears in any object becomes a column, even if only some rows have it. Nested objects are flattened into dotted columns such as address.city, and lists are kept as JSON text in a single cell so they can be read back exactly. If your JSON is an API response like { "data": [ ... ] }, the list inside is found automatically.

Opening the CSV in Excel

Excel guesses a CSV file's text encoding, and often guesses wrong for accented letters and non-Latin alphabets. The download adds a small UTF-8 marker (a BOM) that tells Excel the right encoding, so names like "García" or Georgian text open correctly. In countries where Excel expects semicolons, choose the semicolon delimiter. Block spreadsheet formulas protects you when the data came from strangers: cells starting with =, +, - or @ are shown as text instead of being run as formulas.

Frequently asked questions

Is my data uploaded?

No - parsing and conversion happen in your browser. Nothing is sent to a server or stored.

How large a file can it handle?

Files up to 20 MB load directly. Tens of thousands of rows convert in a moment; very large results show a shortened preview, but Copy and Download always include everything.

Can I turn the JSON back into the same CSV?

Yes - press Swap to send the result back through in the other direction and compare.

Related tools

Format or repair JSON with the JSON Formatter, Validator & Fixer, convert configuration files with the YAML to JSON Converter, or browse all Text & Data tools.

Runs entirely in your browser - nothing you enter or upload is sent to a server.