Online CSV to JSON Converter

Transform comma-separated spreadsheets and tabular data into JSON objects instantly in your browser.

Runs locally 0 lines • 0 bytes Ready
Tip: drop a file anywhere on the page
Input
Paste, type or drop a file
Result
Updates as you type
// Output will appear here…
About this tool

How the CSV to JSON works

Convert CSV and TSV tables into clean JSON arrays of objects. 100% private in-browser conversion with automatic header mapping.

How to use the CSV to JSON

  1. Paste CSV or upload a spreadsheet export.
  2. Choose the delimiter and whether the first row contains headers.
  3. Copy or download the JSON array.

CSV to JSON example

Input
id,name,city
1,Ali,Pune
2,Sara,Delhi
Result
[
  { "id": 1, "name": "Ali", "city": "Pune" },
  { "id": 2, "name": "Sara", "city": "Delhi" }
]

When to use it

  • Turning Excel or Google Sheets exports into API-ready JSON.
  • Seeding databases and mock APIs with spreadsheet data.
  • Converting reports into JSON for charts.

Tip: Numbers and true/false values are converted to real JSON types; turn type parsing off to keep IDs such as 007 as strings.

Header Row Detection

Uses the first row as object keys, mapping each subsequent row into a structured JSON record.

Type Inference

Automatically parses numbers, booleans, and nulls while keeping strings properly quoted.

Custom Delimiters

Supports comma (,), semicolon (;), and tab-separated values (TSV).

100% Private

No spreadsheets or customer records are ever uploaded to a server.

FAQ

Common questions

How does CSV to JSON handle headers?

By default, the first row of your CSV is treated as the column headers and becomes the keys for each JSON object.

Are numbers converted to numeric types?

Yes, numeric cells (like 42 or 3.14) are automatically parsed as JSON numbers instead of strings.

Can I paste directly from Excel or Google Sheets?

Yes! Simply copy cells from Excel or Google Sheets and paste them into the input editor.

Does this handle quoted fields with commas?

Yes, standard RFC 4180 quotes are properly supported.