1. Home
  2. Coding Tools
  3. CSV to JSON Converter

CSV to JSON Converter

Convert CSV data exported from Excel or Google Sheets into a JSON array of objects, with automatic delimiter detection and number conversion.

Runs locally in your browser. Your files and data are never uploaded or stored.

About the CSV to JSON Converter

The CSV to JSON Converter transforms spreadsheet data into JSON, the format used by web APIs, JavaScript apps, NoSQL databases and configuration files. Each row becomes an object whose keys come from the header row.

The converter uses a proper CSV parser that handles quoted fields containing commas, quotes and line breaks, and it automatically detects comma, semicolon, tab or pipe delimiters. Numbers and true/false values are converted to real JSON types (leading-zero values like phone numbers and ZIP codes are kept as text). Turn off the header option to get an array of arrays instead.

How to use the CSV to JSON Converter

  1. Paste CSV data or copy cells from Excel/Google Sheets.
  2. Choose whether the first row is a header and whether to convert numbers.
  3. Review the JSON output.
  4. Copy it or download data.json.

Frequently asked questions

Can I paste directly from Excel?

Yes. Copied cells are tab-separated, which the converter detects automatically.

Why are some numbers kept as text?

Values with leading zeros, such as phone numbers or postal codes, stay as strings so they are not changed.