# CSV to JSON Converter

> Free CSV to JSON converter, both directions. Paste spreadsheet CSV and get clean JSON, or paste a JSON array and get valid CSV with proper quoting. Runs in your browser.

Switch between CSV and JSON in one click. Free, no sign-up, fully private.

*Interactive tool: enter your values at https://toollantern.win/csv-json-converter/ and results update instantly in your browser.*

## What it does

CSV to JSON treats the first row as headers and turns each following row into an object. JSON to CSV reads an array of objects and writes a header row plus quoted data rows. Both directions handle quoted fields, commas inside values, and multi-line cells correctly.

## Common uses

Preparing spreadsheet exports for an API, converting API responses into a spreadsheet, or cleaning data between tools.

## Private by design

Parsing happens locally in JavaScript. Your data never leaves your device.

## Frequently asked questions
### Does it handle commas inside fields?

Yes. Properly quoted CSV fields with embedded commas, quotes, or line breaks are parsed correctly.

### What if my JSON objects have different keys?

The converter collects every key seen across all objects into the header row, leaving blanks where a row lacks a key.

### Is my data sent to a server?

No. Everything happens in your browser.

---
Interactive version: https://toollantern.win/csv-json-converter/
