JSON to CSV Converter

Convert a JSON array of objects into deterministic CSV with configurable delimiters, formula-cell protection, a preview, and a local download.

Work in your browser

Local and private
Spreadsheet safety

How to use JSON to CSV Converter

Three simple steps, with your content kept on your device.

01

Paste an object array

Use a JSON array where each item is an object representing one row.

02

Choose CSV settings

Select a delimiter and keep formula-cell protection on when needed.

03

Convert and download

Review the deterministic CSV preview and save the local file.

Built for useful work

Fast, focused, and made to be clear on every screen.

Union of columns

Builds one header row from keys found across every JSON object.

Formula-cell protection

Can prefix string cells that spreadsheet apps may interpret as formulas.

Local CSV download

Creates the CSV file in your browser without uploading the JSON.

How JSON to CSV conversion works

As a JSON converter, this tool answers one question: how do I convert JSON into a table? CSV is a flat, tabular format while JSON is a tree. Converting between them means choosing how the tree is flattened. The tool builds a header row from the keys found across every object in the input array, then writes one row per object with values aligned to those columns.

The root must be an array of objects — that is the shape that maps cleanly onto rows and columns.

Keys are collected across all objects, so objects with different fields still share a common header.

Missing keys produce empty cells rather than shifting data between columns.

Rows follow the original array order, so the output preserves the source sequence.

Handling nested objects and arrays

Nested structures do not have a native CSV representation. The tool keeps nested objects and arrays as compact JSON text inside a quoted cell, which preserves the full value and still opens cleanly in any spreadsheet application.

Nested values stay lossless — the exact JSON is retained inside the cell, so nothing is dropped.

Quoting follows CSV rules, so commas, quotes, and newlines inside values do not break the file.

For genuinely nested data, a separate flattening step can explode objects into columns — but the default keeps the cell self-contained.

Deeply nested documents are better handled as JSON itself; CSV fits data that is naturally one level deep.

CSV limitations to plan around

CSV has no notion of types, and spreadsheet programs make their own guesses about whether a value is a number, a date, or text. Knowing these limits up front avoids surprises when the file is opened.

Everything is text — leading zeros, IDs, and long numbers can be re-interpreted by spreadsheet software.

Formula injection — cells beginning with =, +, -, or @ may be executed as formulas; the tool can prefix them with an apostrophe to defuse them.

Encoding — the output uses UTF-8, which most modern spreadsheet applications handle correctly.

A single sheet per file — CSV cannot represent multiple tabs, so split data across multiple files when needed.

A practical conversion workflow

The fastest workflow is paste, convert, and inspect the first rows before exporting. A quick visual check of the header and the first data row catches most structural surprises.

Inspect the header first — confirm every expected column appears exactly once.

Spot-check the first and last rows — they are where missing or extra values tend to show up.

Enable formula protection when the data is user-supplied or opens in a spreadsheet that evaluates formulas.

Re-run after fixing the JSON — the conversion is deterministic, so the same input always produces the same CSV.

When JSON to CSV is the right choice

CSV shines when the destination is a spreadsheet, a database import, or any tool that expects tabular data. Knowing when the conversion is worth it avoids unnecessary flattening of genuinely nested structures.

Spreadsheet analysis — charts, pivot tables, and formulas are far easier in a spreadsheet than in raw JSON.

Database imports — most databases accept CSV for bulk loading, and a clean header row maps directly to columns.

Reporting — CSV exports are the common denominator for business tools, so the file opens everywhere.

Keep JSON when the data is deeply nested or when the recipient consumes it programmatically — CSV would flatten meaning away.

Preparing JSON for a clean conversion

The quality of the CSV depends almost entirely on the shape of the input. A few minutes of normalization before converting produces a file that needs no post-editing.

Flatten explicit columns — if every object carries the same fields, the header is exactly those fields and every row lines up.

Decide how to handle nulls — an explicit null becomes an empty cell, which is usually what spreadsheets expect.

Trim whitespace and normalize key names before converting so the output header is clean and consistent.

JSON to CSV for data exports

Export workflows often end in CSV because the receiving side — a manager, a client, or a legacy system — expects a table. Knowing that the conversion is lossless for the values makes the handoff safe.

The header row mirrors the JSON keys, so column names are stable and self-explanatory.

Every object becomes exactly one row, and the original order is preserved in the file.

Values that came from nested JSON stay intact inside quoted cells, so no information is dropped in transit.

Frequently asked questions

What JSON shape is required?

The root must be a nonempty array and every array item must be an object. Object keys become CSV columns.

How are nested objects and arrays handled?

Nested values are preserved as compact JSON text inside a quoted CSV cell.

What does formula-cell protection do?

When enabled, string cells beginning with spreadsheet formula prefixes receive a leading apostrophe to reduce accidental formula execution.