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.
- RFC 4180: Common Format and MIME Type for CSV Files (IETF)
- RFC 8259: The JSON Data Interchange Format (IETF)
- Microsoft Support: Opening CSV UTF-8 files correctly in Excel
- Microsoft Support: Excel specifications and limits
- OWASP: CSV Injection
- JSON formatter and validator
- PDF to Excel converter
- Text compare