JSON to CSV
Convert JSON records into quoted CSV while retaining original number text and spreadsheet formula protection.
Loading tool…
How to use JSON to CSV
Create a CSV table directly from JSON records, including long numeric IDs and precise decimals. Original number tokens are retained; columns use the record keys, missing values stay blank, and nested data remains compact JSON in a cell.
- Paste a non-empty JSON array of objects.
- Convert the records into a CSV table.
- Download the CSV and import it into your spreadsheet application.
Good to know
- Up to 5,000 records, 200 columns, 200,000 input characters, 20,000 final values, and 60 nesting levels. Numbers outside the finite JavaScript range remain unsupported.
- Nested objects and arrays are serialized in a single cell; they are not flattened.
- Column names and text cells with incomplete Unicode characters are rejected so the UTF-8 download cannot silently replace them. Valid emoji and literal backslash text remain supported; nested JSON cells keep JSON escapes.
- Cells beginning with formula-like prefixes receive a leading apostrophe for spreadsheet safety. Null and missing values both become blank cells.
- Original number tokens are retained, including long integers, decimal trailing zeros, exponents, and negative zero. Duplicate members keep their last value. Nested numbers remain unquoted JSON numbers; original JSON spacing and string-escape spelling are not retained.
- Formula protection adds an apostrophe to formula-like whole cells, including negative number text. CSV parsers retain that prefix, and spreadsheet import may round numbers or infer types. This exporter preserves numeric text, not spreadsheet types or arbitrary-precision calculations; review imports in the destination application.
Export missing fields and formula-like text safely
Paste this array of two records. Columns follow the first appearance of each key, missing fields become blank cells, and CSV quotation protects commas inside the message.
JSON array of objects
[{"id":"0012","message":"Hello, Ada","formula":"=2+2"},{"id":"0013"}]Quoted CSV
"id","message","formula" "0012","Hello, Ada","'=2+2" "0013","",""
- The leading apostrophe in the formula-like cell is intentional spreadsheet protection; CSV quotes alone do not prevent formula evaluation.
- JSON null and missing properties both become blank cells. Nested objects or arrays stay serialized inside one cell rather than being flattened.
- The download uses CRLF record separators. A spreadsheet may still infer types when importing IDs; choose a text column to retain leading zeroes.
Need an app-specific CSV export the free tools do not cover? Ask about an output schema with fixed columns or nested-field mapping. For a suitable task, we can quote a JavaScript/TypeScript patch, agreed regression cases and expected results, plus acceptance and run instructions. Ask about a paid data fix. Scope, fee, deadline and payment terms are agreed before work starts. We use AI assistance; this converter is our own work, not a customer project. Share only public or synthetic examples. This tool stays free.
Common questions
Why is there an apostrophe before some values?
It prevents spreadsheet software from treating a value such as =SUM(A1) as a formula. Import behavior varies, so review the data after importing.
How are columns ordered?
Columns follow their first appearance across the input records using JavaScript object-key order. Integer-like keys are enumerated numerically within each record; keys are not globally sorted.
Keep going with related tools
All developer →JSON Formatter
Format and indent valid JSON in your browser, with downloadable output and clear syntax errors.
DeveloperJSON to XML
Convert JSON into escaped, typed XML while preserving arbitrary object keys and array ordering.
DataJSON Parent and Child Array Unnester
Create a relational CSV from one explicit child array while retaining parent/child record provenance.
DataJSON Flattener
Flatten nested JSON into a JSON Pointer map of leaf values without ambiguous dotted keys.
DataEmbedded JSON Field Extractor
Append scalar JSON Pointer fields from JSON text stored in CSV records while preserving numeric source spellings.
TextCSL Citation Metadata Review
Review a clearly limited CSL JSON metadata profile and list unassessed fields without inventing bibliographic facts.