Text utilities

JSON to CSV Converter

Convert a JSON array of flat objects into CSV with a consistent header row.

Text stays in your browserCopy your result
Data workspace
Data workspace

Check delimiters and structure before downloading the output.

See the method

Your source data

Runs on your device

Your transformed data

Your result

Let’s calculate.

Use the Calculate button to see your result.

Your content is processed locally.

How to use this tool

  1. Enter json array.
  2. Select Update result to view the result.
  3. Check the method and assumptions below before using the result.

Input reference and sample values

Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.

InputFormat and unitsSample
JSON arrayKeep the structure and separators shown in the sample. Line breaks are retained in this input.[{"name":"Alex","score":95},{"name":"Sam","score":88}]

Result for these sample inputs

name,score
Alex,95
Sam,88
Data rows
2
Columns
2

Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.

The method, explained

Collect keys in first-appearance order across the objects, then write one CSV row per object. Quote cells containing commas, double quotes or newlines, and double embedded quotes.

A WORKED EXAMPLE

Objects with name and score properties produce a name,score header and one row for each object.

What to keep in mind

Flat objects only: nested objects and arrays are rejected. Missing values and null become empty cells. CSV is plain data; spreadsheet programs may interpret cells starting with =, +, − or @ as formulas. Do not open untrusted exports without reviewing them.

Reference: RFC 4180: comma-separated values

Common questions

Must every object have the same keys?

No. All discovered keys become columns, and missing values become empty cells.

Does this flatten nested JSON?

No. Restructure nested values explicitly before conversion to avoid silently losing information.

Methodology maintained by ClarityKit. How these tools are built and checked.