DEV Community

TateLyman
TateLyman

Posted on

JSON to CSV Converter That Handles Nested Objects

Converting JSON to CSV should be simple. Most tools choke on nested objects. Mine flattens them.

Example

Input:

[
  { "name": "Alice", "address": { "city": "NYC", "zip": "10001" } },
  { "name": "Bob", "address": { "city": "LA", "zip": "90001" } }
]
Enter fullscreen mode Exit fullscreen mode

Output:

name,address.city,address.zip
Alice,NYC,10001
Bob,LA,90001
Enter fullscreen mode Exit fullscreen mode

Nested objects get dot-notation column names. Clean and predictable.

Features

  • Paste any JSON array
  • Automatic column detection
  • Nested object flattening
  • Proper CSV escaping (commas, quotes, newlines)
  • Download as .csv file
  • Copy to clipboard
  • Sample data to test with

JSON to CSV Converter

Runs in your browser. Your data stays local.

More converters:

Full toolkit: devtools-site-delta.vercel.app

Top comments (0)