100% In-Browser Memory

Free JSON to CSV Converter

Use JSON to CSV online to turn supported JSON data into rows and columns. Convert JSON to CSV format, review the table preview, and download a CSV for spreadsheets or data tools.

Drop your JSON file here or browse
.json,application/json•Accepts arrays of objects or raw JSON data

How to Convert JSON to CSV & Why Flatten API Data

Flatten JSON arrays into readable spreadsheets

Most modern APIs and database exports output JSON arrays. But if a client, accountant, or stakeholder wants to view the data in Excel or Google Sheets, handing them a raw .json file doesn't help.

This flattener collects all unique keys across your objects and organizes them into standard CSV columns. If some objects are missing certain keys, it automatically fills those cells with blanks so your columns stay neatly aligned without shifting.

Quick 3-step conversion

  1. STEP 1Select your JSON file: Upload a .json export from an API response, database backup, or local directory.
  2. STEP 2Review key union preview: Check the live 10-row preview to verify how object keys were mapped into table headers.
  3. STEP 3Download standard CSV: Click "Convert to CSV" to download a clean, RFC 4180-compliant UTF-8 CSV spreadsheet.

Heterogeneous objects & browser privacy

Real-world JSON data is frequently heterogeneous: some records contain optional properties that other records omit. The engine performs a union of all top-level keys across every object in the array, inserting empty strings for missing properties so columns stay aligned.

All computation executes locally inside your browser memory, so sensitive API responses containing customer personal information or API secrets are processed with 100% data privacy.

See the columns before JSON becomes CSV

Nested objects become dotted columns, while arrays of objects become one-to-many rows that a flat table cannot hold. Paste a response and map every path to a column.

Arrays of objects are flagged as one-to-many. The converter has to choose between extra rows, joined text, or dropping the field.

JSON pathTypeExampleCSV plan
Loading…

Flatten JSON records into a usable table

Start with records that share a shape

CSV works best when each record has the same set of fields. JSON can represent nested objects, arrays, and mixed value types, so flattening it requires choices about structure. For an array of objects, a converter can collect property names across the records and make them columns.

Missing, null, and nested values

JSON distinguishes a missing property from a property whose value is null, while CSV offers only cells and text. Empty cells may therefore represent several different source states. Decide whether those distinctions matter before importing the table into another system.

Validate the CSV for its next use

The resulting table is useful for spreadsheet review, bulk import, and basic analysis, but it does not carry JSON types or nesting. Numeric-looking values are text in CSV until the receiving application interprets them. Long identifiers, leading zeroes, booleans, and dates deserve a careful spot check.

JSON to CSV FAQ

Learn about JSON structures, key normalization, and private data handling.

How do I convert JSON data to a CSV file?

Select a JSON file and review the flattened table preview. The converter supports arrays of objects, arrays of arrays with a header row, a single object, and objects containing an array value. It uses the discovered fields as columns; download the CSV and check nested values before using it.

Can JSON objects with different keys become CSV columns?

Yes. For an array of objects, the converter collects the keys it finds across the records and creates a column for each key. A record without a particular key gets an empty cell in that column. This makes a rectangular table, but you should check the resulting column set before importing it elsewhere.

How are nested JSON objects represented in CSV?

Nested objects and arrays are serialized as JSON text inside the corresponding CSV cell. CSV has no native nested structure, so the output does not create additional rows or linked tables for those values. If your destination needs separate columns or records, reshape the JSON first or transform the CSV after conversion.

Does JSON to CSV preserve numbers, booleans, and null values?

Values are converted to text for the CSV table. Numbers and booleans appear as their text forms, while null or missing values become empty cells; nested values are serialized as JSON strings. CSV does not carry a type schema, so the receiving application must interpret each column deliberately.

Can I convert a JSON object that is not an array?

Yes. A single JSON object becomes a one-record table, and an object containing an array uses the first array value found. An array of arrays is treated as a header row followed by data rows. Review the preview because these shapes can imply different headers and records.