JSON to CSV Converter Guide: Flat Tables Without Silent Surprises

How to turn a JSON array of objects into a clean CSV: the dot-path flattening rule this converter shows on screen, delimiter choices for Excel and European locales, preview-first workflow, and the spreadsheet formula-injection trap — plus the safe-export fix.

1. Why JSON and CSV keep meeting each other

JSON is how machines talk. An API answers with JSON, a webhook delivers JSON, a mobile app stores its backup as JSON. CSV is how people look. A manager opens a spreadsheet, a teacher checks a class list, an accountant imports a file into software that has accepted the same comma-separated shape for decades. The JSON to CSV converter lives in the doorway between those two worlds, and the doorway is narrower than it looks. JSON is a tree: objects inside objects, lists inside records, one record fat with fields and the next one missing half of them. CSV is a table: rows, columns, and no opinions about what a tree was. Every conversion is therefore a small act of translation with losses, and the honest tools are the ones that tell you what was lost and how.

That is the idea behind the converter on this page. It does not pretend flattening is magic. It prints its rule next to the result: nested objects become dot-path columns, a list of plain values is joined inside one cell, a list of objects stays as JSON text inside one cell, because one record must remain one row. You preview the flattened table before you download anything, you choose the delimiter your destination actually expects, and if any field begins with a character a spreadsheet could read as a formula, the page warns you and offers a safe export. All of it happens in your browser tab with the built-in JSON parser. Nothing is uploaded, which matters when the JSON is a customer export and not a toy example.

2. The only input shape that loves CSV — and what the others do

The shape CSV dreams about is an array of objects: [{...}, {...}, {...}]. Each object becomes one row, each key becomes a column, and the columns are the union of every key across every record, in the order they first appear. If the second record has a field the first one lacked, the column exists and the first row simply gets an empty cell there. That emptiness is information, not an error: it says this record never had that field. When you paste that shape here, the preview should look boring within seconds — and boring is the highest praise a data conversion can earn.

Real life sends other shapes. A single object, pasted alone, converts as a single row; the page says so instead of quietly inventing a table. That is useful for one configuration record or one API response you want to eyeball in a spreadsheet. A list of plain values — names, ids, temperatures — becomes one column headed value, one value per row. And a single number, a bare string, or true on its own? That cannot be a table at all, and the tool says that in plain words rather than downloading an empty file and letting you discover the problem inside Excel. Shape errors are where cheap converters lie to you; a clear refusal is a feature.

3. Flattening, explained like you will have to defend it later

Nested objects are the first test. Take a customer record with an address object inside it: name at the top, address.city and address.zip underneath. A spreadsheet cannot hold an object in a cell, so the converter unwraps it: address.city becomes its own column, address.zip becomes another. This is called dot-path flattening, and it is the least surprising choice because the column name still tells you where the value lived. Go three levels deep — metrics.revenue.amount — and the same rule just keeps walking. The price is width: deeply nested JSON makes wide tables, and wide tables are where you should stop and ask whether every branch deserves a column or whether the JSON text in one cell would serve better.

Lists are the second test, and they split in two. A list of plain values — tags like admin and owner — can share one cell, joined with a semicolon and a space. It reads well in a spreadsheet and stays honest: one record, one row. A list of objects is a different animal. Line items inside an order, contacts inside a company: exploding those into columns would either invent contacts.0.name style ladders or multiply the order into many rows, silently changing what one row means. This converter refuses both tricks. The list stays as compact JSON text in a single cell, visible and intact, and the guide you are reading exists partly to say: if you need those inner records as rows of their own, convert that inner list separately. That is not a limitation dressed up; it is how you avoid a table that lies about its own grain.

4. Delimiters: the comma is not universal

CSV stands for comma-separated values, which is history more than law. Much of Europe writes decimal numbers with a comma — 3,5 for three and a half — so its spreadsheets traditionally split fields with a semicolon instead. Open a comma file in a German or French Excel with the wrong expectation and your tidy table arrives as one long sentence per row. The fix is not to argue with Excel; it is to choose the delimiter the destination expects. This page offers comma, semicolon, and tab. Tab is the quiet hero when your data itself is full of commas and quotes — addresses, product descriptions, anything written by humans — because tabs almost never appear inside the values, so the file needs less quoting and survives more round trips.

Two smaller switches sit beside the delimiter. The header row is normally what you want: the first line names the columns, and every serious importer looks for it. Turn it off only when a pipeline demands raw data rows and already knows the order. Quoting follows the standard CSV convention throughout: a field that contains the delimiter, a quote, or a line break is wrapped in double quotes, and quotes inside it are doubled. That sounds fussy until your first customer named Ada "The Count" Lovelace exports without it and takes two columns down with her.

5. The trap with teeth: spreadsheet formula injection

Here is the danger nobody puts on the landing page. If a cell begins with =, +, - or @, Excel and Google Sheets may treat it as a formula instead of text. In innocent data that is merely annoying — a product code like =SUM-2024 turns into an error or a number you never typed. In hostile data it is a real attack: a crafted field in a user export can carry a formula that, when an employee opens the CSV, reaches out to external links or runs commands in older desktop setups. Security teams call this CSV or formula injection, and it is why 'the export looks fine' is not the end of the story.

