Skip to content

Paste CSV, get a typed JSON array. Supports custom delimiters and header rows.

Input — CSV
Output — JSON
Ctrl+Shift+CCopy

Share this tool

Found it useful? Help a fellow developer discover it.

https://developertoolkit.dev/tools/csv-to-json

Convert in the other direction

Going the other way, flattening a JSON array into a spreadsheet export?

Convert JSON to CSV

Open JSON to CSV Converter

What is CSV to JSON conversion?

CSV (Comma-Separated Values) is a plain text format used by spreadsheets, databases, and data exports. JSON (JavaScript Object Notation) is the standard format for APIs and web applications. Turning a CSV into JSON is one of the most common data tasks developers face, whether you are seeding a test database from a spreadsheet, preparing fixture data for an API, or loading a report export into a script. This converter reads the CSV the way Excel and Google Sheets write it, including quoted fields that contain commas or line breaks. You can choose the delimiter or let it be detected. You can tell the tool whether the first row contains column headers, which decides whether each row becomes a keyed object or a plain array. Numbers and booleans come out as real JSON types rather than quoted strings, so the result is ready to use without a cleanup pass. All processing happens in your browser with no data uploaded to any server.

How to use

  1. Paste your CSV into the input panel, or paste rows copied straight from a spreadsheet.
  2. Pick a delimiter, or leave it on Auto-detect for files exported from Excel, Google Sheets, or a database client.
  3. Toggle First row is header off if the file has no header row. Each row then becomes a plain array instead of a keyed object.
  4. Numbers and booleans are typed automatically, including quoted ones, so check columns such as zip codes or IDs with leading zeros.
  5. Copy the output, or download it as a .json file.

Example conversion

CSV input

id,name,active
1,Ada,true
2,Grace,false

JSON output

[
  { "id": 1, "name": "Ada", "active": true },
  { "id": 2, "name": "Grace", "active": false }
]

Note that id and active came out as a number and a boolean, not strings, because values are typed automatically. That is what you want for counts, prices, and flags. It is not what you want for an ID that only looks numeric, like a zip code with a leading zero, so check those columns in the output.

Frequently Asked Questions

Does the first row need to be a header?

No. You can toggle "First row is header" on or off. When it is on, the first row becomes the property keys in each JSON object. When it is off, the output is an array of arrays where each row is a plain array of values.

What delimiters are supported?

Auto-detect, comma (,), semicolon (;), tab, and pipe (|). Auto-detect works well for most files exported from Excel, Google Sheets, or any standard CSV tool. Use a specific delimiter if auto-detect produces incorrect results.

How are commas and line breaks inside a value handled?

Wrap the value in double quotes, as Excel and Google Sheets do on export, and it is read as a single field. A quoted value like "Smith, Jane" stays one string instead of splitting into two columns, and a quoted value containing a line break stays inside one row. A literal double quote inside a quoted value is written as two double quotes ("").

Is there a file size limit?

There is no hard limit because everything runs in your browser. For very large files (50 MB or more), conversion may be slow depending on your device. The editor debounces large inputs to avoid freezing while you type.

Are numbers and booleans preserved when converting CSV to JSON?

Yes. Values like 42, 3.14, true, and false are parsed into their native JSON types rather than kept as strings. This applies to quoted values too, so a numeric-looking code such as a zip code with a leading zero (02134) comes out as the number 2134. Check the output for columns like that before using it.

Related Tools

From the Blog

The Browser Tools Every Developer Actually Needs in 2026

A no-fluff guide to browser tools developers actually reach for. JSON formatters, JWT decoders, regex testers, and more. Privacy-first, no sign-up.

Read article