DevTools Logo

JSON to CSV Converter

JSON to CSV Converter

Convert JSON data to CSV format with advanced options and comprehensive analysis

Input & Settings

Common Use Cases

Simple Object Array

Convert basic JSON objects to CSV rows.

[{"name": "John", "age": 30}, {"name": "Jane", "age": 25}]

Single Object

Convert a single JSON object to a one-row CSV.

{"product": "Laptop", "price": 999.99, "inStock": true}

Details

Paste your JSON data (usually an array of objects) and this tool will convert it into Comma Separated Values (CSV) format, suitable for spreadsheets.

Examples

Convert Array of Objects

JSON Input:
[ { "name": "Alice", "age": 30 }, { "name": "Bob", "age": 25 } ]

CSV Output:
name,age
Alice,30
Bob,25

Each object in the array becomes a row, and keys become headers.

Handling Nested Objects (Flattening)

JSON Input:
[ { "id": 1, "user": { "name": "Alice", "city": "New York" } } ]

CSV Output:
id,"user.name","user.city"
1,Alice,"New York"

Nested object keys can be flattened using dot notation for headers.

    About this tool

    Paste a JSON array of objects and the converter produces CSV rows you can copy or download as a file. A single object is treated as a one-row table, every key found across the records becomes a column, and records that lack a key get an empty cell. Row and column counts are reported after each conversion.

    Nested objects are flattened into dot-notation columns: {"user":{"name":"Ada"}} becomes a user.name column. Arrays inside objects are joined into one cell with a "; " separator, or kept as JSON strings when array flattening is switched off. The delimiter is yours to choose — comma, semicolon, tab or pipe — along with the header row and whether every field is quoted or only those that need it.

    Conversion runs locally with PapaParse, so the JSON never leaves your browser. Data can also be loaded from a local .json file, and sample datasets for simple, nested and mixed records are one click away when you want to see the behavior first.

    How to use this tool

    1. Paste your JSON

      Enter an array of objects, or load one from a file or a sample dataset.

    2. Pick the output options

      Choose a delimiter and toggle the header row, array flattening, quote-all and column sorting.

    3. Convert

      Run the conversion and check the reported row and column counts.

    4. Copy or download

      Copy the CSV to the clipboard or download it as a .csv file.

    Frequently asked questions

    How are nested objects converted to columns?

    Each nested key path is flattened into a single header using dot notation, so {"user":{"name":"Ada"}} yields a column named user.name. All key paths found across the records are merged into one column set, and missing values become empty cells.

    How do I open the CSV in Excel without broken characters?

    The download is UTF-8 encoded. If accented characters look mangled when you double-click the file, use Excel's Data → From Text/CSV import, select 65001: Unicode (UTF-8) as the file origin, and pick the same delimiter you chose here.

    What happens to arrays inside objects?

    By default an array such as ["a","b"] is flattened into one cell containing a; b. Switch array flattening off and the cell keeps the original JSON string instead.

    Can I convert CSV back to JSON?

    Yes — the CSV to JSON converter on this site runs the reverse direction, parsing delimiter-separated text back into JSON objects.