crud.md
// crud.md / csv-to-json

Turn a CSV into JSON. Or JSONL. Or SQL.

Paste or drop a CSV and get clean JSON, newline-delimited JSONL, or ready-to-run SQL INSERTs — quoted fields and embedded commas handled properly. Or paste JSON to go back to CSV. It all runs in your browser — nothing is uploaded.

csv-to-json · v1.0 local-only

FAQ

Is my data uploaded?+

No. Your CSV (or JSON) is parsed and converted entirely in your browser — it is never sent to a server. We do count anonymous, aggregate usage on our own server (a page view, that a conversion ran) — never your rows, columns, or values.

Does it handle quoted fields and embedded commas?+

Yes. The parser is RFC-4180-ish: quoted fields, escaped "" quotes, and commas or newlines inside quotes are all handled. You can switch the delimiter to semicolon or tab, and the SQL output quotes string values (escaping ' to '') while leaving plain numbers unquoted.

Can I go from JSON back to CSV?+

Yes — switch the Convert dropdown to JSON → CSV and paste a JSON array of objects (or a single object). The header is the union of every object's keys, and any value containing a comma, quote, or newline is quoted for you.