JSON and CSV represent data differently
JSON supports nested objects, arrays, booleans, numbers, null values, and structured relationships. CSV is a flat table of rows and columns. Conversion is straightforward when the JSON root is an array of similarly shaped objects, but nested or inconsistent records require decisions about how columns should be created.
[{"name":"Ada","team":"QA","active":true},{"name":"Sam","team":"Design","active":false}]This example maps cleanly to three CSV columns. An address object or an array of tags does not.
Prepare and validate the source
- Work on a copy when the JSON is important.
- Validate syntax and fix the first parser error before conversion.
- Confirm which array contains the records you need.
- Remove secrets and personal data that should not enter a spreadsheet.
- Inspect several records for missing keys or changing value types.
The invalid JSON checklist covers common quote, comma, bracket, and escape problems.
Decide how to flatten nested fields
A converter may turn address.city into a column name, serialize a nested object as text, or omit unsupported structures. Arrays might be joined into one cell or expanded into repeated rows. There is no universally correct result; choose based on how the CSV will be analyzed.
| JSON value | Possible CSV treatment |
|---|---|
| Missing property | Empty cell |
| Nested object | Flattened columns such as address.city |
| Short tag array | Joined text in one cell |
| Repeated transaction array | Separate row per transaction |
Convert and inspect the CSV
- Open the validated JSON file in the conversion tool.
- Select CSV output and review any flattening options.
- Save to a new filename.
- Open the CSV as plain text first and confirm the header and quoting.
- Then open it in the destination spreadsheet or analysis tool.
- Compare row counts and sample values with the source JSON.
JSON Viewer & Formatter supports JSON validation, formatting, minification, and export to CSV or XML on Windows.
Avoid spreadsheet interpretation errors
Spreadsheet software may reinterpret long IDs as numbers, remove leading zeroes, convert date-like text, or display formula-like values unexpectedly. Import the CSV with explicit column types when identifiers must remain exact. Treat CSV files from untrusted sources cautiously, especially when cells begin with formula characters.
Explore JSON Viewer & Formatter for Windows
This guide answers the workflow first. Review the verified features and screenshots on the Megaish product page before continuing to the Microsoft Store.
View features and screenshotsCommon questions
Can every JSON file be converted to CSV?
Most JSON can be transformed somehow, but deeply nested or irregular structures may require flattening rules or multiple related tables.
Why are some CSV cells empty?
Records may not contain the same properties, or null and missing values may be exported as empty cells. Compare those rows with the source.
Will JSON data types stay intact in CSV?
CSV does not carry JSON type metadata. The receiving spreadsheet or program may infer numbers, dates, and text differently.