Convert CSV to JSON
Got a list in a spreadsheet, and your site, app or script expects JSON? TATA converts your CSV into clean JSON right in your browser.
How does it work?
- Drop your CSV file or paste its content in the area above.
- JSON is already selected: the conversion starts on its own.
- Download the result or copy it.
Why convert CSV to JSON
CSV is handy for entering data in Excel or Google Sheets. But web apps, static site generators and APIs would rather have JSON.
Converting saves you from writing a script for a one-off job: a product list, a list of cities, quiz questions, translations.
What TATA does, exactly
The first row of the CSV becomes the keys. Every row after that becomes an object, and together they form an array of objects.
Numbers and booleans (true, false) are typed: 42 stays a number, not the string "42". You pick the indentation next to the format: 2 spaces, 4 spaces or tab. The result shows up right away, and nothing is uploaded.
Tips
Take care with the header row: short names without spaces (price, product_name) make keys that are easy to use in code.
Watch out for ZIP codes or IDs that start with a zero: since they're typed as numbers, the leading zero can disappear. Double-check those columns.
Frequently asked questions
What does the JSON look like?
An array of objects, one per row, with the CSV headers as keys.
Are numbers wrapped in quotes?
No. Numbers and booleans are typed, so they're written without quotes.
Can I choose the indentation?
Yes: 2 spaces, 4 spaces or tab, right next to the output format.
Is my file sent to a server?
No. Everything happens in your browser, with no account and no quota.
All conversions: Data & spreadsheets →
Other conversions from CSV
CSV to Minified JSONCSV to TSVCSV to YAMLCSV to XMLCSV to TOMLCSV to NDJSON / JSON LinesCSV to INICSV to .envCSV to Query stringCSV to Excel (.xlsx)CSV to OpenDocument CalcCSV to Markdown tableCSV to HTML tableCSV to SQL (INSERT)CSV to GeoJSONCSV to GPXCSV to KMLCSV to TypeScript interfaceCSV to Go structCSV to Python dictCSV to PHP arrayCSV to JSON Schema
Convert to JSON
TSV to JSONYAML to JSONXML to JSONTOML to JSONNDJSON / JSON Lines to JSONINI to JSON.env to JSONQuery string to JSONExcel (.xlsx) to JSONExcel 97 (.xls) to JSONOpenDocument Calc to JSONGPX to JSONKML to JSONGeoJSON to JSONJWT to JSON