Data

Convert CSV to JSON in Your Browser

Turn CSV files into formatted JSON arrays locally, using the header row as keys. Each file becomes its own .json file, without uploading anything.

Runs locally in your browser

What it does

CSV to JSON reads CSV files, uses the header row as the field names, and turns every other row into one JSON object inside a formatted array. Everything runs in a background worker in your browser, so spreadsheet exports, contact lists and survey data are never uploaded. It suits developers and analysts who need a quick JSON copy of tabular data for a script, an API test or a config file.

How to use it

  1. Choose one or more CSV files, or drop them on the page.
  2. Press "Convert to JSON". Each file becomes its own job with a progress bar.
  3. Press "Download" next to each .json file, or "Download all (ZIP)" when there are several.

Example

Input
people.csv containing: name,city Ada,London Grace,Paris
Output
people.json containing: [ { "name": "Ada", "city": "London" }, { "name": "Grace", "city": "Paris" } ]

What happens to your file

  • Your file or text is processed by code running in this browser tab. It is not uploaded to any server.
  • The processing code is downloaded from this site with the page; nothing about your input is sent back.
  • The result is created on your device and saved only when you choose to download it.

Limits

  • Values are always converted as text; numbers and booleans are not detected or converted.
  • Rows that are completely empty are skipped, and a file without data rows under the header fails.
  • Only comma, semicolon, tab and pipe delimiters are auto-detected.
  • Very large files are limited by your browser's memory.

Questions

Can I paste CSV text instead of choosing a file?

No. The tool reads files only. Save the data as a .csv file first, then choose it or drop it on the page.

Are values converted to numbers or booleans?

No. Every value is kept as text (a string), even if it looks like a number, so "10" stays "10" in the JSON output.

What happens to completely empty rows?

They are skipped. A row only appears in the JSON output if at least one of its cells has content. A file with a header row but no data rows fails with a message instead of producing JSON.

What if a header cell is blank?

That column is still included, using a placeholder name like "column_3" based on its position.

Which delimiters are recognized?

Comma, semicolon, tab and pipe are detected automatically from the first line of each file; whichever appears most often is used to split every row.

Can I convert several CSV files at once?

Yes. Each file is converted separately into a JSON file with the same name, so sales.csv becomes sales.json. Download them one by one or together with "Download all (ZIP)".

Next steps