# CSV to JSON — convert formats in your browser, no upload

> Convert CSV to JSON (and between CSV, JSON and Excel) in your browser. No upload — rows are parsed on your device and never sent to a server.

Turn a CSV file into JSON — or swap between CSV, JSON, and Excel — without uploading your data. The parsing and conversion run entirely in your browser.

"CSV to JSON" is the glue task between a spreadsheet export and code that expects structured data: seeding a database, feeding an API, or driving a script. The awkward part is that the data is often a customer list or financial export you should not paste into a random converter.

Running it locally keeps those rows on your device while still giving you a clean array-of-objects from the header and rows, correct handling of quoted fields, and the reverse conversions back to CSV or Excel.

For heavier work — querying with SQL, removing personal data, or de-duplicating — reach for the DuckDB SQL and PII scrub tools; to turn the JSON into typed models, use JSON to types.

## How to

1. **Add your data.** Drop a CSV, JSON, or spreadsheet file onto the tool, or paste the text.
2. **Choose the output.** Pick the target format, such as JSON array-of-objects from CSV rows.
3. **Convert.** The rows are parsed and rewritten locally into the format you chose.
4. **Download or copy.** Save the converted file or copy the result for your code.

## FAQ

### How are CSV rows turned into JSON?

The header row becomes object keys and each following row becomes an object, producing a JSON array of objects — the shape most APIs and scripts expect.

### Can it handle Excel files too?

Yes. You can convert between CSV, JSON, and spreadsheet formats, so an .xlsx export can become JSON without a round trip through another app.

### What about commas inside fields?

Quoted fields are parsed correctly, so values containing commas or line breaks stay intact rather than splitting into extra columns.

### Is my data uploaded to convert it?

No. Parsing and conversion happen in your browser tab; the rows never leave your device — important for customer or financial data.


## Related tools

- [PII scrubber](https://www.safepaper.app/data/pii-scrub)
- [SQL query](https://www.safepaper.app/data/sql-query)
- [JSON toolkit](https://www.safepaper.app/dev/json-toolkit)
- [JSON → TypeScript](https://www.safepaper.app/data/json-to-typescript)

---

Canonical HTML: https://www.safepaper.app/data/csv-to-json
Markdown: https://www.safepaper.app/data/csv-to-json.md

There is no upload endpoint — your files are processed in this browser tab. Open your network tab and check.
