CSV to JSON Converter

Convert CSV data into JSON. Choose your delimiter and whether the first row is the header.

Features

Custom delimiter
First row as keys
File upload
Preview result

How to Use

1. Paste CSV into the input box, or upload a .csv file.

2. Pick the delimiter (comma, tab, semicolon).

3. Click Convert — the JSON output appears on the right.

About this tool

Spreadsheets export CSV, while APIs and JavaScript expect JSON. This converter bridges the two with a parser that follows RFC 4180, so quoted fields containing commas, line breaks or escaped double quotes are read correctly instead of being split apart. Choose the delimiter — comma, tab, semicolon or pipe — and decide whether the first row holds column names. With a header row, every following line becomes an object keyed by those names; without it, each line becomes an array of values. The output is indented JSON you can copy straight into code, fixtures or a request body. Values are kept as text, which avoids silently turning ZIP codes like 02134 or long IDs into numbers.

Frequently Asked Questions

How are commas inside a field handled?
Wrap the field in double quotes, as spreadsheet programs do when exporting: "Smith, John",42. The parser keeps the comma as part of the value. A double quote inside a quoted field is written as two quotes ("").
Why are numbers in the output wrapped in quotes?
CSV has no data types, so every value is kept as a string. This protects values such as leading-zero postcodes, phone numbers and long IDs; convert specific fields to numbers in your code where that is appropriate.
Which delimiter should I choose for files from Excel?
Excel uses commas in most English locales but semicolons in many European locales where the comma is a decimal separator. Tab-separated files (TSV) are common when copying cells directly from a spreadsheet.
What happens if a row has fewer columns than the header?
Missing fields are filled with empty strings, so every object has the same keys. Extra values beyond the header are ignored when "First row is header" is enabled.
Is there a size limit?
The conversion runs in your browser, so the practical limit is your device's memory. Files of several megabytes usually convert in a moment; very large exports are better handled by a script or database import.

Related Tools