CSV to JSON

Convert CSV (comma-separated values) to JSON, or JSON arrays back to CSV, in your browser. Handles headers automatically.

Pretty-print: JSON formatter · compare: JSON diff.

FAQ

Does it use the first row as headers?

By default yes — toggle "First row is headers" off to treat every row as data with auto-generated column names.

How are CSV values typed?

Every value stays a string by default, so ZIP codes and phone numbers keep leading zeros. You can explicitly enable conservative number inference.

What CSV syntax is supported?

The parser follows RFC 4180 quoting rules, including commas, line breaks, and doubled quotes inside quoted fields. It reports malformed rows instead of dropping data.

Can column names create nested objects?

Yes. Headers like user.name or address.city are split on dots and merged into nested JSON objects.

Can it go back to CSV?

Yes — paste a JSON array of objects and switch to "JSON to CSV".

Is my data uploaded?

No. Conversion runs entirely in your browser.

Last updated: