Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
CSV to JSON Converter

CSV to JSON Converter

Convert CSV data to JSON in your browser. Supports custom delimiters with auto-detection, header and minify options, and automatic type detection.

CSV to JSON Converter

This CSV to JSON converter turns comma-separated values into clean, structured JSON right in your browser. Paste a spreadsheet export, database dump, or API extract and watch it become an array of objects or arrays as you type.

It is built for developers, analysts, and anyone wiring data into web apps: JSON is the format most APIs and JavaScript frameworks expect, and it carries typed values and structure that flat CSV cannot. Choose your delimiter, decide whether the first row holds column names, and pick pretty or minified output.

Private by design: every conversion runs locally in your browser. Your CSV is never uploaded, stored, or tracked, so even large files stay on your device.

How to Convert CSV to JSON

1

Add your CSV

Paste CSV data into the left panel, or click Upload File to load a .csv, .tsv, or .txt file. Need a quick test? Click Sample Data to load an example.

2

Set the options

Pick the Delimiter (comma, semicolon, tab, or pipe) and toggle First row as headers and Minify. When you upload a file, the delimiter is detected automatically.

3

Review the output

JSON appears on the right instantly. Switch between the Text view for raw JSON and the Table view to preview parsed rows. The status bar reports validity, row count, column count, and output size.

4

Copy or download

Use Copy to send the JSON to your clipboard, or Download to save it as data.json. Click Clear to start over.

Features

Object or Array Output

Keep the first row as headers for an array of objects, or turn it off to get a plain array of arrays.

Four Delimiters

Convert comma, semicolon, tab, or pipe separated data, with delimiter auto-detected on file upload.

Smart Type Detection

Numbers, true/false, and null become real JSON values instead of quoted strings.

Robust CSV Parsing

Handles quoted fields, escaped quotes (""), embedded newlines, mixed line endings, and uneven rows.

Pretty or Minified

Switch between indented, readable JSON and a compact single-line version for APIs and storage.

Text & Table Views

Read the raw JSON or preview parsed data in a spreadsheet-style table with row numbers and sticky headers.

Upload Files

Load .csv, .tsv, or .txt files directly, or paste data straight from your clipboard.

Copy & Download

Copy the result to your clipboard in one click or download it as a data.json file.

Live Status Bar

A real-time status bar shows validity plus the row count, column count, and output file size.

Instant & Private

Conversion is live as you type and runs entirely in your browser, with sample data on hand for quick testing.

Frequently Asked Questions

How do I convert a CSV file to JSON?

Paste your CSV into the left panel or click Upload File to load a .csv, .tsv, or .txt file. The JSON appears on the right immediately. Then use Copy or Download to save it.

Does it output a JSON array or object?

The output is always a JSON array. With First row as headers enabled, each row becomes an object keyed by the header names — an array of objects, which is what most APIs expect. Disable it and each row becomes a simple list of values — an array of arrays.

Can I create nested JSON from CSV headers?

The converter produces flat JSON: one object (or array) per CSV row, with one property per column. It does not split dotted or bracketed header names into nested structures, so the result mirrors your table's columns one-to-one.

What delimiters are supported?

Four common delimiters: comma (,), semicolon (;), tab, and pipe (|). When you upload a file, the delimiter is detected automatically from the first line; you can also pick it manually with the Delimiter buttons.

Are numbers and booleans converted automatically?

Yes. Values that look like integers or decimals become JSON numbers, true and false become JSON booleans, and null becomes JSON null. Every other value stays a string.

How are empty CSV cells handled?

An empty cell becomes an empty string ("") in the JSON, not null. To get a real null, put the literal text null in that cell. Rows with fewer columns than the rest are padded with empty values so the structure stays consistent.

How are quoted fields handled?

The parser follows standard CSV rules: fields wrapped in double quotes can contain delimiters, line breaks, and escaped quotes written as "". For example, "New York, USA" is read as a single field rather than two.

Does it handle large files?

Because everything runs in your browser, performance depends on your device, and the tool handles files with thousands of rows well. The Table view previews up to 500 rows for speed, but the full dataset is always included in the JSON output, copy, and download.

Is my CSV data uploaded to a server?

No. All conversion is performed locally in your browser with JavaScript. Nothing is sent to a server, and your CSV data never leaves your device.

Delimiter:
CSV
JSON
Error

                

Paste CSV data on the left to convert

| |
Paste CSV data or upload a file to convert instantly
Toggle First row as headers to switch between object and array output
Use Minify to get compact JSON for API usage
File upload auto-detects the delimiter (comma, tab, semicolon, pipe)
Switch to Table view to preview parsed data before downloading
All conversion happens in your browser — no data is uploaded
Want to learn more? Read documentation →
1/7
Start typing to search...
Searching...
No results found
Try searching with different keywords