Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
CSV to JSON ConverterJSON Schema GeneratorTOML to JSON ConverterRandom JSON GeneratorText Column Extractor
Home Page > Text Tools > Other Text Tools

JSON to CSV Converter

Turn structured JSON into a spreadsheet-friendly table with MiniWebtool’s JSON to CSV Converter. Select an array within nested data, preview discovered columns, and choose flattening and delimiter options before producing the CSV.

Need help using this tool? Ask AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

3 free uses dailyNo sign-up requiredInstant Results
JSON to CSV ConverterTry it now — free ▼
⚡ Quick Samples
0 chars · 0 lines
Drill into wrapped responses. Use dots for keys and brackets for indices: data.users, results[0].rows. Leave empty to auto-detect.
Uncheck to output data only.

Embed JSON to CSV Converter Widget

About JSON to CSV Converter

Welcome to the JSON to CSV Converter, a free online tool that flattens any JSON payload — flat arrays, nested objects, deeply wrapped API responses — into clean, spreadsheet-ready CSV. Most online converters only handle the trivial case of [{...}, {...}] at the root and choke when your JSON looks like {"data": {"items": [...]}}. This tool does smart auto-detection of the tabular array, exposes a JSONPath-style selector for unusual shapes, and gives you two flattening modes (dot and bracket) plus a schema preview so you know exactly what columns will land in your spreadsheet before you download.

At a Glance

JSON to CSV Converter turns JSON into a flat table you can open in a spreadsheet. It finds the array of records inside wrapped data, flattens nested fields, previews the columns, and lets you choose delimiter and quoting.

JSON to CSV Converter: features at a glance
FeatureWhat you getGood for
Array selectionDetects the largest table-like array in the JSON automatically, or enter a path such as data.results to target one. A single object becomes a one-row CSV.API responses wrapped in status and paging fields
Flattening modesDot notation (a.b.c), bracket arrays (a.b[0]) with one column per element, or keep nested values as JSON text in one cell.Choosing how nested objects and arrays become columns
Schema and previewLists the discovered columns with type badges (string, integer, number, boolean, mixed) and shows the first 8 rows as a table.Checking columns before you download
DelimitersComma, semicolon, tab (TSV), pipe or any single custom character.European spreadsheets that expect semicolons, or TSV imports
Quoting and line endingsQuote minimally (RFC 4180), quote all fields, quote non-numeric fields, or never quote. Use LF or CRLF line endings.Data containing commas or line breaks, and Excel on Windows
Header row and samplesInclude or omit the header row. Load a sample payload: flat array, wrapped response, nested objects, GitHub-style API or weather forecast.Trying the options on example data
Copy and downloadCopy the CSV to the clipboard or save it as a .csv file, with statistics about the conversion.Moving results into a spreadsheet or database import

What is the JSON to CSV Converter Used For?

JSON is the lingua franca of web APIs and modern data pipelines, while CSV is still king for spreadsheets, BI dashboards, and data analysis tools. Converting from one to the other is one of the most common chores in a data engineer's day. Typical use cases include exporting an API response into Excel for stakeholders, preparing JSON dumps for import into Postgres or BigQuery, feeding JSON logs into Pandas or R for analysis, and quickly scanning a noisy nested response in a friendlier tabular form.

How Does the Converter Handle Nested Objects and Arrays?

Real-world JSON is rarely flat. The converter's flattening engine handles the two main shapes intelligently:

Nested Objects → Dot Notation

An object inside an object becomes a dotted column name. So a record like {"id": 1, "address": {"city": "Tokyo", "zip": "100-0001"}} produces three columns: id, address.city, address.zip. This convention is used by Pandas json_normalize, Splunk, Elasticsearch, and dozens of other tools — your downstream pipelines will already understand it.

Nested Arrays → Two Strategies

Arrays of scalars (e.g. "tags": ["red", "blue"]) and arrays of objects (e.g. "orders": [{...}, {...}]) get different treatment depending on the chosen flatten mode:

