Agenvix Enterprise Suite
Data Conversion Studio

JSON to CSV Converter (and CSV to JSON)

Convert JSON arrays, nested objects and NDJSON logs to RFC 4180 CSV with dot-notation flattening, Excel-friendly BOM and delimiters, then convert CSV back to typed JSON. Files never leave your browser.

How It Works
Nested Flattening
Excel-Ready Output
Two-Way Conversion
Zero Server Logs
Agenvix Studio v2.0
RFC 4180 Output3 rows • 8 columns
Input:
[{ "id": 1, "address": { "city": "London" } }, …]
Columns:
id, name, email, address.city, address.zip, tags, active
Row 1:
1,Ada Lovelace,[email protected],London,N1,"math; poetry",true
● UTF-8 BOM optionalQuotes escaped ✓
Quick Test Presets:Click to load
UTF-8 BOM optional
100% Free

JSON ⇄ CSV Workspace

Paste JSON or CSV, adjust the delimiter and flattening options, then copy or download the result.

CSV output
id,name,email,address.city,address.zip,tags,active
1,Ada Lovelace,[email protected],London,N1,math; poetry,true
2,Grace Hopper,[email protected],New York,10001,navy; cobol,false
3,"Linus ""Tux"" Torvalds",,Portland,,,true
Rows
3
Columns
7
Bytes
220
Valid JSON converted. Values containing delimiters, quotes or line breaks were quoted per RFC 4180.
Table preview (first 20 rows)
idnameemailaddress.cityaddress.ziptagsactive
1Ada Lovelace[email protected]LondonN1math; poetrytrue
2Grace Hopper[email protected]New York10001navy; cobolfalse
3Linus "Tux" TorvaldsPortlandtrue

Why Developers Use the Agenvix JSON to CSV Converter

Handles the messy real-world cases that break naive converters.

Nested Data Done Right

Objects become dot-notation columns (address.city), arrays of objects become indexed columns, and scalar arrays can be joined or kept as JSON.

Opens Cleanly in Excel

Optional UTF-8 BOM keeps accents intact, semicolon delimiters suit European locales and CRLF line endings match Windows expectations.

Round-Trip Capable

CSV to JSON parses quoted fields and escaped quotes per RFC 4180, infers numbers and booleans, and can rebuild nested objects from dot-notation headers.

Private by Default

Exports with customer records or API responses are converted locally. Nothing is uploaded, nothing is logged.

Simple as 1-2-3

How the Converter Works

From API response to spreadsheet in three steps.

01

Paste Your Data

JSON arrays, a single object, an object wrapping an array, or newline-delimited JSON are all detected automatically.

02

Tune the Output

Pick the delimiter, decide how nested objects and arrays are represented, and enable BOM or quote-all for picky importers.

03

Preview and Download

Check the table preview, then copy the text or download a .csv or .json file.

Conversion Rules

Conversion Specifications

How each JSON construct is represented in CSV.

Feature / SpecificationBest Use CaseEngine / Output StandardPrivacy & SecurityPerformance RatingAction
Array of objectsAPI responses, exportsOne row per object, union of keys100% LocalNative
Nested objectsaddress.city, meta.createdDot-notation flattening100% LocalFlatten
Scalar arraystags, categoriesJoined with ; or JSON string100% LocalChoice
Arrays of objectsitems[0].skuIndexed columns100% LocalFlatten
Quoting & escapingCommas, quotes, newlines in valuesRFC 4180 double-quote rules100% LocalCompliant
NDJSON / JSON LinesLogs, streaming exportsAuto-detected100% LocalSupported
CSV → JSONSpreadsheet to API payloadTyped values, nested rebuild100% LocalReverse
Comprehensive Guide

Converting JSON and CSV Without Data Loss

1. Why JSON and CSV do not map 1:1

JSON is a tree with types; CSV is a flat grid of strings. Converting means deciding how to represent nesting, arrays, nulls and booleans. This converter flattens objects to dot-notation columns, expands arrays of objects to indexed columns such as items[0].sku, and lets you choose whether scalar arrays are joined with semicolons or kept as JSON text. Rows missing a key simply get an empty cell, so heterogeneous arrays convert cleanly.

2. Making the file open correctly in Excel and Sheets

Excel guesses encoding and delimiter from the system locale. Two settings prevent most support tickets:

  • Enable the UTF-8 BOM so accented characters and emoji are decoded correctly on Windows.
  • Use a semicolon delimiter for locales where the comma is the decimal separator (most of Europe).
  • Google Sheets and most programming libraries prefer plain UTF-8 commas; leave BOM off for them.

3. RFC 4180 quoting rules

A field containing the delimiter, a double quote or a line break must be wrapped in double quotes, and any double quote inside it is doubled. The converter applies these rules automatically and the CSV parser reverses them, so values like Hopper, Grace and multi-line notes survive the round trip. Quote-all mode wraps every field for importers that require it.

4. Going back from CSV to typed JSON

CSV has no types, so the reverse conversion infers them: numeric strings become numbers, true and false become booleans and empty cells become null. Turn type inference off when IDs or postal codes have leading zeros. If the headers use dot notation, nested rebuild recreates the original object structure.

Frequently Asked Questions

Everything you need to know about JSON ⇄ CSV

Nesting, Excel compatibility, limits and privacy.

How are nested JSON objects converted to CSV?

With flattening enabled, nested keys are joined with dots, so {"address":{"city":"London"}} becomes a column named address.city. Arrays of objects get indexed names like items[0].sku. With flattening off, nested values are written as JSON strings in a single cell.

What happens when objects have different keys?

The header is the union of every key in the order first seen. Rows that lack a key get an empty cell, so mixed arrays convert without errors.

Why does Excel show strange characters?

Excel on Windows assumes a legacy encoding unless the file starts with a UTF-8 byte order mark. Enable the UTF-8 BOM option and the accents will display correctly.

Can I convert NDJSON or JSON Lines?

Yes. If the input is not valid JSON but every non-empty line is a JSON object, the converter treats it as newline-delimited JSON automatically.

Does the CSV to JSON mode handle quoted commas?

Yes. The parser follows RFC 4180, so quoted fields may contain delimiters, line breaks and doubled quotes. Unterminated quotes produce a clear error instead of corrupt output.

Are numbers and booleans preserved?

JSON to CSV writes them as plain text. CSV to JSON infers numbers, booleans and null by default; disable type inference to keep every value as a string, for example postal codes with leading zeros.

Is there a file size limit?

Conversion runs in the browser, so files of several megabytes convert in well under a second on a modern laptop. Extremely large files are limited only by the memory available to the tab.

Is my data uploaded?

No. Parsing and conversion happen entirely in your browser; Agenvix never receives or stores your JSON or CSV.