Dataset Transformer: Filter, Dedupe, JSON to CSV avatar

Dataset Transformer: Filter, Dedupe, JSON to CSV

Pricing

from $0.10 / 1,000 rows converted

Go to Apify Store
Dataset Transformer: Filter, Dedupe, JSON to CSV

Dataset Transformer: Filter, Dedupe, JSON to CSV

Clean, flatten and deduplicate data: Apify datasets, pasted JSON, JSONL, CSV, Excel (.xlsx) and public Google Sheets. Filter rows, remove duplicates, and keep only new rows across runs. $0.0001 per row saved, same price on every plan. Removed rows and failed files are free.

Pricing

from $0.10 / 1,000 rows converted

Rating

0.0

(0)

Developer

Tidy Byte Tools

Tidy Byte Tools

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

Turn nested JSON, JSON Lines, CSV, Excel (.xlsx), a public Google Sheet, or the results of another Apify run (like a scraper) into a flat CSV table. Keep only the rows you want, remove duplicates, and keep only rows that are new since the last run. $0.0001 per row saved, same price on every plan. Removed rows are free.

Try it free: Apify gives every account $5 of free credit each month (no card), which covers about 50,000 one-row runs of this tool.

Use cases

  • Flatten nested scraper results into a spreadsheet
  • Filter and dedupe a dataset from another Apify run
  • Keep only new rows from a daily scrape
  • Convert JSON, JSONL, CSV, Excel, or a public Google Sheet to CSV
  • Join list fields so they fit in one cell

Last tested: Nov 18, 2026 (America/Chicago). Run xpjK9YwhRNepV6XrT flattened 2 nested JSON rows into id,user.name (Ann, Bo). Charged 2 rows.

Also searched as: ES: convertir JSON a CSV, aplanar JSON / PT: converter JSON para CSV / DE: JSON in CSV umwandeln / FR: convertir JSON en CSV, aplatir un JSON / JA: JSONをCSVに変換 / ZH: JSON转CSV、展开嵌套JSON

Example

Input (nested JSON):

[
{
"id": 1,
"user": {
"name": "Ann",
"tags": ["a", "b"]
}
},
{
"id": 2,
"user": {
"name": "Bo"
}
}
]

Output from an actual run, with lists joined in one cell:

id,user.name,user.tags
1,Ann,a; b
2,Bo,

This is the same sample used in the default input, so a first run works if you just click Start.

Website and local versions

  • Website — Tidy Byte Tools product page
  • Free related local CLI + MCP — json-shaper-lite turns notes, CSV and Markdown tables into JSON (the other direction). It is not a JSON-to-CSV flattener. pip install json-shaper-lite

What it does

  • Flattens nested objects: user.name, user.address.city.
  • Reads JSON, JSON Lines, CSV, Excel (.xlsx), public Google Sheets, and Apify datasets.
  • Three ways to handle lists.
  • Saves a CSV file and also puts rows in the dataset (download as Excel).
  • Columns stay in the order they first show up.

Price

You pay $0.0001 per row converted, same price on every plan (one flat row saved; failed files are free). There is no start fee from us. Apify adds its normal small platform cost. Set a max cost for the run and we stop there. We never charge for work we did not save.

How to use

  1. Add links or paste your data.
  2. Click Start.
  3. Get results in the Output tab, or download them as CSV, Excel or JSON.

Input

  • File or Sheet links: Links to .json, .jsonl, .csv or Excel (.xlsx) files, or a public Google Sheets share link (set to "Anyone with the link can view").
  • Or paste JSON, JSONL or CSV: Paste JSON, JSON Lines or CSV.
  • Column name separator: user.name uses '.'
  • Lists: How to put lists in cells.
  • CSV delimiter: Use semicolon for Excel in many EU countries.
  • Dataset from another run: The dataset ID from another Apify run's Storage tab. Up to 200,000 items each.
  • Keep only rows that match: One rule per line, using the CSV column name. Examples: price > 10, country = US, email contains @, phone not empty. A row must match every rule.
  • Remove duplicate rows: Drop rows you already have in this run. Removed rows are not charged.
  • Duplicate check columns: Only compare these columns, like url or email. Empty means the whole row. These same columns are used when you keep only new rows.
  • Keep only new rows: Remember saved rows and, on later runs with the same memory name, keep only rows you have not saved before. Skipped rows are free.
  • Memory name: Name of the saved list, like shop-urls. Letters, digits and hyphens. If you leave this empty, the name dataset-transformer-seen is used.
  • Reset memory: Forget the saved list for that memory name and start over.

