JSON ↔ CSV

What Is the JSON to CSV Converter?

Convert JSON data to CSV format and vice versa. Nested objects become dotted columns and come back as objects; quoted commas, quotes and line breaks follow RFC 4180, and comma, semicolon, tab or pipe files are supported.

Why Use This Tool?

Moving data between APIs (which typically use JSON) and spreadsheet tools (which use CSV) is a common workflow. This tool converts records both ways in one click.

How to Use This JSON CSV Converter

  1. Paste your JSON or CSV data — Enter the data you want to convert into the input field. For JSON, use an array of objects. For CSV, use a standard comma-separated format with a header row.
  2. Select the conversion direction — Choose JSON → CSV or CSV → JSON depending on your needs.
  3. Configure options — There are no options: JSON → CSV quotes every field and uses commas; CSV → JSON expects a comma-separated file with a header row.
  4. Copy or download the result — Click Copy and paste the result where you need it.

Worked example: 12 JSON records through CSV and back

Until October 12, 2026 this converter wrote nested objects as [object Object], split quoted line breaks into extra rows, turned 02134 into 2134 and read only commas. It now uses Papa Parse with dot-notation nesting and careful type detection. We ran 12 JSON records through JSON → CSV → JSON in Chromium with the default options; 11 came back identical, and the twelfth differs only where CSV has no way to say a value is missing:

InputResult
Nested object {"user":{"addr":{"zip":"0150"}}}columns user.addr.zip …, then the same object back
Array ["a","b"]columns tags.0, tags.1, then the array back
Text with a comma, a quote ("hi") or a line breakquoted per RFC 4180, back unchanged
"02134", "0x1A", " padded "kept as text both ways (no leading zeros or hex read as numbers, spaces kept)
-1.5, 2e21, 0numbers both ways
"12345678901234567890"kept as text: above 2⁵³ a number would lose digits
true / falsebooleans back; "true story" stays text
Emoji and CJK textunchanged
Rows with different keyscolumns for every key; absent values come back as "" because CSV cannot tell "missing" from "empty"

Related tools

Frequently Asked Questions

How does it handle nested JSON?
With "Nested keys as a.b" on (the default), nested objects and arrays are flattened into dotted columns: {"user":{"name":"Bo"}} becomes a user.name column and ["a","b"] becomes tags.0 and tags.1. Converting back rebuilds the objects and arrays. Turn the option off to keep each nested value as JSON text in a single cell.
Can I convert CSV back to JSON?
Yes. Papa Parse reads the file, so quoted commas, doubled quotes and line breaks inside quotes work, and the delimiter is detected or chosen. With "Numbers and true/false" on, only canonical numbers become numbers (02134, 0x1A and 20-digit IDs stay text) and true/false become booleans; spaces inside cells are kept. Empty cells become empty strings.
What delimiter options are available?
Comma, semicolon, tab and pipe, for both directions. When reading CSV you can also leave it on Detect and Papa Parse picks the delimiter from the first rows.
What is the difference between JSON and CSV?+
JSON (JavaScript Object Notation) supports nested structures, multiple data types, and complex relationships — ideal for APIs and web applications. CSV (Comma-Separated Values) is a flat, tabular format ideal for spreadsheets, data imports, and simple datasets. JSON is more flexible; CSV is more portable and human-readable for tabular data.
When should I use CSV instead of JSON?+
Use CSV when your data is naturally tabular (rows and columns), when you need compatibility with Excel or Google Sheets, when file size matters (CSV is smaller for flat data), or when you're exchanging data with non-technical stakeholders who prefer spreadsheets.
How do I handle nested JSON when converting to CSV?+
Common approaches include dot notation flattening (user.address.city becomes a column named user.address.city), serializing nested objects as JSON strings within CSV cells, or splitting nested arrays into multiple rows. The best approach depends on your data structure and downstream use case.
How do I convert JSON to CSV?+
Paste a JSON array of objects (or a single object), keep the direction on JSON → CSV, pick a delimiter and click Convert. Every key becomes a column, nested keys become dotted columns, and values are quoted only when they need it: when they contain the delimiter, a quote or a line break (RFC 4180), or start or end with a space.
What JSON structure works for CSV conversion?+
An array of objects works best. Objects can have different keys (absent ones become empty cells) and can be nested, since nested keys become dotted columns. A top-level array of plain values becomes a single value column.

📖 Learn More

Related Article Free JSON Tools for Developers →

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service