CSV ↔ JSON Converter

Convert data from CSV to JSON or from JSON to CSV, processed locally in your browser.

When to use it

Useful for turning a spreadsheet exported as CSV into a JSON array of objects (for use in code or APIs), or the reverse: converting a JSON API response into a CSV spreadsheet.

How it works

For CSV → JSON, the first CSV row is treated as the header (field names). For JSON → CSV, the JSON must be an array of objects; CSV columns are generated from the keys found in those objects. Fields containing a comma, quote or line break are automatically quoted.

Frequently asked questions

Is my data sent to any server?

No — all conversion happens locally in your browser, in JavaScript.

Does the CSV need a header row?

Yes, the first row must contain the field (column) names — they become the keys of each object in the JSON.