# CSV, JSON & Excel Converter: XLSX, NDJSON, XML, Parquet (`plotpointtech/csv-json-excel-converter`) Actor

Convert data files in bulk between CSV, TSV, JSON, JSON Lines, Excel, XML, Parquet, HTML and Markdown. Flattens nested JSON, auto-detects delimiters and encodings, exports Apify datasets. $2 per 1,000 files.

- **URL**: https://apify.com/plotpointtech/csv-json-excel-converter.md
- **Developed by:** [Plot Point Technologies](https://apify.com/plotpointtech) (community)
- **Categories:** Developer tools, Automation, Integrations
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.24 / 1,000 output files

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## CSV, JSON & Excel Converter: XLSX, NDJSON, XML, Parquet

**Convert data files between CSV, JSON, Excel and more for $2 per 1,000 files.** Give it links to your files, upload one, or point it at an Apify dataset, pick the formats you want, and get a download link for each converted file with its row and column counts. It reads **CSV, TSV, JSON, NDJSON/JSON Lines, Excel (XLSX and XLS), XML and Parquet** and writes **JSON, CSV, Excel, NDJSON, TSV, XML, Parquet, HTML tables and Markdown tables**.

### What can this data converter do?

- **CSV to JSON, JSON to CSV, Excel to JSON, JSON to Excel**, and every other combination of the formats above, several output formats at once.
- **Flatten nested JSON** into columns (`address.city`, `address.zip`), with your choice of separator. Lists stay in one cell as JSON text.
- **Find the records automatically** inside API responses such as `{"data": {"items": [...]}}`, or give a path like `data.items`.
- **Auto-detect** the CSV delimiter (comma, semicolon, tab, pipe) and text encoding (UTF-8, Latin-1, Windows-1252, UTF-16).
- **Excel workbooks:** every sheet, or the sheets you name; one output per sheet plus one combined workbook.
- **Excel-friendly CSV:** adds a UTF-8 byte-order mark so accents and non-Latin text open correctly in Excel; choose `;` as the delimiter for European Excel.
- **Export any Apify dataset** (the output of another Actor) to Excel, CSV, Parquet or anything else in one step.

### What data do you get?

One record per converted file:

| Field | Description |
|---|---|
| `fileName`, `fileUrl` | Name and download link of the converted file |
| `source`, `sheet` | Which input file (and Excel sheet) it came from |
| `inputFormat`, `outputFormat` | Detected input format and the format written |
| `rows`, `columns`, `columnNames` | Size of the table and its column names |
| `inputBytes`, `outputBytes` | File size before and after |
| `status` | `ok` |

### Who uses it?

- **Analysts and operations teams** turning JSON exports and API responses into Excel sheets anyone can open.
- **Developers** converting CSV and Excel uploads to JSON for an app or database, without writing parsers.
- **Data teams** producing Parquet or NDJSON for warehouses and pipelines.
- **No-code builders** exporting Apify datasets or webhook payloads to Google Drive or email as CSV/Excel.

### How to use it

1. Click **Try for free** (or **Start**).
2. Add **File URLs**, **upload a file**, or pick an **Apify dataset**.
3. Choose the formats under **Convert to**.
4. Optionally set the delimiter, encoding, Excel sheets, JSON records path or flatten options.
5. Run it and open the **Output** tab to download each file.

### Input example

```json
{
  "files": [{ "url": "https://example.com/exports/orders.json" }],
  "outputFormats": ["xlsx", "csv"],
  "jsonPath": "data.orders",
  "flattenJson": true,
  "outputDelimiter": ";"
}
```

### Output example

From a real run with the default input (a public-domain list of country codes):

```json
{
  "source": "https://raw.githubusercontent.com/datasets/country-codes/main/data/country-codes.csv",
  "inputFormat": "csv",
  "outputFormat": "xlsx",
  "fileName": "country-codes.xlsx",
  "fileUrl": "https://api.apify.com/v2/key-value-stores/dy4xgrAJ6KaxVTfSC/records/country-codes.xlsx?signature=...",
  "rows": 249,
  "columns": 56,
  "columnNames": ["FIFA", "Dial", "ISO3166-1-Alpha-3", "MARC", "is_independent", "..."],
  "inputBytes": 133991,
  "outputBytes": 102793,
  "status": "ok"
}
```

### How much does it cost?

**$0.002 per converted file**, which includes the first 1,000 rows. Bigger files cost **$0.0005 per further 1,000 rows**. Plus a $0.00005 start fee per run.

| You convert | You pay |
|---|---|
| The default run (one CSV to JSON and Excel) | $0.004 |
| 1,000 small CSV files to JSON | $2.00 |
| One 100,000-row Excel sheet to CSV | $0.05 |
| A 1-million-row JSON export to Parquet | $0.50 |

Files that cannot be downloaded or read are listed in the log and not charged. Set a maximum cost per run in Apify Console and the tool stops when it is reached.

**Volume discounts on higher Apify plans.** The prices above are for the Apify Free plan. On paid plans they drop automatically: about 15% lower on Bronze, 25% lower on Silver and 38% lower on Gold and above.

### Use it via API, Make, Zapier, n8n or an AI agent

**Apify API.** Convert a file and get the result back in one HTTP request (replace `YOUR_API_TOKEN` with the token from Apify Console > Settings > Integrations):

```bash
curl -X POST "https://api.apify.com/v2/acts/plotpointtech~csv-json-excel-converter/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"files": [{"url": "https://example.com/data.csv"}], "outputFormats": ["json"]}'
```

Official `apify-client` libraries exist for Python and JavaScript; the **API** tab on this page has ready-made code.

**No-code automation.** Connect the tool to **Make, Zapier, n8n, Google Drive, Dropbox, Slack** or any webhook with Apify integrations, or run it after another Actor to export its dataset automatically.

**AI agents (MCP).** Give Claude, ChatGPT, Cursor or any MCP-compatible agent direct access through the hosted Apify MCP server:

```
https://mcp.apify.com?tools=plotpointtech/csv-json-excel-converter
```

### FAQ

**How big can files be?**
Up to 200 MB per file by default (adjustable to 1 GB). Very large files need more memory: give the run 4 GB or more for files with millions of rows.

**What happens to formulas and formatting in Excel files?**
The tool reads the values (formula results), not the formatting, charts or macros. Output workbooks are plain tables.

**Why are some values in quotes or JSON text in my CSV?**
Lists and nested objects that cannot become columns are written as JSON text in one cell, so no data is lost.

**Is my data stored or shared?**
Files are processed inside your own Apify run and stored only in your Apify storage. The download links contain a signature, so anyone you share a link with can download that file.

### Related tools from Plot Point Technologies

- [Document to Markdown & JSON: DOCX, XLSX, PPTX, HTML, EPUB, CSV](https://apify.com/plotpointtech/document-to-markdown-json): Word, PowerPoint and HTML documents to Markdown and text.
- [PDF to Text & Tables Extractor - Markdown + OCR](https://apify.com/plotpointtech/pdf-text-markdown-tables-extractor): tables out of PDFs.
- [PDF Toolkit: Merge, Split, Compress, Images to PDF & Back](https://apify.com/plotpointtech/pdf-toolkit): merge, split and compress PDFs.

Plot Point Technologies is not affiliated with Microsoft (Excel) or the Apache Software Foundation (Parquet). Questions: support@plotpoint.tech.

***

If this tool saved you time, we would be grateful for a short review on this page; it helps other people find it. If something did not work as expected, please open an issue on the **Issues** tab and we will look into it quickly.

# Actor input Schema

## `files` (type: `array`):

Direct links to CSV, TSV, JSON, NDJSON/JSON Lines, Excel (XLSX/XLS), XML or Parquet files.

## `uploadedFile` (type: `string`):

Upload a data file from your computer.

## `datasetId` (type: `string`):

An Apify dataset (for example the output of another Actor) to export.

## `outputFormats` (type: `array`):

One output file per input and format.

## `inputFormat` (type: `string`):

Auto-detected from the file name and content.

## `hasHeader` (type: `boolean`):

Turn off if the file has no header row; columns are then numbered.

## `delimiter` (type: `string`):

Leave empty to auto-detect (comma, semicolon, tab, pipe).

## `encoding` (type: `string`):

Auto-detected if not set.

## `sheets` (type: `array`):

Sheet names or numbers (1 = first) to convert. Empty = all sheets.

## `jsonPath` (type: `string`):

Dot path to the list of records inside a JSON file, for example data.items. Empty = auto-detect the largest list.

## `flattenJson` (type: `boolean`):

Turn nested objects into columns such as address.city.

## `flattenSeparator` (type: `string`):

Character between nested keys in column names.

## `xmlXpath` (type: `string`):

XPath of the repeating row element, for example //item. Empty = auto.

## `outputDelimiter` (type: `string`):

Use ; for European Excel.

## `excelFriendlyCsv` (type: `boolean`):

Adds a byte-order mark so Excel opens accents and non-Latin text correctly.

## `maxFileSizeMb` (type: `integer`):

Larger files are skipped.

## Actor input object example

```json
{
  "files": [
    {
      "url": "https://raw.githubusercontent.com/datasets/country-codes/main/data/country-codes.csv"
    }
  ],
  "outputFormats": [
    "json",
    "xlsx"
  ],
  "inputFormat": "auto",
  "hasHeader": true,
  "encoding": "auto",
  "flattenJson": true,
  "flattenSeparator": ".",
  "outputDelimiter": ",",
  "excelFriendlyCsv": true,
  "maxFileSizeMb": 200
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `files` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "files": [
        {
            "url": "https://raw.githubusercontent.com/datasets/country-codes/main/data/country-codes.csv"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("plotpointtech/csv-json-excel-converter").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "files": [{ "url": "https://raw.githubusercontent.com/datasets/country-codes/main/data/country-codes.csv" }] }

# Run the Actor and wait for it to finish
run = client.actor("plotpointtech/csv-json-excel-converter").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "files": [
    {
      "url": "https://raw.githubusercontent.com/datasets/country-codes/main/data/country-codes.csv"
    }
  ]
}' |
apify call plotpointtech/csv-json-excel-converter --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plotpointtech/csv-json-excel-converter"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/uz2WqTBHTvYDnIY8I/builds/M4hjHDyQ1a2ucAaM5/openapi.json
