Convert Nested JSON to CSV

Flatten multi-level nested JSON objects and arrays into structured CSV columns using customizable dot notation separators.

parent.childparent.value
JSON

Paste JSON directly, or click below to upload

Convert nested JSON to CSV by flattening multi-level objects

Convert nested JSON to CSV by transforming deeply hierarchical objects into flat, organized table columns. While spreadsheets require two-dimensional rows and columns, real-world data from APIs, databases, and microservices often contains objects inside objects. mommyfile bridges this gap with customizable, automated flattening algorithms.

Predictable Column Naming

By default, mommyfile concatenates nested object property names using dot notation (parent.child). This preserves relational context while creating unique, clean column headers.

How to convert nested JSON to CSV using dot notation

Flattening nested data requires zero manual scripting or complex command-line syntax:

Paste or upload nested JSON

Drop your multi-level JSON file or paste the raw payload containing nested objects and child dictionaries into the input area.

Select flattening separator and array mode

Choose your separator character (., _, or /) and select how child arrays should be represented (indexed columns, joined strings, or stringified JSON).

Preview column headers and export

Review the flattened columns in the live monospace preview table and download your finished CSV spreadsheet.

How nested key separators and array expansion work

When converting hierarchical data to flat tables, two primary structures require transformation:

  1. Child Objects: An object located at customer.billing.city is unwrapped into a dedicated column named customer.billing.city. Every row with this structure populates its corresponding cell, while rows without it leave the cell blank.
  2. Child Arrays: Lists of items can be handled in three ways depending on your analysis goals:
    • Index Expansion (Default): Generates distinct columns for each array element (tags.0, tags.1).
    • Delimited Join: Merges primitive array elements into a single cell separated by semicolons (tag1; tag2; tag3).
    • JSON Stringify: Preserves the raw array notation (["tag1", "tag2"]) within a single escaped cell.

Flattening nested JSON vs Python pandas json_normalize

Many developers resort to writing custom Python scripts using pandas.json_normalize() to flatten nested payloads. While powerful, writing boilerplate Python scripts for ad-hoc datasets is time-consuming and requires installing local runtime environments.

mommyfile provides the same structural normalization as json_normalize, including recursive object unnesting, missing key tolerance, and array strategies, directly inside your browser with immediate visual feedback.

Input JSON
Output CSV

Frequently asked questions

Last updated: 2026-11-29

How does the nested JSON to CSV converter handle deep objects?

Deeply nested objects are flattened recursively into dot-separated column headers. For instance, {"user": {"contact": {"email": "a@b.com"}}} produces a user.contact.email column.

Can I change the dot separator to an underscore or custom character?

Yes. In the Conversion Options drawer, set the Key separator field to an underscore, hyphen, forward slash, or any custom character you prefer.

How are arrays inside nested objects handled?

You can configure arrays to expand into individual indexed columns (items.0.sku, items.1.sku), join array values into a single delimited cell, or preserve them as raw JSON strings.

What happens if nested objects have inconsistent keys across rows?

mommyfile scans every record and constructs a unified master column list. Rows missing specific nested keys receive an empty cell without throwing errors.

Is there any limit to nesting depth?

There is no artificial nesting depth limit. mommyfile recursively navigates arbitrary object hierarchies until primitive values are reached.

Related converters