Free JSON to CSV & CSV to JSON Converter
Convert between JSON and CSV in seconds. Supports nested object flattening, custom delimiters (comma, semicolon, tab, pipe), auto-detection, and type coercion. Everything runs in your browser — no upload, no server.
Options
Press Cmd/Ctrl + Enter to convert
How to Convert JSON to CSV
- Select the JSON → CSV tab.
- Paste a JSON array (or a single JSON object) into the input, or click Load Example.
- Choose a delimiter — comma is the universal default.
- Click Convert to CSV or press
Cmd / Ctrl + Enter. - Copy the output or click Download to save as a
.csvfile.
How to Convert CSV to JSON
- Select the CSV → JSON tab.
- Paste your CSV data into the input field.
- The delimiter is auto-detected from the first line. Disable this to choose manually.
- Toggle Parse numeric strings as numbers and Parse “true”/“false” as booleans to get correctly typed JSON values.
- Click Convert to JSON — the output is a formatted JSON array. Download as
.jsonor copy with one click.
Nested Object Flattening
When converting JSON to CSV, nested objects are automatically flattened using dot notation. For example:
// Input JSON
{ "user": { "name": "Alice", "age": 30 }, "active": true }
// Output CSV headers
user.name,user.age,active
// Output CSV row
Alice,30,trueArrays inside objects are converted to their string representation (e.g., [1,2,3]).
CSV Delimiter Reference
| Delimiter | Character | Common Use Case |
|---|---|---|
| Comma | , | Default CSV — Excel, Google Sheets, most tools |
| Semicolon | ; | CSV exports from European locales (where , is decimal) |
| Tab | \t | TSV (Tab-Separated Values) — useful when values contain commas |
| Pipe | | | Legacy data exports, custom pipelines |
Frequently Asked Questions
What JSON structure is supported?
The JSON input must be either:
- An array of objects:
[{"a": 1}, {"a": 2}] - A single object:
{"a": 1, "b": 2}(treated as a one-row CSV)
Arrays of primitives (e.g., [1, 2, 3]) are not supported.
What happens if rows have different keys?
The tool performs a union of all keys across all objects. If a row is missing a key, the corresponding CSV cell will be empty.
Is quoted CSV supported in CSV → JSON?
Yes. RFC 4180-style quoting is fully supported: cells can be wrapped in double quotes, and double-quote characters inside a quoted cell must be escaped by doubling them ("").
Is my data private?
Yes. All conversion logic runs entirely in your browser using JavaScript. No data is ever sent to a server.