Free Online CSV to JSON and JSON to CSV Converter
Turn a CSV export into JSON, or a JSON array of objects into a spreadsheet file. The delimiter is detected and can be overridden, numbers and booleans can become real JSON types, and nested objects are flattened to dotted column names. It runs in your browser.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
Why the Delimiter Has to Be Guessed
A file with the wrong separator is not broken, it is just read wrongly.
There is no marker inside a CSV file that says which character separates the fields. The name says comma, but Excel on a machine set to most of Europe writes semicolons, because in those locales the comma is the decimal point. Databases often export tabs, and some logging tools use a pipe because it almost never turns up in real text.
So the separator is worked out by reading the first twenty lines with each candidate and seeing which one gives every line the same number of fields. Counting occurrences alone is not enough, because commas are common inside ordinary prose. If the guess is wrong, the whole file collapses into one very wide column, which is the usual cause of "my CSV is corrupt". Override it with the Delimiter box and it will read correctly.
How to Convert Between CSV and JSON
A few steps, and nothing is uploaded.
What to Know About CSV and JSON
Including exactly where the round trip loses something.
address.city, which comes back as a key literally named "address.city" rather than as nesting again. And an array inside a record is written as JSON text in the cell, so it returns as a string, not a list.
42 becomes a number and true becomes a boolean, but 007 stays the string "007". Values with leading zeros are nearly always codes: postcodes, account numbers, product references. Turning them into numbers throws away the zeros and quietly corrupts the data, which is exactly what spreadsheets are notorious for doing.
Key Features & Capabilities
What this tool does, and what it deliberately does not.
About the CSV and JSON Converter
CSV and JSON are the two formats data actually arrives in. Spreadsheets, accounting systems and database exports speak CSV; APIs, configuration and anything written this century speak JSON. Moving between them is one of those small jobs that comes up constantly, and the usual answer is either a paid converter that wants your file on its server or a quick script that gets the quoting wrong.
This page does both directions in the browser. Going to JSON it works out the delimiter, uses the header row for keys, and can turn plain text into real numbers and booleans. Going to CSV it takes an array of objects, flattens nested objects into dotted column names, builds the header from the union of all keys, and quotes only the fields that genuinely need it.
The awkward part of a converter like this is not the parsing, it is the honesty. CSV cannot express a type, a null, a nested object or an empty list, so a conversion in that direction always throws something away. Rather than pretend otherwise, the page names each loss and leaves the choices with you, so you can decide whether a dotted column or a JSON string in a cell is the lesser evil for the job in hand.
Frequently Asked Questions
Delimiters, types, nesting and what does not survive the trip.
Every Other CSV Tool
16 more tools in this set. All free, all in your browser.