Convert ChatGPT / Claude output to CSV & tables (the clean way)

You asked an AI for data. It answered politely — with a sentence, a code fence, and some JSON inside. Here is how to turn that into a spreadsheet-ready file in one step.

Why AI output is "almost JSON"

When ChatGPT or Claude gives you structured data, it usually looks like this:

```json
[{ "name": "Ada", "role": "engineer" }]
```

Three things get in your way: the markdown fences (```json), sometimes a friendly intro sentence ("Here is the data you asked for:"), and occasionally a trailing remark. Paste that into a strict converter and it fails — so most people start hand-deleting lines.

The one-step method

  1. Copy the AI's entire answer — fences, prose and all.
  2. Open the JSON to CSV converter. The “Fix pasted AI output” option (on by default) strips fences and stray prose automatically, then converts.
  3. Copy the CSV or download it — it opens cleanly in Excel, Google Sheets, pandas or R.

The same trick works across the whole toolkit: JSON → Markdown table for READMEs and Notion, JSON → SQL for seeding a database, CSV → HTML table for email templates and pages.

Going the other way: table → AI-ready JSON

Sometimes you have the spreadsheet and want JSON for an API call. Copy the cells straight out of Excel or Google Sheets and paste into TSV → JSON — spreadsheets copy as tab-separated values, so there is no export step. If you already have a CSV file, use CSV → JSON instead.

Common gotchas

TL;DR

Paste the whole AI answer into JSON → CSV, keep "Fix AI output" checked, download. Ten seconds, zero manual cleanup — and your data never left your machine.

Related tools