Omia

How to convert JSON to CSV, Excel or YAML

JSON is how apps and APIs hand over data, but most people want it in a spreadsheet, and config files often want YAML. Converting is easy when the JSON is a flat list of records; the real question is what each tool does with nested fields. Here are five ways. (We make Xiaoer Omia (xiaoeromia.com), option 4 — the others are described as fairly as we can.)

Last checked: November 2026

1. Excel: Get Data from JSON

In Excel, choose Data > Get Data > From File > From JSON. Excel imports the file with Power Query; from there you can keep the workbook or save it as CSV. Microsoft lists this for Excel for Microsoft 365 on Windows and Mac.

2. Python with pandas (free)

If you can run a little Python, the free pandas library flattens nested JSON with json_normalize (nested fields become columns such as address.city) and writes the result with to_csv or to_excel.

3. jq and yq on the command line (free)

jq turns arrays into CSV rows with its @csv filter, and yq converts JSON to YAML (yq -Poy data.json). Both are free, open-source command-line tools.

4. An offline viewer: Xiaoer Omia

Xiaoer Omia (xiaoeromia.com) is a desktop viewer for Mac and Windows. Open the .json, then Save As CSV, Excel (.xlsx) or YAML. Nested objects become their own columns, named like conditions.weather. Nothing is uploaded.

5. An online converter

Websites where you paste or upload JSON and download CSV, Excel or YAML.

What the CSV looks like

Here is what Xiaoer Omia saved from a small Visitors.json (ten records, each with a nested conditions object), opened again in Omia. Each record became a row, and conditions became two columns.

Visitors.csv open in Xiaoer Omia as a table with the columns date, time, visitors, conditions.weather and conditions.avg_stay_min
Visitors.csv in Xiaoer Omia: 10 rows, with conditions.weather and conditions.avg_stay_min as their own columns

Side by side

CSVExcel (.xlsx)YAMLNested fieldsWorks offlineCost
Excel (Power Query)Yes, save as CSVYesNoNot listedYesNeeds Excel
Python + pandasYesYesNot listedYes, json_normalizeYesFree
jq / yqYes, jq @csvNot listedYes, yqYou pick the fieldsYesFree
Xiaoer OmiaYesYesYesYes, as a.b columnsYes5 free conversions, then $19.90 once
Online converterUsuallyOftenOftenVariesNo, uploadedUsually free
A JSON file open in Xiaoer Omia on a Mac, with the Save As / Convert menu listing JSON copy, CSV, Excel and YAML
Option 4: Visitors.json in Xiaoer Omia on a Mac; Save As offers a JSON copy, CSV, Excel (.xlsx) and YAML
Try Omia · Apple Silicon Mac · IntelWindows More about the JSON viewer

FAQ

How do I convert JSON to CSV without code?

Open the file in a tool that does it for you: Excel (Data > Get Data > From File > From JSON, then save as CSV) or a viewer such as Xiaoer Omia (xiaoeromia.com), where you open the .json and Save As CSV. Online converters work too but upload the data.

How do I open JSON in Excel?

Use Data > Get Data > From File > From JSON; Excel imports the file with Power Query. Microsoft documents this for Excel for Microsoft 365, including on Mac.

What happens to nested JSON?

It depends on the tool. pandas' json_normalize and Xiaoer Omia turn nested objects into columns such as address.city. In jq you choose the fields for each column yourself.

Why won't my JSON convert to CSV?

CSV is a table, so the JSON needs to be a list of records: an array of objects with field names. A single object, or an array of plain values, has no rows and columns to map. Xiaoer Omia can still save that kind of JSON as YAML.

How do I convert JSON to YAML?

yq does it in one command (yq -Poy data.json). In Xiaoer Omia, open the .json and Save As YAML; the nesting is kept.

Are my files uploaded?

Not with options 1 to 4: they all run on your own computer. Online converters upload the data.

Related: How to open a JSON file · JSON viewer · How to open a CSV file · CSV viewer · Excel viewer · Excel to CSV · CSV to JSON · Markdown to PDF or Word · All guides · 150+ formats in one app