Input JSON [{"id": 1, "name": "Alice", "address": {"city": "Tokyo"}, "tags": ["admin", "designer"]}] Output (dot mode) id,name,address.city,tags 1,Alice,Tokyo,admin|designer Output (bracket mode) id,name,address.city,tags[0],tags[1] 1,Alice,Tokyo,admin,designer

What is the JSONPath Selector For?

Most public APIs wrap their data in extra metadata: status codes, paging info, request IDs. A typical response looks like:

{"status":"ok","page":1,"data":[{"sku":"A001","title":"Notebook"}, ...]}

Auto-detection will usually find the inner array, but for unusual or deeply nested shapes you can supply the path explicitly. The selector supports dotted keys and bracketed numeric indices:

Does It Produce Excel-Compatible CSV?

Yes. The default settings (comma delimiter, minimal quoting, header row, LF line endings) produce strict RFC 4180 output that opens cleanly in Excel, Google Sheets, Numbers, LibreOffice Calc, Pandas read_csv, R read.csv, and every database COPY FROM command. For European Excel locales that use semicolon as the field separator, switch the Delimiter dropdown to Semicolon. For Windows-native tooling that prefers \r\n line endings, switch Line Ending to CRLF.

How are Missing Fields Handled Across Rows?

JSON arrays often contain heterogeneous records — one object has a middle_name, the next does not. The converter walks every record and collects column names in first-seen order; any record missing a column gets an empty cell in that position. This is the same behavior as Pandas json_normalize and avoids silently dropping fields that only appear in some records.

Practical Use Cases

For Developers

For Data Analysts & Scientists

For Marketers & Operators

How to Use This Tool

  1. Paste JSON: paste your JSON into the input box, or click a Quick Sample chip to load a typical API payload.
  2. Pick the array: leave the JSONPath field empty to let the tool auto-detect the tabular array, or type a path like data.users to target a wrapped array.
  3. Choose flatten mode: select Dot notation for clean column names, Bracket arrays to expand each array element, or Keep nested as JSON to preserve sub-structures verbatim.
  4. Pick delimiter and quoting: select comma, semicolon, tab (TSV), pipe, or a custom character, then choose a quoting mode and line ending.
  5. Convert and review: click Convert to CSV. Inspect the schema panel and preview table, then copy the result or download it as a .csv file.

Tips for Best Results

Frequently Asked Questions

What happens if my JSON has multiple arrays?

Auto-detection picks the largest one that contains objects. If that's not the array you want, supply a JSONPath like orders or line_items to target the right one.

Can I convert a single JSON object instead of an array?

Yes — a single object becomes a one-row CSV with each top-level field as a column. The flattening rules still apply.

What about JSON with non-finite numbers (NaN, Infinity)?

Standard JSON does not allow these literals, but if your input contains them and parses successfully, they are converted to empty cells in the CSV output to keep the file valid.

Why are some boolean values rendered as true / false?

To keep the CSV human-readable. If your downstream tool needs 1 / 0, do a search-and-replace after download or process the JSON beforehand.

Does the converter validate that all records have the same shape?

No — heterogeneous records are handled gracefully (missing fields become empty cells). The schema panel surfaces type drift via the mixed badge so you can spot inconsistencies.

How big a JSON can I convert?

The tool comfortably handles JSON inputs up to a few megabytes in the browser and on the server. For very large datasets (tens of MB or more), prefer a streaming offline tool such as jq or a Python script with ijson.

Is my data sent to a server?

The conversion is performed on the MiniWebtool server to leverage Python's robust CSV writer and JSON parser. We do not log, store, or share your input. Responses are served with no-cache headers. For maximum confidentiality with sensitive data, prefer offline processing.

Additional Resources

Reference this content, page, or tool as:

"JSON to CSV Converter" at https://MiniWebtool.com/json-to-csv-converter/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: Apr 25, 2026

Chat with your favorite AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

Other Text Tools:

Top & Updated:

JSON to YAML ConverterAI Data Visualizer (Paste CSV)XML to JSON ConverterView all →
Home Page > Text Tools > Other Text Tools > JSON to CSV Converter