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.
JSON ⇄ CSV Workspace
Paste JSON or CSV, adjust the delimiter and flattening options, then copy or download the result.
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
| id | name | 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 |
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.
Paste Your Data
JSON arrays, a single object, an object wrapping an array, or newline-delimited JSON are all detected automatically.
Tune the Output
Pick the delimiter, decide how nested objects and arrays are represented, and enable BOM or quote-all for picky importers.
Preview and Download
Check the table preview, then copy the text or download a .csv or .json file.
Conversion Specifications
How each JSON construct is represented in CSV.
| Feature / Specification | Best Use Case | Engine / Output Standard | Privacy & Security | Performance Rating | Action |
|---|---|---|---|---|---|
| Array of objects | API responses, exports | One row per object, union of keys | 100% Local | Native | |
| Nested objects | address.city, meta.created | Dot-notation flattening | 100% Local | Flatten | |
| Scalar arrays | tags, categories | Joined with ; or JSON string | 100% Local | Choice | |
| Arrays of objects | items[0].sku | Indexed columns | 100% Local | Flatten | |
| Quoting & escaping | Commas, quotes, newlines in values | RFC 4180 double-quote rules | 100% Local | Compliant | |
| NDJSON / JSON Lines | Logs, streaming exports | Auto-detected | 100% Local | Supported | |
| CSV → JSON | Spreadsheet to API payload | Typed values, nested rebuild | 100% Local | Reverse |
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.
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.
Related Developer Utilities
Discover companion utilities engineered for zero-log speed and browser-side execution.
JSON Formatter & Validator
Prettify, format, repair syntax errors, and convert raw JSON data strings into trees.
Text Diff Checker
Compare two text blocks with LCS line matching, word level highlighting and similarity scoring.
Remove Duplicate Lines
Deduplicate, sort, trim and clean lists of lines with case-insensitive matching and instant statistics.
HTML Entity Encoder
Escape reserved HTML characters or resolve named and numeric entities back to plain text.
Base64 Encoder & Decoder
Convert text, strings, or images into Base64 Data URIs with zero server logging.
UUID v4 Generator
Mint RFC 9562 random identifiers in bulk with version validation.
More in Code & Data
Specialized utilities within the same technical domain
