You converted a JSON file to CSV, opened the result in Excel, and one of two things happened: a clean table, or every row crushed into a single wide column. Same kind of file, wildly different result. The difference is almost never the data. It is two small mechanical decisions: which character separates the fields, and how values that contain that character are protected.
This guide explains both, shows what correct output looks like, and covers the one honest catch with the JSON to CSV Converter on Ovatly: the delimiter is always a comma, and when Excel disagrees, the fix lives on Excel's side.
Contents
- Quick answer
- The delimiter is the whole structure
- Minimal quoting: protection only where it is needed
- How to convert JSON to CSV, step by step
- Worked example: a comma inside a name
- The honest catch: the comma is fixed
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
The JSON to CSV Converter writes comma-delimited CSV with standard minimal quoting: fields are separated by commas, and any value that contains a comma, a double quote or a line break is wrapped in double quotes, with inner double quotes doubled. That is the combination spreadsheet software expects, so the file normally opens as a clean table. The delimiter is always a comma; there is no delimiter picker. If the file still opens as one wide column, the usual cause is a locale setting: in regions where the list separator is a semicolon, Excel may expect semicolons and refuse to split on commas until told otherwise during import.
The delimiter is the whole structure
CSV has no header block, no schema and no metadata. The entire structure of the file is one character: the delimiter. Every time that character appears outside quotes, it means "next field." Every line break outside quotes means "next row." That is all a spreadsheet has to go on.
That is why a mismatch is so destructive. If the file is comma-delimited and the reader is splitting on semicolons, there is nothing to split on, so each row arrives as one long string and lands in the first column. The data is not damaged. The reader simply never found the seams.
It also explains why a value containing a comma is dangerous without protection. An unquoted Smith, John contains a seam in the middle of a name, and any reader will cut it into two fields. Quoting exists to mark which commas are structure and which are punctuation inside a value.
Minimal quoting: protection only where it is needed
The converter uses standard minimal quoting, which means a field is wrapped in double quotes only when it needs to be. Three things trigger the wrapping:
- The value contains a comma, which would otherwise be read as a field separator.
- The value contains a double quote. The field is wrapped, and each inner double quote is doubled, so
He said "yes"is stored as one quoted field with the inner quotes escaped by doubling. - The value contains a line break. Wrapped in quotes, the break stays inside the field and the record remains one logical row.
Everything else is written bare, exactly as it appears in the JSON. Values are never reformatted: a number stored as text stays text, and a date string keeps whatever format it arrived in. Minimal quoting keeps the file readable in a text editor while letting Excel reconstruct the exact fields you started with.
How to convert JSON to CSV, step by step
- Open the JSON to CSV Converter and paste your JSON, or upload a
.jsonfile. The input should be an array of objects, though a single object and an array of arrays are also accepted. - Check the record and column counts the tool shows. If the column count looks wrong, look at the keys in your objects: the columns are the union of all keys in first-appearance order.
- Download the converted.csv file.
- Open it in Excel and spot-check one row you know contains a comma inside a value. It should sit in a single cell. If the whole file lands in one column, read the next section before assuming the conversion failed.
Worked example: a comma inside a name
Take two records, one of them carrying the classic problem value, a name with a comma in it:
[
{ "name": "Smith, John", "address": { "city": "Lisbon" } },
{ "name": "Ben", "address": { "city": "Porto" }, "age": 31 }
]
The nested address object flattens into dot-style columns, the columns are the union of both records' keys, and the output is:
name,address.city,age
"Smith, John",Lisbon,
Ben,Porto,31
Three things to notice. The name is quoted, so Excel puts Smith, John in one cell rather than splitting it across the name and city columns. The first record has no age, so that cell is simply empty: missing values stay empty rather than shifting the row. And the second record needs no quotes at all, because none of its values contain a comma, a quote or a line break. That asymmetry is minimal quoting working as intended.
The honest catch: the comma is fixed
Here is the limitation, stated plainly: this converter always writes commas. There is no delimiter picker, no semicolon option, no tab option. For most people that is fine, because comma-delimited CSV with standard quoting is the format's most widely accepted form.
The friction appears in locales where the comma is the decimal separator and the semicolon is the list separator, which covers much of Europe. There, Excel may be configured to expect semicolon-delimited files, and a comma file can open as one wide column. The important part is the diagnosis: the file is not broken, and re-converting it will produce the identical file. The correction belongs to the import step on Excel's side, where you state that the delimiter is a comma. If your whole workflow lives in a semicolon locale and you need semicolon output every day, that final transformation has to happen in another tool after conversion.
Limitations and honest tradeoffs
The delimiter is fixed as a comma, as covered above. Beyond that, values are written as they appear and never reformatted, so the converter will not tidy numbers, dates or casing for you. Simple arrays inside a record are joined with "; " into a single cell, and arrays of objects are written as JSON text inside the cell rather than being flattened further. A list of plain scalars, or a mixed array of scalars and objects, has no clear columns and is rejected with an explanation instead of producing a misleading table.
Common mistakes
- Assuming the file is broken when it opens in one column. Check the locale and delimiter expectation first; the file is usually fine.
- Removing the quotes around a value like "Smith, John" by hand. Those quotes are the only thing keeping the name in one cell. Strip them and the row gains a phantom column.
- Looking for a delimiter setting that does not exist. The converter's output is comma-delimited by design; plan around it rather than hunting through options.
- Editing values to avoid commas. There is no need to rewrite a name or address to make it CSV-safe; correct quoting handles it.
FAQs
Why does my CSV open as one wide column in Excel? Usually because Excel expected a different delimiter. In locales where the list separator is a semicolon, Excel may not split a comma-delimited file on open. The file is fine; adjust the delimiter in Excel's import settings, or open the file through the import step and state that fields are comma separated.
Can I change the delimiter to a semicolon or a tab? Not in this converter. The JSON to CSV Converter always writes comma-delimited output and has no delimiter picker. If your workflow truly needs semicolons, that change has to happen in another tool after conversion.
What happens to a value that contains a comma? It is wrapped in double quotes, so Smith, John is written as one quoted field and stays in a single cell when Excel reads it. The quotes are part of the CSV format, not part of the value.
How are double quotes and line breaks inside a value handled? The whole field is wrapped in double quotes, and any double quote inside the value is doubled. A line break inside a value is also kept inside a quoted field, so the record stays on one logical row.
Is my JSON uploaded to a server when I convert it? No. The conversion runs locally in your browser and nothing is uploaded. The converted.csv file is generated on your device and downloaded from there.
Conclusion
Clean CSV output is not luck. It is a comma delimiter, standard minimal quoting that protects exactly the values that need it, and a reader set to expect the same rules. The JSON to CSV Converter handles the first two in your browser, with nothing uploaded. When the third one, the reader, is the problem, our guide to converting a large JSON file to CSV in sections covers the related job of splitting a big conversion into manageable pieces, and the full set of guides lives in the Data and JSON Tools guides.
References
- RFC 4180, the common format and MIME type for CSV files, including the quoting and double-quote escaping rules: https://www.rfc-editor.org/rfc/rfc4180