JSON to CSV Converter

Paste a JSON array of objects and convert it to CSV format instantly.

🔒 100% private — runs entirely in your browser

or try sample data

What is JSON to CSV?

JSON to CSV converts a JSON array of objects into comma-separated values. Each unique key across all objects becomes a column header, and each object becomes a row in the CSV output.

The tool handles fields that contain commas, quotes, and newlines by properly quoting them per RFC 4180. If objects have different keys, missing values become empty fields — no data is lost.

Ideal for exporting API responses, database query results, or any JSON data into a format that spreadsheet applications like Excel, Google Sheets, or Numbers can open directly.

JSON to CSV — Common Use Cases

Basic JSON to CSV

[ { "name": "Alice", "age": 30, "city": "New York" }, { "name": "Bob", "age": 25, "city": "London" }
] // Converts to:
name,age,city
Alice,30,New York
Bob,25,London

Handling special characters

[ { "name": "O'Brien, James", "note": "Said \"hello\"" }
] // Fields with commas or quotes get properly escaped:
name,note
"O'Brien, James","Said ""hello"""

Commas and quotes in values are automatically handled with RFC 4180 quoting rules.

JSON to CSV Gotchas

Nested objects and arrays

CSV is a flat format. Nested objects or arrays are serialized as their JSON string representation. For deeply nested data, consider flattening your JSON first or using a format like JSON Lines.

Key ordering

CSV headers are ordered by first appearance across all objects. If you need a specific column order, ensure your first JSON object has keys in the desired sequence.

Large datasets

Very large JSON arrays (50,000+ objects) may take a moment to convert. The tool processes everything in-browser, so performance depends on your device.

Frequently Asked Questions

How do I convert JSON to CSV?

Paste a JSON array of objects into the input panel and click "Convert to CSV". Each unique key becomes a column header, and each object becomes a CSV row.

What if my objects have different keys?

The tool unions all keys across all objects. If an object is missing a key, that cell is left empty in the CSV output. No data is lost.

Can I use semicolons or tabs instead of commas?

Yes. Use the delimiter dropdown to choose comma, semicolon, or tab output. Semicolons are common for European locales where commas are decimal separators.

How are nested objects handled?

Nested objects and arrays are stringified as JSON within the CSV cell. For a flat CSV, flatten your JSON structure before converting.

Is my data safe?

Yes. Everything runs in your browser. No data is sent to any server.