Online JSON to CSV Converter for Excel

Free online JSON to CSV converter with live table preview. Auto-flattens nested objects, follows RFC 4180 escaping, and exports UTF-8 BOM CSV for Excel.


  
  

How to Quickly Convert a JSON Array from an API into a CSV / Excel Table

When doing data validation, operational exports, or troubleshooting bulk API results, you often need to send a JSON array of objects to colleagues for review in Excel or Google Sheets. Organizing it by hand is slow and error-prone. With this tool it takes only three steps:

  1. Paste a JSON array of objects (such as [{"id":1,"name":"demo"}, ...]); a single JSON object is also supported and becomes a one-row table;
  2. Optionally enable "Flatten nested fields (a.b)" to automatically flatten nested objects into flat columns;
  3. Click "Convert to CSV and table" to instantly preview the table below, copy the CSV text with one click, or download an Excel-compatible .csv file.

Nested Flattening and Special Character Rules

  • RFC 4180 standard escaping: if a cell contains a comma ,, a double quote ", or a newline, the tool automatically wraps it in double quotes and escapes inner double quotes as "", preventing column shifts after importing into Excel.
  • Array fields preserved: nested sub-arrays inside an object are kept as compact JSON strings in the same cell, so the row structure is not broken.
  • Validate before exporting: if the source data is not valid JSON or contains backslash escapes, clean it first with JSON Formatter & Beautifier or JSON Minifier & Unescape, then convert.

Local Privacy Notes

JSON parsing, table rendering, and CSV file generation all happen in your browser's local memory. It is suitable for files containing internal metrics, order lists, or debug data, and nothing is uploaded to any server.

Frequently Asked Questions

Why does the downloaded CSV open cleanly in Excel without garbled UTF-8 characters?

When you click "Download .csv", the tool prepends a UTF-8 BOM (\uFEFF) header so Excel on Windows and macOS automatically detects UTF-8 encoding for accented characters, symbols, emojis, and non-Latin text.

How are nested objects (such as user.name) handled?

With "Flatten nested fields" enabled by default, multi-level objects are automatically expanded into dot-notation column names (for example env.region, env.ok). Uncheck it to keep the raw JSON string in a single cell instead.

What happens if the objects in the array don't all have the same fields?

The tool automatically merges every key name that appears across all records into a complete header. When a record lacks a key, the corresponding cell is left empty, so no column is lost.