🌐 English

Home › Guides

JSON and CSV: what's the difference?

Both write data as text, but they're shaped differently: CSV is a table, JSON is a tree (structures nested inside each other).

At a glance

When converting

CSV → JSON uses the first-row column names as keys. JSON → CSV flattens nested objects into columns like “address.city” and puts lists in one cell, joined or as JSON text. So deeply nested JSON turns into many columns.

Which to use

CSV suits data people view and edit in Excel; JSON suits data passed between programs. For very long records such as logs, JSON Lines (one object per line) is also popular.