Step 1 - Understand the two directions
JSON to CSV: an array of objects becomes a table, with each object's keys as columns. Nested objects need flattening - {"user": {"name": "Alice"}} becomes a user.name column.
CSV to JSON: each row becomes an object, and cells that look like numbers should come back as numbers rather than strings so the payload is usable downstream.
Step 2 - Pick the right delimiter for your region
- Comma (,) - the default for US tools and most APIs.
- Semicolon (;) - the common Excel export in many European locales.
- Tab - clean for pasting between systems that mangle commas.
- Pipe (|) - useful when data itself contains commas.
Step 3 - Protect the CSV against formula injection
A CSV cell that begins with =, +, -, or @ is executed as a formula when opened in Excel or Google Sheets. That is how imported datasets smuggle in spreadsheet commands. A good converter escapes those leading characters so the file renders as plain text.
This matters most for files you did not generate yourself - vendor exports, scraped data, or anything downloaded from a third party.
Step 4 - Run the conversion locally
- Open a local conversion tool (CSVLink does this entirely in your browser).
- Paste the JSON array into the left pane, or a CSV into the right pane.
- Choose the delimiter and toggle nested flattening if your JSON has objects inside objects.
- Convert, review the output, then copy or download.
Common JSON-to-CSV mistakes
The first is assuming every JSON document is a table. An array of flat objects maps cleanly to rows and columns; a deeply nested object does not. The second is forgetting that different objects can have different keys, which produces sparse columns and empty cells.
Locale is the third trap. A comma delimiter conflicts with decimal commas in some regions. Formula injection is the fourth: a cell beginning with =, +, -, or @ can execute when opened in a spreadsheet. Escape those values before export.
Pre-flight checklist
- Confirm the top-level shape is an array of objects.
- Flatten nested keys and normalize column names.
- Choose the delimiter for the target locale.
- Apply the formula guard.
- Spot-check the first and last rows.
- Keep the original JSON for a lossless copy.
Convert JSON arrays to CSV and back
Frequently asked questions
Can any JSON become a CSV?
Arrays of objects convert cleanly. A single object becomes one row. Deeply nested or heavily nested structures flatten into dot-notation columns, which is the standard approach.
Why does my JSON-to-CSV output have user.name columns?
Nested objects are flattened using dot notation so the CSV stays rectangular. You can toggle flattening off if you prefer each top-level field as its own column.
Is converting CSV back to JSON lossless?
Structurally yes - row values become object values. Numbers come back as numbers where the cell clearly looks numeric, which is usually what you want for further processing.
Is it safe to use an online JSON-to-CSV converter?
If the data is customer data or an API response containing tokens, do the conversion locally. Browser-based tools like CSVLink never upload your input.
Why are some cells empty?
The exporter uses the union of all keys. A row that lacks a key gets an empty value, which is expected for JSON with optional fields.
Is CSV-to-JSON conversion lossless?
No. CSV loses types and nesting. You need a schema to recover numbers, nulls, and nested objects.
Why do leading zeros disappear in Excel?
Excel treats values like 00123 as numbers. Open the CSV through an import wizard and set the column to text, or prefix the value with an apostrophe.