Caspian Office

CSV ↔ JSON

Convert CSV to JSON and back. Handles quoted fields, embedded commas and escaped quotes. Live, two-way, 100% offline.

Open CSV ↔ JSON →
Private · runs in your browserOffline · after first loadFree · no signup

What is the CSV to JSON converter?

A two-way converter between CSV and JSON. Paste or upload your data, flip the direction, and it converts live. The CSV parser handles quoted fields, embedded commas and escaped double-quotes, and everything runs locally in your browser — nothing is uploaded, and it works offline.

How to use CSV ↔ JSON

  1. Choose a direction — Switch between CSV → JSON and JSON → CSV at the top. You can also press the swap button in the middle to flip the direction and the content.
  2. Add your data — Paste into the input box, or use Upload (or drag a .csv, .json or .txt file onto it). The result converts live as you type.
  3. Set the header option — For CSV → JSON, leave the header row on to map columns to named fields, or tick No header row to treat each line as a plain array of values.
  4. Copy or download — Copy the converted output, or download it as a file. The Reset button clears both boxes to start again.

Frequently asked questions

Is my data uploaded anywhere?

No. All conversion runs locally in your browser, so your CSV and JSON never leave your device.

Does it handle commas and quotes inside fields?

Yes. The parser is RFC 4180-aware, so quoted fields, embedded commas, escaped double-quotes ("") and CRLF line endings are all handled correctly.

What if my CSV has no header row?

For CSV → JSON, tick No header row and each line is converted to an array of values instead of an object with named keys. The toggle only applies in that direction — going JSON → CSV, an array of arrays becomes headerless rows automatically, while an array of objects writes a header row from the keys.

Can I convert in both directions?

Yes. It's fully two-way: CSV → JSON or JSON → CSV, and the swap button flips the direction and moves your content across in one click.

Does it work offline?

Yes. The converter has no external dependencies, so it keeps working with no internet after the first load.

Tips

Related tools

← Browse all Caspian Office tools