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

  1. Work on a copy when the JSON is important.
  2. Validate syntax and fix the first parser error before conversion.
  3. Confirm which array contains the records you need.
  4. Remove secrets and personal data that should not enter a spreadsheet.
  5. 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 valuePossible CSV treatment
Missing propertyEmpty cell
Nested objectFlattened columns such as address.city
Short tag arrayJoined text in one cell
Repeated transaction arraySeparate row per transaction

Convert and inspect the CSV

  1. Open the validated JSON file in the conversion tool.
  2. Select CSV output and review any flattening options.
  3. Save to a new filename.
  4. Open the CSV as plain text first and confirm the header and quoting.
  5. Then open it in the destination spreadsheet or analysis tool.
  6. 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 screenshots

Common 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.