⌕
Developer · free online tool

JSON to CSV.

Export an array of records as CSV.

Your workspace◈ Processed on your device
Your result
Your result will appear here.

A little context.

Accepts an array of flat objects and quotes cells when needed. Spreadsheet formula prefixes are escaped to reduce formula-injection risk when opened in a spreadsheet.

Handing flat records to a spreadsheet

Use a list of records with simple fields, such as name, quantity and price. Fields found in later records are included in the header too; a missing property becomes an empty cell. Inspect the exported columns before importing them.

Interpreting the result and avoiding mistakes

Nested arrays and objects must be flattened first. Spreadsheet formula-like values are escaped for safer opening, which can add a leading apostrophe. CSV has no type metadata, so spreadsheet software may still reinterpret dates and leading zeros.

A reproducible workspace example

These are the starting values in the form above. The result below is calculated from these values when the page is built, using the same processing engine as the tool.

JSON array
[{"name":"Alex","score":10},{"name":"Sam","score":20}]

Calculated output

name,score
Alex,10
Sam,20

Quick reference

[{"name":"Alex"}] → name / Alex

How to use this tool

  1. Enter json array in the workspace above.
  2. Select Run tool to process your input. Invalid values produce a message next to the form.
  3. Copy the result or download it as a file. Reset example restores the original input.

Keep a good thing going.

A few related tools for your next step.