CSV to JSON Converter

Convert CSV to JSON online. The first row becomes the keys, and each following row becomes a JSON object. Dotted headers are rebuilt into nested objects.

CSV input

1

Result

Waiting for input

About this tool

The first CSV row is used as the keys. Numbers and true/false values are converted to real JSON types, empty cells become null, and quoted fields with commas or line breaks are parsed correctly.

How CSV is converted to JSON

The first row is used as the keys. Every other row becomes an object in a JSON array. A header such as address.city creates a nested address object.

id,name,address.city
1,Asha,Jaipur

[{"id":1,"name":"Asha","address":{"city":"Jaipur"}}]

How values are typed

Numbers become JSON numbers, true and false become booleans, and empty cells become null. Everything else stays a string. A value like 007 becomes the number 7, so check ID columns with leading zeros after converting.

Quoted fields containing commas, quotes or line breaks are parsed correctly. The tool expects comma-separated values.

How to use it

  1. Paste CSV with a header row.
  2. Choose an indentation style.
  3. Copy the JSON array or download it.

Frequently asked questions

Are numbers converted?

Yes. Numeric cells become numbers and true or false become booleans. Everything else stays a string.

Is the delimiter always a comma?

Yes, this tool expects comma-separated values.

Can it rebuild nested objects?

Yes. A header like address.city produces {"address":{"city":"..."}}.

More JSON tools

JSON Checker – Validate JSON OnlinePaste your JSON into this free JSON checker to validate it instantly. Any error is pinpointed by line and column, so you can fix it in seconds.Online JSON Editor with Find and ReplaceEdit JSON online with live validation, find and replace (including regex), key sorting and undo. Everything runs in your browser.JSON Formatter and BeautifierFormat and pretty print JSON online. Turn minified or messy JSON into readable, indented, syntax-highlighted text with 2 spaces, 4 spaces or tabs.JSON Minifier – Compress JSON OnlineMinify JSON online by removing every unnecessary space and line break. See the size before and after, then copy or download the result.JSON to CSV ConverterConvert JSON to CSV online. Paste an array of JSON objects and get a CSV ready for Excel, Google Sheets or a database, with nested objects flattened into columns.JSON to YAML ConverterConvert JSON to YAML online for Kubernetes manifests, Docker Compose files, CI pipelines and other configuration. Paste valid JSON and copy the YAML.YAML to JSON ConverterConvert YAML to JSON online. Paste YAML from a config file and get valid, formatted JSON, with syntax errors explained.JSON Diff Checker – Compare JSON OnlineCompare two JSON documents online and see exactly what was added, removed or changed, listed by path. Click any difference to jump to it.JSON Tree Viewer – Explore JSON VisuallyView JSON as a collapsible tree online. Expand only the branches you need instead of scrolling through long, deeply nested text.

Advanced JSON tools

Need more than the basics? Our developer tools go further.