Free browser-based developer tool

CSV to JSON Converter

Paste CSV data or upload a file and get clean, formatted JSON instantly. Handles quoted fields, auto-detects delimiters — and nothing is uploaded to a server.

Upload .csv
Delimiter Output

Paste CSV to convert.

How to convert CSV to JSON

CSV is the standard export format of spreadsheets and databases, while JSON is what APIs, config files and modern applications expect. This converter bridges the two: it reads your CSV — including quoted fields that contain commas or line breaks — and produces valid, formatted JSON you can drop straight into your code.

1

Add your CSV

Paste CSV text or upload a .csv file. Exports from Excel, Google Sheets and databases all work.

2

Adjust the options

The delimiter is auto-detected (comma, semicolon or tab). Choose objects with header keys, or plain arrays.

3

Copy or download

The JSON updates live. Copy it to the clipboard or download it as a .json file — your data never leaves your browser.

Why the conversion details matter

A naive "split by comma" breaks on real-world data: a field like "Miller, John" contains a comma inside quotes, and European Excel exports use semicolons instead of commas. This tool follows the CSV conventions properly — quoted fields, escaped quotes and embedded line breaks are parsed correctly, and the delimiter is detected from your data.

Number and boolean parsing is optional for a reason: values like ZIP codes or phone numbers look numeric but should usually stay strings, since a leading zero would otherwise be lost. Turn "Parse numbers & booleans" off if your data contains identifiers like these.

Frequently asked questions

How do I convert a CSV file to JSON?

Paste your CSV into the input box or upload a .csv file. The tool converts it instantly to JSON, which you can copy to the clipboard or download as a .json file.

Is my CSV data uploaded to a server?

No. The conversion runs entirely in your browser using JavaScript, so your data never leaves your device. This makes the tool safe for sensitive or internal data.

Does the converter support semicolons and tabs as delimiters?

Yes. The tool auto-detects commas, semicolons and tabs, which covers standard CSV, European Excel exports and TSV files. You can also set the delimiter manually.

What JSON structure does the tool output?

By default the first CSV row is treated as headers and each following row becomes a JSON object with those keys. You can switch to an array-of-arrays output if your data has no header row.

How are quoted fields with commas handled?

The parser follows the CSV standard: fields wrapped in double quotes can contain commas, line breaks and escaped quotes, and are converted correctly.