How to Convert JSON to CSV

Updated 2026-09-09 · 3 min read

What CSV needs

CSV is a table format: one header row, then one row per record. JSON can be an object, an array, or a deeply nested structure. The easiest conversion is an array of objects where each object uses the same keys.

Example

A JSON array like [{"name":"Amina","score":92},{"name":"Youssef","score":88}] becomes headers name,score followed by two rows. This format opens cleanly in Excel, Google Sheets, and most database importers.

Escaping commas and quotes

If a value contains a comma, quote, or newline, CSV wraps it in quotes. Quotes inside the value are doubled. This is why a good converter cannot simply join values with commas; it has to escape every cell correctly.

Use the converter

Open the JSON to CSV Converter, paste a JSON object or array of objects, then copy the spreadsheet-ready CSV output. The conversion runs in your browser.

Try the JSON to CSV Converter →Convert JSON arrays or objects into CSV for Excel, Google Sheets and data exports. Free JSON to CSV converter that runs in your browser.

Frequently asked questions

Can nested JSON be converted to CSV?

Yes, but nested objects are kept as JSON strings unless you flatten them into separate columns first.

Can I import the CSV into Google Sheets?

Yes. Copy the output into a file ending in .csv or paste it directly into a sheet.

More guides

HTML Entities and EscapingLearn when to escape HTML, which characters need entities, how encoding helps prevent XSS, and when decoding HTML entities is safe.URL Encoding Query ParametersLearn why URLs need percent encoding, which characters break query strings, and when to use encodeURIComponent instead of encodeURI.How to Validate JSON and Fix Common Syntax ErrorsLearn how to validate JSON and fix the most common errors: trailing commas, single quotes, unquoted keys, comments and unescaped characters — with examples.Base64 Is Not Encryption: What It Actually DoesBase64 is reversible encoding, not encryption. Learn what Base64 is for, when to use it, its 33% size cost, and safe alternatives for protecting data.