Convert CSV to JSON and back

CSV ↔ JSON converts between a spreadsheet table and JSON. The first CSV row becomes the object keys; JSON arrays become one CSV row per object, with a union of every key.

  • Free
  • No sign-up
  • Runs in your browser
  • Nothing uploaded

Runs entirely in your browser — nothing you enter is uploaded.

How to use CSV ↔ JSON

Three steps, about a minute.

  1. 1

    Paste your data

    A CSV table or a JSON array.

  2. 2

    Pick a direction

    The tool detects which one it is.

  3. 3

    Copy or download

    Save it as a .json or .csv file.

CSV ↔ JSON questions

What happens to numbers?

They stay as numbers in JSON when they look numeric. Leading zeros — postcodes, phone numbers — are kept as strings so nothing is lost.

How are nested objects handled?

Nested values are flattened to dotted keys (user.name) in CSV output, so the table stays rectangular.

Can I use tab-separated data?

Yes. Choose the tab delimiter — it is what you get when copying straight out of a spreadsheet.

Other tools