Clean up a scraper's results

Real test run: 4 scraped items, 2 had the same url, 1 had a price under 10. This input kept 2 rows and charged for 2:

{
"datasetIds": ["YOUR_DATASET_ID"],
"filterRules": ["price >= 10"],
"removeDuplicates": true,
"dedupeColumns": ["url"]
}
url,price,seller.name
https://a.com,12,Ann
https://c.com,40,Cy

Keep only new rows

Turn on Keep only new rows and set a memory name, like shop-urls. This tool remembers the rows it saved in a key-value store with that name. It uses the columns you set under Duplicate check columns (or the whole row if you leave those empty).

The next run with the same memory name keeps only rows it has not saved before. Skipped rows are free.

Example: you check a list of shops every day. Monday's list has 3 shops. You turn on Keep only new rows, set the memory name to shop-urls, and set the check column to url. Monday's run saves 3 rows and charges for 3.

Tuesday's list has those same 3 shops plus 1 new shop. Tuesday's run saves only the new shop and charges for 1 row.

{
"jsonText": "[{\"url\":\"https://a.com\",\"name\":\"Ann's shop\"},{\"url\":\"https://b.com\",\"name\":\"Bo's shop\"},{\"url\":\"https://c.com\",\"name\":\"Cy's shop\"},{\"url\":\"https://d.com\",\"name\":\"Dot's shop\"}]",
"keepOnlyNew": true,
"memoryName": "shop-urls",
"dedupeColumns": ["url"]
}

If this is the second run, the output is one row:

url,name
https://d.com,Dot's shop

To start over, turn on Reset memory. That forgets the saved rows for that memory name. If you change the check columns, the old memory is not used and the tool starts a new list.

Example input

This is also the default sample, so a first run works if you just click Start.

{
"jsonText": "[{\"id\":1,\"user\":{\"name\":\"Ann\",\"tags\":[\"a\",\"b\"]}},{\"id\":2,\"user\":{\"name\":\"Bo\"}}]",
"separator": ".",
"arrays": "join",
"csvDelimiter": "comma"
}

FAQ

How do nested keys become columns? Objects are flattened with a separator. With ., user.name and user.address.city become column names.

What happens to lists? You pick: join the values in one cell, turn them into a JSON string, or make extra rows. Use the option that fits your spreadsheet.

Can I use Excel, CSV, JSON Lines, a Google Sheet or an Apify dataset? Yes. Add a link to a .json, .jsonl, .csv or .xlsx file, paste JSON, JSON Lines or CSV, or paste a public Google Sheets share link. You can also pick another run's dataset.

My Excel (EU) splits columns wrong. Set the CSV delimiter to semicolon. That is the usual setting in many EU countries.

Do I pay for a file that fails? No. Failed files are free. You pay $0.0001 for each flat row we save.

Is there a free related tool? json-shaper-lite is a free local tool that turns notes, CSV and Markdown tables into JSON. It is not a JSON-to-CSV flattener. You can find it on GitHub.

Good to know

  • Files up to 50 MB each.
  • Your data is only used for your run.
  • Made by Tidy Byte Tools. Questions? Open an issue on this Actor's page.

More tools from Tidy Byte Tools

These Actors work well together:

Free local tools (no Apify account needed): pdf-table-pull-lite, doc2md-lite, link-check-lite, md-chunk-lite, json-shaper-lite.

Website: https://tidybytetools.github.io. All Actors: apify.com/tidybytetools.

Agent-ready

Flatten JSON, JSON Lines, CSV, Excel, or a public Google Sheet into CSV. Filter rows, remove duplicates, and keep only new rows across runs. Removed rows and failed files are free. Same price on every plan. Agents can pay per run through Apify (x402).

MCP call example (tool call-actor on https://mcp.apify.com):

{
"actor": "tidybytetools/json-to-csv-flattener",
"input": {
"jsonText": "[{\"id\":1,\"user\":{\"name\":\"Ann\"}},{\"id\":2,\"user\":{\"name\":\"Bo\"}}]",
"separator": ".",
"arrays": "join",
"csvDelimiter": "comma"
}
}

API call example:

curl -X POST "https://api.apify.com/v2/acts/tidybytetools~json-to-csv-flattener/runs?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"jsonText":"[{\"id\":1,\"user\":{\"name\":\"Ann\"}},{\"id\":2,\"user\":{\"name\":\"Bo\"}}]","separator":".","arrays":"join","csvDelimiter":"comma"}'