DevToolsLab

Convert CSV to JSON

Browser-only · Instant · Free

Paste CSV on the left, get a JSON array of objects on the right.

Swap directionAll conversion runs in your browser. Nothing is uploaded.
Input · CSVValid
Output · JSON

All conversion runs in your browser. Nothing is uploaded.

About this converter

CSV is the universal export format from databases, spreadsheets and BI tools — but you usually need JSON to feed it back into your code. This converter parses CSV (including quoted fields, escaped quotes and embedded newlines per RFC 4180), uses the first row as headers and outputs a clean JSON array. Numbers, booleans and `null` cells are auto-typed.

Features

  • RFC 4180-compliant parser (quotes, embedded newlines, escaped quotes)
  • First row used as header keys (trimmed)
  • Auto-typed cells: numbers, booleans, `null`, strings
  • Outputs pretty-printed JSON, ready to paste into code
  • Browser-only, no upload

How to use

  1. Paste your CSV into the left panel.
  2. Read the JSON array on the right — updated as you type.
  3. Click Copy or Download to export.

Frequently Asked Questions

Does it handle fields that contain commas or newlines?

Yes — as long as they are inside double quotes and any internal quotes are doubled, per RFC 4180. The parser handles these correctly.

How are numeric strings like "007" handled?

Cells that look like simple integers (no leading zeros) become numbers; everything else stays as strings. So `007` stays the string `"007"` and `42` becomes `42`.

What if my CSV has no header row?

Add a header row yourself (`col1,col2,...`) before pasting, otherwise the first data row will be used as keys.

Related tools

Convert CSV to JSON Online — Free CSV to JSON Converter

Canonical: https://devformatlab.com/en/convert/csv-to-json