CSV and JSON are two of the most common ways to store and move data around, and they’re good at different jobs. If you’re not sure which one you need — or you’ve got one and need the other — here’s the plain-English version.

Quick answer: Use CSV for simple tabular data that goes into a spreadsheet (rows and columns, like a contact list). Use JSON when your data has structure or nesting and will be used by code, an API, or a config file. You can convert CSV to JSON or JSON to CSV in your browser.

What is CSV?

CSV (“comma-separated values”) is about as simple as data gets: a plain-text table where each line is a row and commas separate the columns. The first line is usually the header. It looks like this:

name,age,city
Ann,30,Paris
John,25,Berlin

Every spreadsheet program — Excel, Google Sheets, Numbers — opens CSV directly. It’s the universal format for tabular data.

What is JSON?

JSON (“JavaScript Object Notation”) stores data as key–value pairs and can nest — objects inside objects, lists inside objects. The same two people might look like this:

[
  { "name": "Ann", "age": 30, "city": "Paris" },
  { "name": "John", "age": 25, "city": "Berlin" }
]

It’s the standard format for APIs, web apps, and configuration files, because code can read it directly and it can represent complex, hierarchical data that a flat table can’t.

The key differences

  • Structure: CSV is flat (a grid). JSON can be nested and hierarchical.
  • Who uses it: CSV → spreadsheets and non-technical users. JSON → developers, APIs, apps.
  • Readability: CSV is compact; JSON is more verbose but clearer about what each value is.
  • Data types: JSON distinguishes numbers, text, booleans, and null. CSV is all just text until something interprets it.
  • File size: CSV is usually smaller for the same tabular data, because it doesn’t repeat the keys on every row.

When should I convert between them?

  • CSV → JSON: when you’ve exported a spreadsheet and need to feed it into code, an API, or an app. Each row becomes a tidy JSON object. Convert CSV to JSON here.
  • JSON → CSV: when you’ve got JSON (say, from an API) and want to open it in a spreadsheet to sort, filter, or share with non-technical people. Convert JSON to CSV here.

Both conversions run entirely in your browser, so your data is never uploaded. One thing to know: JSON → CSV works cleanest when the JSON is a flat array of objects — deeply nested data doesn’t map neatly onto rows and columns.