Skip to content

CSV to JSON converter

Convert CSV to JSON as you type. Nothing is uploaded, and the result can be previewed as a table, copied or downloaded.

Loading the converter… It runs locally in your browser.

How to convert CSV to JSON

  1. Paste your CSV into the input panel, drop a file onto it, or press “Open file”.
  2. Choose whether numbers and booleans should be detected, and whether dotted headers like user.name should become nested objects.
  3. Check the result: switch the output to “Table” view to see it as a grid.
  4. Press “Copy” or “Download .json”. The conversion runs on your device, so large files never leave it.

Each row becomes an object keyed by the header row. Type inference turns 42 into a number and true into a boolean, and headers with dots (user.name) can be expanded back into nested objects.

About CSV

Comma-separated values: one record per line, fields split by a delimiter, and fields that contain the delimiter, quotes or line breaks wrapped in double quotes (RFC 4180).

About JSON

JavaScript Object Notation (RFC 8259): nested objects and arrays with strings, numbers, booleans and null. The default payload format of web APIs.

Why some CSV fields get quotes

A CSV field only needs double quotes when it contains the delimiter, a double quote or a line break. A quote inside a field is written twice ("Katherine ""Kay"" Johnson"). Our interactive CSV format guide lets you type a value and watch exactly which rule applies.

Questions people ask

Is my CSV data uploaded anywhere?

No. The CSV to JSON conversion runs entirely in your browser with JavaScript. The page works offline once it has loaded, and TableForge never receives your data.

How large a file can I convert?

The limit is your device's memory. Files of tens of megabytes (hundreds of thousands of rows) convert fine on a typical laptop. The preview shows the first 200 rows, but the download always contains every row.

Will numbers stay numbers in the JSON?

With “Detect numbers & booleans” on, values like 42, 3.14 and true become real numbers and booleans. Values with leading zeros such as ZIP codes (00742) are kept as text so they are not corrupted. Turn the option off to keep every value as a string.

Can I convert JSON back to CSV?

Yes, use the JSON to CSV converter at tableforge.io/json-to-csv, or the universal converter on the home page.

Related converters