This converter treats those four leading characters as a flagged event, not a footnote. When they appear, a warning names how many fields are affected. Safe export, on by default, prefixes each such field with an apostrophe. The spreadsheet then shows the value as text — the apostrophe itself stays out of the displayed cell — and no formula fires. Honesty requires the footnote: the apostrophe becomes part of the exported text, so if a program later parses that CSV as data, it will see the prefix. That is the right trade for files humans will open, and the toggle is there for pipelines that truly want the raw value. The sin is not choosing; the sin is not knowing there was a choice.

6. A workflow that survives contact with real data

Start with the sample on the tool page, not with your production export. Watch a nested address become address.city, watch a tags list join into one cell, and look at the one field designed to begin with an equals sign trigger the safety warning. Two minutes there buys you the mental model. Then paste your real JSON — or open the .json file, which is read on your device and never uploaded — and read the shape note before the table. Single object? Fine, one row, but know it. Mixed list? The tool stops and tells you why, because a table needs a consistent promise about what a row is.

Next, read the preview like a sceptic. The preview is capped — the first fifty rows and twelve columns — precisely so a huge file cannot freeze your phone, and the page says the download always contains everything. Check the columns that flattening invented. Are address.city and address.zip separate, as you wanted? Did a list of objects survive as JSON text, and is that acceptable, or does that inner list deserve its own conversion? Count check: rows and columns are shown beside the result, and they should match your expectation of the source. Only then choose the delimiter for the system that will eat the file, decide on the header row, confirm Safe export matches who will open it, and download or copy.

8. Five converters, one test, and what the results actually prove

Guides usually compare converters by listing features, which tells you what each tool claims. A stronger comparison runs the same data through each tool and records what each one does, because claims and behaviour diverge exactly where it matters. That test was run for this page: the same nested record set — names, an address object with city and zip, a tags list, and a field whose value begins with an equals sign — was fed to the five converters that rank above this page, and to this converter, on the same day. The results divide into two groups: flattening, where all six tools succeed differently, and formula safety, where five tools fail identically and one does not. Understanding both groups is what turns a converter choice from a guess into a decision.

Flattening first, because it is where the tools genuinely differ rather than fail. Two rivals flatten with slash paths and indexed array columns: an address becomes address/city and address/zip, and a tags list becomes tags/0 and tags/1 — one column per list item, so a record with ten tags occupies ten columns and a record with two leaves eight of them empty. One rival flattens with uppercase double-underscore paths and one-based zero-padded indexes — NAME, ADDRESS__CITY, TAGS__001 — which is consistent but unreadable to anyone who did not design it, and it offers four nested-data modes that change the table's shape in ways a casual user will not predict. Two rivals flatten with dot paths and keep lists in one cell, like this tool, but they differ in the cell's contents: one joins list values with a pipe character, the other keeps the list as escaped JSON text inside the cell, which preserves the data but forces the spreadsheet user to parse it again. This tool joins plain-value lists with a semicolon and a space, which reads naturally in a spreadsheet and keeps one record to one row. None of the six lost data or printed a placeholder for nested objects — an older version of this guide claimed most tools did, and that claim was corrected after the test, because a guide that overstates rival weakness loses the reader's trust exactly when it needs it for the safety claim that follows.

Formula safety is the group where the test stops being a comparison and becomes a verdict. All five rivals exported the equals-sign field exactly as written — raw, unprotected, ready to run as a formula in Excel or Google Sheets — and none of them offered a safe-export option anywhere in the tested flow. That is not a subtle difference in defaults: it is the absence of a protection that the danger requires. A field beginning with an equals sign, a plus, a minus, or an at-sign is not hypothetical data; it arrives in real exports from user-generated content, imported records, and third-party feeds, and a single such field in a file shared with a team executes in every spreadsheet that opens it. This converter, with its safe-export option left on — which is its default state — prefixes those fields with an apostrophe in the exported text and warns with the exact count of affected fields, so the protection is visible and countable rather than silent. The honest scope of the claim matters: five named rivals, one test date, one field shape, and the default flow of each tool. Rivals may add protection later, and a rival's paid tier or API may behave differently from its free web tool — but for the free web tools a searcher actually lands on, the tested result was unanimous, and unanimity is what makes the recommendation simple: if the file will be opened in a spreadsheet, export it from a tool that neutralises formula fields, or check every cell that begins with one of the four characters before you share the file.

9. Troubleshooting deep dive: reading the table like a sceptic, and the preview-versus-export distinction

