ToolsKit

JSON to CSV

Convert a JSON array of objects into CSV data.

Convert a JSON array of objects into CSV you can open in Excel or Google Sheets. Keys become the header row.

Loading the interactive tool… This page needs JavaScript to run the JSON to CSV.

How to use JSON to CSV

  1. Paste the data, code, token, or value you need to inspect.
  2. Set any format, encoding, or validation options.
  3. Run the tool and inspect the result or diagnostic output.
  4. Copy the output into your terminal, editor, API client, or project.

How JSON to CSV works

Paste a JSON array of objects and the tool builds a CSV table from it. The header row is the union of every key found across all objects, in order of first appearance, so rows with missing keys simply get an empty cell. Every value is written as text wrapped in double quotes, with embedded quotes doubled. Nested objects are not flattened, and input that is not an array shows an error. Conversion runs in your browser.

Worked example

Input: an array with two objects, name Ada with age 36, and name Bo, Jr with city Rome → Output: header "name","age","city" then "Ada","36","" then "Bo, Jr","","Rome" on separate lines.

Common uses

  • Turn an API response into a file you can open in Excel or Google Sheets.
  • Hand a list of records to a colleague who only works with spreadsheets.
  • Prepare test data for a CSV import screen from a JSON fixture.

Best for

  • developer workflows
  • quick json to csv tasks
  • browser-based utility work

Tips for better results

  • Validate the output before using it in production code.
  • Treat tokens, credentials, and secrets as sensitive even when processing happens locally.
  • For large payloads, keep an original copy so you can compare changes.

Frequently asked questions

What JSON shape works best?

An array of flat objects with the same keys, for example [{"name":"A","age":3}].

What happens to nested objects?

Nested values are serialised as text, so flatten deeply nested data first for cleaner columns.

Can Excel open the result?

Yes, save the output as a .csv file and open it in any spreadsheet app.

Related tools

Explore tool categories