DFK Studio

Convert CSV to JSON, and back

Convert CSV to JSON and JSON to CSV in your browser. Handles quoted fields, embedded commas and newlines, and detects the delimiter. Nothing is uploaded.

  • Free, no account
  • Nothing is uploaded
  • Runs in your browser

How it works

  1. 1 What goes in A CSV, or JSON
  2. 2 It runs in your browser On your own device. Nothing is uploaded, there is no queue and no account, and it keeps working with the network switched off.
  3. 3 What comes back The other one

What it does

Paste a CSV and get an array of objects keyed by the header row, or paste an array and get a CSV back. The parser reads character by character rather than splitting on commas, so a quoted field containing a comma or a line break survives intact.

This page does the work itself. Your data is handled by the browser and never sent anywhere — there is no server here to send it to.

Questions

Why does splitting on commas not work?

Because a CSV field may be quoted, and a quoted field may contain commas, line breaks and escaped quotes. Splitting on commas turns a single address field into three columns and shifts every column after it — and it does so silently, which is the dangerous part.

Are numbers converted?

Values that are unambiguously numbers, booleans or null become those types. Anything that would change if it made the round trip stays a string — so a leading-zero product code like 007 and a phone number like +1 555 stay exactly as written, which is the spreadsheet bug this avoids.

What if my file uses semicolons or tabs?

Detection is on by default and votes on the first line, counting only separators outside quotes. You can also pick the delimiter yourself if the first row is unusual.

Every shelf