JSON to CSV Converter
Settings
CSV OPTIONS
Delimiter
GENERAL
Syntax Highlighting
Line Numbers
Word Wrap
Font Size
OPTIONS
Indent
Indent Style
Sort Keys
Trailing Commas
Allow Comments
Trailing Commas: strips [1, 2,] → [1, 2] before parsing.
Allow Comments: strips // and /* */ before parsing.
Switch to Output to see the CSV result and copy it directly into Excel, Google Sheets, or any data tool.
Settings
GENERAL
Syntax Highlighting
Line Numbers
Word Wrap
Font Size
Related Tools
All tools run entirely in your browser — no uploads, no sign-up required.
About CSV
CSV (Comma-Separated Values) is the simplest tabular data format — each row is a line, each column is a comma-separated field. Spreadsheets, databases, and data pipelines all speak it natively.
Universal tabular format
CSV is accepted by Excel, Google Sheets, PostgreSQL, MySQL, pandas, and virtually every data tool ever built. It is the lowest-common-denominator format for moving tabular data.
Default for API exports
Most dashboards and reporting tools export data as CSV. When your API returns JSON, converting it to CSV is the first step toward getting that data into a spreadsheet or analytics tool.
Why this tool helps
Manually mapping JSON keys to CSV columns is tedious and error-prone. This tool flattens JSON arrays into rows and extracts all unique keys as headers automatically.
Benefits
JSON is great for APIs and nested data, but CSV is what most data tools, spreadsheets, and pipelines actually consume.
Works with every spreadsheet
Excel, Google Sheets, LibreOffice Calc, and Numbers all open CSV natively. Converting JSON to CSV is the fastest way to get API data into a spreadsheet.
Direct database import
PostgreSQL, MySQL, and SQLite all support COPY or LOAD commands for CSV. Converting JSON to CSV lets you bulk-insert API data without writing a custom importer.
Faster than manual mapping
Manually extracting keys and values from nested JSON into columns is tedious. This tool infers headers from all unique keys across the entire array automatically.
Handles the edge cases that trip up simple converters — nested values, missing keys, and special characters in cell content.
Auto-infers headers from all rows
Keys are collected from every object in the array, not just the first row. You get complete headers even when objects have different shapes.
Handles nested objects and arrays
Nested values are serialized as JSON strings inside the CSV cell, rather than silently dropped or causing a crash.
RFC-compliant quoting
Cells containing commas, quotes, or newlines are automatically wrapped in double-quotes with escaped internal quotes — valid CSV by the RFC 4180 spec.
Works on single objects too
If you paste a single JSON object instead of an array, it is converted as a single-row CSV with the object keys as headers.
Copy output with one click
Copy the CSV directly to your clipboard and paste into Excel, Google Sheets, or any data tool without downloading a file.
Common questions about converting JSON to CSV and what to expect from the output.
Arrays of objects (the most common case), single objects, and arrays of primitives are all supported. Deeply nested objects inside array items have their nested values stringified as JSON within the CSV cell.
All unique keys across every object in the array are collected and used as headers. Objects missing a key produce an empty cell for that column.
Yes. Values containing commas, double-quotes, or newlines are wrapped in double-quotes with internal quotes escaped — following RFC 4180.
No. The conversion runs entirely in your browser using JavaScript. Your data never leaves your machine.