Skip to content

JSON to CSV and Excel converter, and CSV to JSON

Paste JSON or open a .json file and get a CSV or an Excel .xlsx file with one row per record and one column per field. Nested objects become dotted columns such as address.city, and Arabic text opens correctly in Excel. The other direction turns any CSV into a JSON array or JSON Lines. Everything happens in your browser.

Quick answer

To convert JSON to CSV, paste the JSON (an array of objects, an API response or JSON Lines) and the table appears at once; then choose Download CSV or Download Excel. To convert CSV to JSON, switch to CSV to JSON, paste or open the file and download the .json file. Nothing is uploaded.

Based on RFC 4180: Common Format and MIME Type for CSV Files (IETF) · Page updated 23 October 2026

Editor: Abuzar, founder of NeedMyToolsHow we check facts

Converted on your device. Nothing is uploaded or saved.

How to use the JSON to CSV & Excel

  1. Choose JSON to CSV / Excel, then paste the JSON, open a .json or .jsonl file, or try the example.
  2. Check the table preview and set the options: flatten nested objects, how to write lists, the delimiter, Excel-ready CSV and formula protection.
  3. Download the CSV or the Excel file. For the other direction, choose CSV to JSON, paste or open the CSV and download the JSON.

How JSON becomes rows and columns

Each object in the array becomes one row, and every key found anywhere becomes a column, in the order it first appears. A field that only shows up in record 40 still gets its own column, and the rows without it are left empty. Many APIs wrap their records in an object, under a key such as data, items or results; the tool finds the first list of records inside and tells you which path it used. JSON Lines, one object per line as many logs and exports use, is read as well. Long numbers such as 12345678901234567890 keep every digit, because the JSON is read by our own parser instead of being rounded to a JavaScript number. If the JSON is broken you get the line, the column and the reason, the same checks the JSON formatter runs.

Nested objects and lists

With Flatten nested objects on, {"address":{"city":"Dubai"}} becomes a column called address.city. With it off, the whole object stays in one cell as compact JSON, which helps when you plan to load it back later. Lists of plain values, such as tags, are joined with a semicolon (vip; wholesale) so they read well in a spreadsheet; choose Keep as JSON to write ["vip","wholesale"] instead. Lists of objects, such as the order lines inside an order, are always kept as JSON text in one cell, because spreading them across columns would give each row a different number of columns.

Arabic text in Excel and the BOM

Microsoft's support article on UTF-8 CSV files says Excel opens such a file normally if it was saved with a byte order mark (BOM), and otherwise suggests importing it through Get Data. Opened with a double click, a CSV without the mark often shows Arabic, Urdu or Hindi as unreadable symbols. The Excel-ready option, on by default, adds that invisible mark to the CSV you download. The Excel download avoids the problem altogether: it writes a real .xlsx file in which text is Unicode, numbers stay numbers, the header row is frozen and the sheet opens right to left when most of the text is Arabic. Codes with a leading zero, such as 0501234567, and numbers longer than 15 digits, such as ID or account numbers, are written as text, so Excel cannot drop the zero or round the last digits. Microsoft lists Excel's limits as 1,048,576 rows and 32,767 characters in a cell, and the tool warns you when your data is bigger.

Delimiters, quotes and formulas

The CSV follows RFC 4180, the IETF description of the format: a field that contains the delimiter, a double quote or a line break is put in quotes, and a quote inside a field is doubled. Comma is the default. Choose semicolon if your spreadsheet uses a comma as the decimal sign, as it does in many European settings, or tab for a TSV file. A cell that starts with =, +, - or @ may be run as a formula when a spreadsheet opens the file, an attack OWASP calls CSV injection. When the JSON holds text typed by the public, for example from a web form, tick the formula protection: it puts an apostrophe in front of such cells and leaves negative numbers alone. Leave it off when you need the values exactly as they are.

CSV to JSON

In the other direction the tool detects whether the file uses commas, semicolons or tabs, takes the first row as the keys and turns plain numbers, true and false into JSON numbers and booleans. Values with a leading zero, like phone numbers and postcodes, stay text, and empty cells become null. Tick the dotted headers option to rebuild nesting, so a column named address.city becomes an address object with a city inside, which undoes a JSON to CSV conversion. Rows with too few or too many cells are counted and reported, repeated headers are renamed, and a quote that never closes is flagged, since that usually means the file was cut off. You can download a JSON array or JSON Lines.

Frequently asked questions

How do I convert JSON to Excel?

Paste or open the JSON, check the table preview and press Download Excel. You get a real .xlsx file with one row per record, numbers stored as numbers, the header row frozen and Arabic text shown right to left.

Why does my CSV show strange symbols instead of Arabic in Excel?

The CSV was saved as UTF-8 without a byte order mark, so Excel guessed the wrong encoding. Download it again here with Excel-ready ticked, or use Download Excel, which does not have this problem.

What happens to nested objects when I convert JSON to CSV?

With Flatten nested objects on, each inner field gets its own dotted column, such as address.city. With it off, the inner object is kept in one cell as compact JSON. Lists of objects always stay as JSON in one cell.

Can I convert a large JSON file?

Yes. A file of tens of megabytes converts in a few seconds on a normal computer, because nothing is uploaded. The preview shows the first 50 rows and 30 columns, while the downloads contain everything, up to Excel's limit of 1,048,576 rows.

Does CSV to JSON keep leading zeros in phone numbers?

Yes. With number detection on, only plain numbers such as 42 or 12.5 become JSON numbers; 0501234567 has a leading zero and stays text. Turn detection off to keep every value as text.