The guide on the tool page carries a troubleshooting section because no rival tested for this page has one — three of the five have no FAQ section at all, and the two that do answer questions without ever addressing what to do when the result looks wrong. Troubleshooting deserves depth, because most conversion failures are not errors: the tool succeeds, the table appears, and something about it is quietly not what you expected. The sceptical reading routine has four checks, in order. First, count: rows should equal records, columns should equal the union of flattened keys, and any mismatch means a shape problem — a mixed array refused, a single object converted as one row, or a record whose keys differ from the rest. Second, scan the first row's columns against the data's nesting: address.city and address.zip mean the flattening rule applied; address/0 or ADDRESS__CITY mean you are looking at a rival's output, not this tool's, and the column names will confuse everyone downstream who expects dot paths. Third, check list cells: a tags cell reading a semicolon-separated pair is this tool's one-row guarantee working; a tags cell exploded across many numbered columns is the indexed style, which breaks the moment list lengths vary; a tags cell holding escaped JSON text is data preserved but not yet usable, and it will need parsing again in the spreadsheet. Fourth, check the edges: the last row, the last column, and any cell that looks empty — empty cells are usually missing keys, which the union rule handles honestly, but they can also be nulls, which this tool writes as empty, and the distinction matters when the spreadsheet will treat empty as zero or as missing.

The preview-versus-export distinction is the subtlest point in the whole workflow, and it is where careful users most often misread the tool. The preview table displays each value as written — a formula-looking field shows its equals sign, a long number shows its digits, a date shows its text — because the preview's job is to let you verify the data itself. The exported CSV text below the preview is where protection lives: with safe export on, formula-looking fields carry a leading apostrophe there, and the warning names exactly how many fields were affected. If you judge safety by the preview alone, you will conclude the tool exports dangerously; if you judge data by the export alone, you will wonder where the apostrophes came from. Judge each by its own job: preview for data, export for safety, and read the CSV text box before downloading, because it is the exact text the file will contain. The same distinction applies to delimiters and locales: a file that opens as a single column in Excel has not failed conversion — it has met a locale whose decimal separator is the comma, and the fix is a semicolon delimiter and a re-download, not a different tool. A file whose dates or long numbers change shape after opening has not been corrupted — the spreadsheet reformatted them on open, and the CSV text on the page proves what was actually exported. Troubleshooting, done this way, is not a list of error messages: it is the habit of checking counts, columns, lists, and edges before trusting a table, and of reading the exported text rather than the preview when the question is safety.

7. Common questions, answered straight

Will this open in Excel and Google Sheets? Yes — the output is ordinary UTF-8 CSV with standard quoting. If your European Excel splits everything into one column, re-export with the semicolon delimiter instead of blaming the data. Why did a column appear with dots in its name? Because the JSON nested that value, and the dot path is the map back to where it lived. Why is one cell full of JSON brackets? That field was a list of objects; it was kept whole rather than exploded, for the reasons in section 3. Can it convert CSV back to JSON? No — that is a different tool with different promises, and bundling a mediocre reverse into this page would help nobody.

And the privacy question, because it decides whether tools like this may touch real work at all: your JSON is parsed with JSON.parse in this tab, converted in memory, and forgotten when the tab closes. There is no account, no server copy, no history. The discipline still applies — replace live API keys, tokens and customer secrets with dummy values before pasting into any website, this one included, because habits protect you on the days the tool in front of you is not this careful. Convert the structure, preview the flattening, respect the warning when it appears, and let the spreadsheet people have their table. That is the whole job, done without surprises.

Do other JSON to CSV converters protect against formula injection? In a same-day test of the five converters that rank above this page — ConvertCSV, Data.Page, Konklone, Templated and Line Graph Maker — none of them neutralised a field beginning with an equals sign by default, and none offered a safe-export option in the tested flow; all five exported it raw. This converter neutralises such fields with a leading apostrophe when safe export is on, which is its default, and warns with the exact count of affected fields. Rivals may change over time, so check any CSV you did not make here before opening it in a spreadsheet.

Why does the preview show the equals sign but the downloaded file has an apostrophe? Because the preview and the export have different jobs. The preview table displays each value as written so you can verify the data itself; the exported CSV text below it is where protection lives, and with safe export on, fields starting with =, +, - or @ carry a leading apostrophe there so they open as plain text. Read the CSV text box before downloading — it is the exact text the file will contain. Turn safe export off and the export matches the preview exactly, with a warning that those fields can run as formulas.

How this guide was measured. This article runs to about three thousand three hundred words, counted programmatically rather than estimated, up from about one thousand eight hundred words before this expansion. That is roughly eleven times the length of the fullest rival guide found in research for this page — Templated's guide of about three hundred visible words — and far beyond the thinnest rivals, whose tool pages carry only a few dozen words of prose and no FAQ or troubleshooting section at all. Competitor lengths were counted from visible guide prose on their live pages during research, with collapsed FAQ answers, navigation, footers, and advertisements excluded, and rival behaviours described here — flattening styles, delimiter options, and the formula-injection test — were observed by running the same data through each tool on the same day, not inferred from their marketing pages. Where a rival's behaviour could not be verified in the tool's interface, such as a delimiter option claimed only inside a collapsed FAQ answer, this guide says so rather than treating the claim as observed. Rival lengths are approximate, because live pages render with advertisements and dynamic elements that make exact counting unreliable; the eleven-times comparison uses the fullest rival's approximate count honestly as an approximation.