jsonwebviewer
Convert

CSV to JSON

nothing is uploaded; conversion runs in this tab

The header row becomes each object's keys; every other row becomes one array element. The delimiter is detected automatically, and values are inferred as numbers/booleans/strings unless you force everything to stay a string.

How rows become objects

Each column value is type-inferred ("true" becomes true, "7" becomes 7) unless Force strings is on. Nested keys turns a dotted header like address.city back into a nested object.

Related

Privacy

This page ships no analytics and sets no cookies. The content security policy blocks network requests, so your file cannot leave the tab.

Have a spreadsheet export, a data dump, or a CSV from another tool and need it as a JSON array of objects? Convert it in one click, entirely in your browser.

Choose Import CSV… from the Open menu, pick your .csv file, and Json Web Viewer turns each row into a JSON object — the header row becomes each object's keys, and every other row becomes one array element. The delimiter (comma, semicolon, or tab) is detected automatically.

The result lands in Table mode so you can immediately spot-check values, sort a column, or fix a cell before treating the JSON as final — rather than trusting a blind conversion.

Example — this CSV:

id,name,role,active
1,Ada Lovelace,Engineer,true
2,Grace Hopper,Rear Admiral,true
3,Alan Turing,Mathematician,false

imports as this JSON:

[
  { "id": 1, "name": "Ada Lovelace", "role": "Engineer", "active": true },
  { "id": 2, "name": "Grace Hopper", "role": "Rear Admiral", "active": true },
  { "id": 3, "name": "Alan Turing", "role": "Mathematician", "active": false }
]

Open this example in the editor →
The link above pre-loads the result of importing the CSV above — a JSON array in Table mode — so you can see the target shape. To convert your own file, open Open > Import CSV… and pick it.

Frequently asked questions

Does converting CSV to JSON upload my file anywhere?

No. The conversion runs entirely in your browser — your CSV file and the resulting JSON never touch a server.

How does it detect the CSV delimiter?

Automatically, by sampling the file — comma, semicolon, and tab are all detected without you having to specify one.

Can I convert the other way — JSON back to CSV?

Yes. See JSON to CSV — load a JSON array of objects in Table mode and export it as CSV from the Save menu.

Doing it the other way around? See JSON to CSV.