UnitConv
Developer

CSV ⇄ JSON Converter

Convert CSV to JSON and JSON to CSV in your browser

Everything runs in your browser. Your data is never uploaded.
Delimiter

CSV input

JSON output

About this tool

This free converter turns CSV (comma-separated values) into JSON and JSON back into CSV. The first CSV row is treated as the header, producing an array of objects. It supports comma, tab, and semicolon delimiters and handles quoted fields containing commas, line breaks, and escaped quotes following the common RFC 4180 convention. Everything happens locally in your browser, so your data is never sent to a server.

How to use

  1. 1 Pick a direction: CSV → JSON or JSON → CSV.
  2. 2 Paste your data into the input box (or load the sample).
  3. 3 Choose the delimiter if your CSV does not use commas.
  4. 4 Copy the converted result from the output box.

How it works

For CSV → JSON, the first line becomes the object keys and each following line becomes one object. Quoted cells preserve commas and newlines, and doubled quotes ("") are read as a literal quote. For JSON → CSV, the union of all object keys forms the header, and any value containing the delimiter, quotes, or newlines is wrapped in quotes with internal quotes doubled.

FAQ

Is my data uploaded anywhere?

No. The conversion runs entirely in your browser using JavaScript. Nothing is sent to a server.

Which delimiters are supported?

Comma, tab, and semicolon. Choose the one matching your file before converting.

Does it handle quoted fields with commas or line breaks?

Yes. Fields wrapped in double quotes can contain commas, line breaks, and escaped quotes (doubled quotes), following RFC 4180.

What format does JSON → CSV expect?

An array of objects, e.g. [{"name":"Alice"}]. The keys across all objects become the CSV header.

Why are numbers shown as strings in JSON?

CSV has no types, so values are kept as strings to avoid changing your data. You can cast them afterward if needed.

Related tools

Need to tidy JSON instead? Try the JSON Formatter. For encoding tasks, see Base64 and URL Encode.