JSON to CSV Converter.
Convert structured JSON documents or JSONLines lists into flat CSV sheets. Automatic object flattening, custom delimiter selection, and configurable array formatting.
Input JSON
Output CSV
Conversion Error
Details of the parser error...
Conversion Metrics
Next Steps
JSON to CSV Developer Reference.
FreeJSONtoCSV provides a secure, client-side utility to parse JavaScript Object Notation (JSON) hierarchical structures and compile them into tabular Comma-Separated Values (CSV) files. By delegating all parsing operations in-memory to background Web Workers, your data never leaves your machine—ensuring 100% security for sensitive datasets.
What is JSON (RFC 8259)?
JSON is a text-based, language-independent syntax for representing nested data structures, keys, and values. It is widely used in API payloads and database storage.
What is CSV (RFC 4180)?
CSV represents tabular data where rows are delimited by newlines and column cells are delimited by commas, semicolons, or tabs. It is the standard format for spreadsheet engines like Excel.
How to Convert JSON to CSV:
- Input Data: Paste your raw JSON array/object or drag-and-drop a
.json/.jsonlfile directly into the input editor. - Configure Options: Toggle nested object flattening (to convert properties like
user.nameto columns) and customize delimiters (comma, tab, semicolon). - Download or Copy: The output CSV sheet is compiled instantly. Click Download CSV to save the file locally, or copy the values to clipboard.
Nesting & Dot-Notation Flattening
Relational databases and spreadsheets cannot handle nested JSON hierarchies natively. Our parser maps child properties (e.g. {"profile": {"email": "john@example.com"}}) into flat tabular headers using dot-notation (profile.email) automatically, preserving structural integrity. For a deep-dive on converting root arrays, flat lists, and object arrays, read our developer guide on JSON Array to CSV.
Common Mistakes
- Mismatched JSON syntax: Missing quotes or trailing commas in arrays will trigger syntax errors. Validate your input via the JSON Validator first.
- Excel character corruption: Microsoft Excel may strip leading zeroes or misformat phone numbers in raw CSV imports. Use our CSV Viewer to inspect the output exactly as compiled.
Technical Limitations
- Local Memory Boundary: Because conversion runs 100% locally in-memory, files larger than 100MB may hit browser thread memory caps. For larger files, command-line utilities like
jqare recommended.
[
{
"id": 1,
"user": { "name": "Alice" },
"role": "Admin"
}
]id,user.name,role
1,Alice,AdminFrequently asked questions.
Can I convert JSON to CSV?
.json or .jsonl file to instantly generate and download a clean CSV sheet. The conversion happens entirely locally in your browser, guaranteeing 100% privacy.How do I convert JSON to Excel?
How to pass JSON in CSV?
""value""), and enclose the entire field in quotes. Our [JSON to CSV Converter](/json-to-csv/) can also automatically flatten nested JSON fields into flat columns using dot-notation (e.g., user.name).Is CSV a JSON file?
How do I create my own JSON file?
.json extension. The text must follow valid JSON syntax rules. To check your syntax, use our [JSON Validator](/json-validator/).How accurate is the converter?
How to convert JSON to CSV using Excel?
Are there any limitations to the converter?
How do I convert JSON to CSV using Python?
json and csv modules, or the pandas library. In Pandas, read the JSON string or file using df = pd.read_json('file.json') and export it to CSV using df.to_csv('file.csv', index=False).How can I convert JSON to CSV using jq?
jq, you can use the raw output filter to map object values into an array and feed it to the @csv formatter. For example: jq -r '.[] | [ .id, .name, .email ] | @csv' input.json > output.csv.