CSV to JSON Converter

Paste CSV and get clean JSON or NDJSON instantly, with quote handling, delimiter detection and number and boolean detection.

Free, no sign-upRuns in your browserDeveloper and encoders

CSV input

The first row is used as column names.

JSON output


    

How to use the CSV to JSON converter

Paste your CSV and the JSON appears instantly. The first row becomes the property names. The converter respects quoted values, so commas, quotes and even line breaks inside quotes are kept. It can detect numbers and true/false values for you, and it outputs either a standard JSON array or NDJSON for streaming. Nothing is uploaded: the conversion runs in your browser.

Why it helps

APIs, databases and analytics tools usually want JSON, but a lot of data starts as CSV exported from Excel, Google Sheets, Salesforce or HubSpot. A converter that understands quoting saves cleanup time, and type detection keeps numbers as numbers and booleans as booleans without manual fixes.

Common uses

  • Turning a Google Sheets export into JSON for an API call
  • Preparing test or seed data from a spreadsheet
  • Moving CRM exports into a CMS or marketing tool
  • Creating example payloads for API documentation

CSV quirks it handles

Commas inside quotes ("Smith, John"), escaped quotes written as two double quotes, line breaks inside quoted cells, Windows and Unix line endings, a leading byte order mark, empty trailing lines and rows with missing values. Semicolon, tab and pipe separated files work too, and the delimiter is detected from the header row. Values with leading zeros, such as postal codes or IDs like 007, stay as text so the zeros are not lost.

Frequently asked questions

What is NDJSON?

Newline-delimited JSON puts one JSON object on each line. Streaming pipelines, BigQuery loads and log tools use it because each line can be read on its own.

Why did "1.0" become a number?

Type detection converts anything that looks numeric. To keep every value exactly as written, set Value types to "Keep everything as text".

Does it work with semicolon-separated files?

Yes. Many European exports use semicolons, and the converter detects them automatically. You can also pick the delimiter yourself.

Can I save the JSON as a file?

Yes. Use the download button to save a .json file, or an .ndjson file if you chose NDJSON.