Summary
- CSV has rows and cells, while JSON can contain nested objects, arrays and types; conversion requires explicit representation choices.
- Compact JSON cells remain the default. Opt-in flatten mode creates columns from nested object paths; arrays stay in cells and never expand into extra rows.
- Missing fields and null both become empty cells, so keep the source JSON when that distinction matters.
- CSV quoting preserves commas, quotes and line breaks structurally, but it does not preserve spreadsheet column types or neutralize every formula risk.
Start with the record array that should become rows
The converter accepts a nonempty JSON array of objects. Each object becomes one row, and the union of keys becomes the columns in first-seen order. A wrapper such as {"data":[...],"total":2} is not guessed or unpacked automatically; select its records array first.
Run syntax checks in the JSON formatter before converting. Valid JSON is not the same as valid business data or JSON Schema compliance, but fixing syntax first makes conversion errors easier to interpret.
Inspect one small transformation before exporting everything
Use strings for identifiers that must retain leading zeroes. In this example, id is text, active is a JSON boolean and details is a nested object.
The current converter quotes every field, doubles quotes inside the nested JSON text and writes CRLF row endings. The comma in Ada's name stays inside one cell. The second record has no details key, so its last cell is empty.
Tested JSON input and exact CSV output
[{"id":"0012","name":"Ada, A.","active":true,"details":{"team":"Web"}},{"id":"0013","name":"Bo","active":false}]
"id","name","active","details"
"0012","Ada, A.","true","{""team"":""Web""}"
"0013","Bo","false",""The output was reproduced with Abbolo's current conversion engine. The displayed block omits only the file's final CRLF.
Choose what nested values mean in a flat table
A CSV cell has no native JSON object or array type. Keep compact JSON cells by default, reject nested values, or explicitly choose Flatten to expand nested object fields into columns such as details.team. Arrays remain compact JSON in one cell; no rows are duplicated or expanded.
Flattening is useful when you need a separate column for each object field. Literal keys containing dots, spaces or punctuation use quoted bracket notation, so a literal a.b key stays distinct from nested a then b. Empty objects remain compact JSON cells. Check the complete header row before importing.
| Input situation | Current export | Information to keep separately |
|---|---|---|
| Nested object or array | Compact JSON cell, opt-in object flattening, or explicit rejection; arrays stay in cells | The intended relational shape |
| Key missing from one record | Empty cell | Whether the field was absent |
| Key present with null | Empty cell | Whether the value was explicitly null |
| Boolean or number | Textual cell value | The original JSON type |
Protect identifiers before a spreadsheet interprets them
CSV does not carry a column type. A raw file can contain "0012", but spreadsheet software may still display 12 when the file is opened directly. Long digit strings can also be changed or shown in scientific notation. Quote identifiers as JSON strings before conversion, then import the CSV column as Text.
Microsoft documents using Data > From Text/CSV and changing the relevant column's data type to Text. Its current import settings also describe controls for leading zeroes and numbers longer than 15 digits. These are spreadsheet import decisions, not properties the CSV converter can guarantee.
Abbolo rejects JSON integer values outside JavaScript's safe integer range. Once a parser has rounded an unsafe numeric literal, a CSV export cannot reconstruct the original digits; represent such identifiers as JSON strings at the source.
Quoting fields does not make formulas harmless
RFC 4180-style quoting keeps delimiters, double quotes and line breaks inside the correct field. Spreadsheet programs can still interpret a quoted value beginning with a formula trigger as a formula.
The converter prefixes formula-like string cells and headers with an apostrophe by default and reports how many values changed. This deliberately changes the exported text. It reduces one class of spreadsheet risk, but it is not a universal guarantee across applications, import modes and later file transformations. Numeric -12 is exported as a number-like value; the string "-12" is treated conservatively.
Keep untrusted formula execution disabled, inspect exports and use a controlled import. OWASP describes CSV or formula injection as a risk when untrusted input is embedded in spreadsheet-compatible exports.
Use BOM and delimiter options for compatibility, not type safety
Comma, semicolon and tab are output choices because regional and application settings differ. All fields remain quoted. A UTF-8 byte-order mark can help some Excel workflows recognize Unicode when opening a CSV, and Microsoft documents that behavior.
A BOM does not preserve leading zeroes, dates or JSON types. Likewise, switching to TSV changes the separator, not the semantics of each cell. Preview the imported table before treating it as the source of record.
Know the current browser limits
The current tool limits input to 1 MiB, 10,000 records, 200 distinct columns, 200,000 output cells, 32 nested levels and 8 MiB of CSV. A dedicated worker starts only when conversion begins, stops on cancellation and is terminated after five seconds. Failed or cancelled work does not retain a stale download.
File reading and conversion happen in the browser. Input content is not placed in the URL or browser storage and is not sent to a conversion service. The page still loads normal site resources, including the worker and the site's advertising and consent code.
For streaming, multi-gigabyte input, schema validation, array-to-row expansion or a typed lossless format, use a local data pipeline designed for that job. Keep the original JSON beside any CSV export.
A practical review sequence
First, reduce the input to a few representative records: one complete record, one missing an optional key, one nested value, one identifier with leading zeroes and one formula-like string if untrusted data is possible. Convert it with the same options planned for the full file.
Second, inspect the raw CSV in a text editor and compare the row, column and mitigation counts. Third, import through the spreadsheet's data-import controls, explicitly set identifier columns to Text and check Unicode, missing values and nested cells. Only then export the bounded full data set.
For syntax and structural comparison tasks, use the JSON formatting guide and diff checker. A text diff can show changed serialization, but it cannot prove two JSON documents have the same business meaning.
Read the JSON formatting and validation guide
Frequently asked questions
Can Abbolo flatten nested JSON into dotted columns?
Yes, when you explicitly choose Flatten. Nested object fields become path-named columns; ambiguous literal keys use quoted bracket notation. Arrays remain compact JSON cells. Compact JSON is still the default, and reject mode remains available.
Why did a leading zero disappear after opening the CSV?
The raw CSV may contain the zero while the spreadsheet interprets the field as a number. Store the identifier as a JSON string and import that CSV column as Text.
Are missing fields and null values preserved differently?
No. Both become empty cells in the current export. Keep the original JSON if that distinction matters.
Does adding a UTF-8 BOM make the CSV safe for Excel?
No. A BOM can help encoding recognition, but it does not preserve types, prevent date or number conversion, or neutralize every formula risk.
Is the apostrophe prefix complete formula-injection protection?
No. It changes suspicious string cells and reduces risk in common imports, but behavior varies by spreadsheet and later transformations. Inspect and control untrusted imports.

