Free JSON ↔ CSV Converter

Convert a JSON array of records into aligned CSV columns or turn a CSV back into string-safe JSON objects locally in your browser—with explicit nested-key rules and lossless long-number handling.

JSON to CSV Converter

Browser-local processing

Drop a JSON array of records or paste JSON

Flattens nested objects by dot key (address.city), serializes arrays to JSON strings, turns null/missing keys into blank CSV cells, and keeps long numbers exact.

JSON array or UTF-8 CSV · Up to 25 MB, 500 columns, and 2,000,000 cells per file

Raw data stays in this browser. Only optional post-download email signups and privacy-safe usage metadata are submitted to the API.
Two-way lossless conversion

Convert JSON and CSV without silent corruption.

Predictable rules for nested keys, nulls, arrays, leading zeros, and 64-bit numbers.

Explicit JSON → CSV flattening

Requires an array of JSON objects, aligns keys in first-seen order, flattens nested objects with dot notation (address.city), stringifies arrays, and converts null or missing keys to empty CSV cells.

Exact long JSON numbers

Reads raw numeric JSON tokens directly rather than coercing through IEEE-754 float64, keeping 16+ digit identifiers (such as 9007199254740993) intact without last-digit rounding.

String-safe CSV → JSON

Emits every CSV cell as a JSON string instead of guessing integers or booleans, preventing leading-zero IDs (00123) and postal codes (02108) from losing formatting.

Documented behavior

Explicit boundaries,
zero hidden guesswork.

25 MB · 500 columns · Array-of-objects root required

Deeply nested arrays of objects are kept serialized inside a single JSON string cell rather than multiplying CSV rows inconsistently across parents.

CSVs containing blank or duplicate column headers are rejected before generating JSON objects so keys never silently overwrite one another.

FAQ

Questions about JSON & CSV conversion.

What JSON root shape does JSON → CSV accept?

It accepts a non-empty JSON array of objects (for example, [{"id":"00123"}]). Primitive roots, scalar arrays like ["not","an","object"], or single non-array objects return an explicit error.

How are nested objects, arrays, missing keys, and null handled in JSON → CSV?

Nested plain objects flatten into dot-notation headers such as address.city and address.zip. Arrays serialize as compact JSON strings (like ["lead","vip"]). Missing keys across inconsistent objects and null values become blank cells ("").

Why does CSV → JSON output all fields as strings?

In CSV files, there is no schema telling whether 00123 or 02108 is a string identifier or a numeric quantity. Keeping cells as JSON strings prevents silent truncation of leading zeros and large 64-bit identifiers.

What are the enforced input limits?

Files or pasted payloads up to 25 MB, 500 aligned columns/keys, and 2,000,000 projected cells per conversion.

Next steps

Continue preparing your converted dataset.