CSV to JSON / JSON to CSV Converter

Convert between CSV and JSON. Paste CSV and click "To JSON", or paste a JSON array of objects and click "To CSV". Handles quoted fields with embedded commas, quotes, and newlines. Runs entirely in your browser.

How it works

CSV → JSON uses the first row as object keys and builds one object per remaining row. JSON → CSV expects an array of flat objects; the header row is the union of every object's keys, in the order they first appear, so objects with different fields still produce a consistent table (missing fields become empty cells).

Examples

CSVJSON
name,age
Alice,30
[{"name":"Alice","age":"30"}]