Skip to content
Free JSON tools for developers

CSV to JSON converter

Paste CSV, TSV or cells copied from Excel or Google Sheets and get a clean JSON array, with headers as keys, number detection and nested objects.

🔒 100% Secure & Private: All processing occurs locally within your browser RAM. Your data is never transmitted to any server.

Separator
Output
Indent

CSV input

1 line, 0 B

Paste CSV here, paste cells copied from Excel or Google Sheets, drop a .csv file, or use Load sample.

The result appears here

Paste CSV or spreadsheet cells into the editor to start.

Copy and download become available once the CSV is converted.

Convert CSV to JSON online

CSV is how spreadsheets and databases export tables, and JSON is what APIs, JavaScript apps and configuration files expect. This converter turns CSV, TSV or cells copied straight from Excel or Google Sheets into a clean JSON array: each row becomes an object and each column header becomes a key.

The separator is detected automatically, including the semicolon that Excel uses in Germany, France, Spain, Italy and Brazil, and the tab you get when you paste from a spreadsheet. Numbers, true/false and empty cells become real JSON types, and columns named like address.city turn into nested objects. Everything runs in your browser, so your data is never uploaded.

Convert CSV to JSON in 3 steps

  1. 1Paste CSV, drop a .csv or .tsv file, or copy cells in Excel or Google Sheets and paste them into the editor.
  2. 2Keep the separator on "Auto", choose "Array of objects" (header row as keys) or "Array of arrays", and switch number detection and nested keys on or off.
  3. 3Copy the JSON, download it as a .json file or explore it in the tree view.

Options that cover every kind of CSV

  • Separator: "Auto" recognizes comma, semicolon, tab and pipe, and you can also force one.
  • Header row: "Array of objects" uses the first row as keys, while "Array of arrays" keeps every row as a plain list.
  • Types: "Detect numbers & true/false" turns numbers, true/false and empty cells (null) into JSON types, while values like 00501 or very long IDs stay text so nothing changes.
  • Nested JSON: with "Nested keys (a.b)", columns such as address.city and address.zip become one "address" object.

Safe for API keys, tokens and customer data

API responses, config files and database exports often contain access tokens, emails and personal data, and many online formatters send whatever you paste to their servers. This tool runs entirely in your browser: parsing, validation, highlighting and CSV conversion all happen in local memory, and nothing is uploaded or logged. It also handles large files, up to 20 MB, without server-side limits.

Frequently asked questions

How do I convert Excel to JSON?

Select the cells in Excel, including the header row, copy them and paste them into the editor. Excel copies cells as tab-separated text, which "Auto" recognizes. You can also save the sheet as CSV and open the file here; Google Sheets works the same way.

My CSV uses semicolons. Will it work?

Yes. Excel in many European countries saves CSV with semicolons and decimal commas. "Auto" detects the semicolon, and with number detection on, values such as 12,5 become the number 12.5.

Why are some numbers kept as text?

Values with leading zeros, such as the ZIP code 00501, and integers longer than JavaScript can store exactly stay text, so the converter never changes your data. Turn number detection off to keep every value as text.

How do I get nested JSON from CSV?

Name the columns with dots, for example address.city and address.zip, and keep "Nested keys (a.b)" on. If a column is called both "address" and "address.city", both stay flat so no value is lost.