# Parquet Converter – Parquet to CSV, JSON & Excel and Back (`gazidev/parquet-converter`) Actor

Convert Apache Parquet files to CSV, JSON, JSONL or Excel, or CSV/JSON/Excel and Apify datasets to Parquet, in bulk from URLs. Shows the schema, row count and column types; you can select columns and choose Snappy or ZSTD compression. Fast, with no code, Python or DuckDB to install. $0.006 per file.

- **URL**: https://apify.com/gazidev/parquet-converter.md
- **Developed by:** [Cemal Atakli](https://apify.com/gazidev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 file converteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Parquet Converter – Parquet to CSV, JSON & Excel and Back

Convert **Apache Parquet files to CSV, JSON, JSON Lines (NDJSON) or Excel (XLSX)**, and convert **CSV, TSV, JSON,
JSONL, Excel files and Apify datasets to Parquet**, in bulk from URLs. Every run also shows the Parquet **schema**
(column names and types), row count, row groups, codec and the first rows, so you can use it as an online
**Parquet viewer** too.

No Python, pandas, Spark or DuckDB to install: paste a URL, press Start, download the file.

### What it does

- **Parquet → CSV / JSON / JSONL / XLSX.** One output file per input URL, with a public download link.
  - Nested `struct` columns become dot columns in CSV and Excel (`address.city`, `address.geo.lat`). Lists and maps
    stay JSON text in one cell, so no data is lost.
  - JSON and JSONL keep the nesting as real JSON objects and arrays.
  - Timestamps become ISO 8601 text (`2026-01-02T03:04:05+00:00`), dates `2026-11-16`, decimals become numbers,
    binary columns become UTF-8 text (or `base64:...` when they are not text). `float32` values print as `1.1`,
    not `1.100000023841858`.
- **CSV / JSON / Excel / Apify dataset → Parquet.**
  - Column types are detected: integers (`int64`), decimals (`double`), booleans, timestamps (CSV) and strings.
  - List columns such as zip codes or IDs with leading zeros in **Keep as text** so `01234` stays `01234`.
  - Nested JSON and dataset items are flattened to dot columns (`price.value`, `price.currency`).
  - Compression: **Snappy** (default, works everywhere), **ZSTD** (smaller), GZIP or none.
- **Re-write Parquet files** (direction "To Parquet"): change the codec, keep a few columns or cut the rows.
- **Schema + preview only** mode: column names and types, row count, row groups, codec, writer (`created by`) and the
  first 5 rows, with no file written.
- **Choose columns** and a **row limit** for quick samples of big files. Parquet columns you do not choose are not
  even read.
- **Auto direction:** Parquet files go to your output format, everything else goes to Parquet. Files are detected by
  their content, not by the file name.
- GitHub `blob`, Dropbox, Google Drive and Google Sheets share links are turned into direct downloads. For S3, GCS
  or Azure use a pre-signed or public HTTPS link (and an `Authorization` header if your API needs one).
- **Safe and honest:** only public http(s) URLs (private network addresses are refused, on every redirect too), a
  size cap and retries. Errors, empty files and oversize files are reported per input and **never charged**.

#### Which gazidev converter do I need?

This is the only gazidev listing that **reads** Parquet files and writes Parquet from CSV, JSON and Excel files.

| You want... | Use |
|---|---|
| Parquet ⇄ CSV / JSON / Excel, Parquet schema viewer, CSV to Parquet | **Parquet Converter** (this Actor) |
| JSON / JSONL / API → CSV or XLSX with array explode, CSV → JSON | [JSON to CSV & Excel Converter](https://apify.com/gazidev/json-to-csv-converter) |
| Send a dataset to S3, GCS, Azure, SFTP, Postgres or Airtable (also as Parquet), on a schedule | [Dataset Export to S3, GCS, Azure, SFTP & Airtable](https://apify.com/gazidev/dataset-cloud-export) |
| Excel / ODS workbooks → JSON with all sheets | [Excel to JSON Converter](https://apify.com/gazidev/spreadsheet-to-json) |
| Filter, merge and dedupe datasets | [Merge, Dedup & Transform Datasets](https://apify.com/gazidev/dataset-filter-transform) |

### Use cases

- Someone sent you a `.parquet` file and you only have Excel: get an XLSX or CSV.
- Peek inside a Parquet file from a data lake or Hugging Face: schema, types, row count, first rows.
- Load a CSV or a JSON export into **BigQuery, Athena, Snowflake, Databricks, DuckDB or pandas** as Parquet: smaller
  files, typed columns, faster queries.
- Turn the output of an Apify scraper (dataset) into one Parquet file for your warehouse.
- Shrink a Snappy Parquet file with ZSTD, or keep only the columns you need.
- A no-code step in **n8n, Make or Zapier**: "file URL in, converted file link out".

### Input example

Parquet to Excel, only three columns:

```json
{
  "fileUrls": ["https://raw.githubusercontent.com/apache/parquet-testing/master/data/alltypes_plain.parquet"],
  "outputFormat": "xlsx",
  "columns": ["id", "string_col", "timestamp_col"]
}
```

CSV and JSON to Parquet with ZSTD, codes kept as text:

```json
{
  "fileUrls": ["https://example.com/customers.csv", "https://example.com/orders.jsonl"],
  "compression": "zstd",
  "keepAsText": ["zip", "customer_id"]
}
```

Apify dataset to Parquet (in an integration use `{{resource.defaultDatasetId}}`):

```json
{ "datasetId": "<your dataset id>", "compression": "snappy" }
```

### Output

The dataset has one row per input (the `OUTPUT` record has the same plus totals and charges):

```json
{
  "input": "https://raw.githubusercontent.com/apache/parquet-testing/master/data/alltypes_plain.parquet",
  "status": "ok",
  "direction": "from-parquet",
  "outputFormat": "csv",
  "rows": 8,
  "columns": 11,
  "fileUrl": "https://api.apify.com/v2/key-value-stores/<store>/records/alltypes_plain.csv",
  "schema": [
    {"name": "id", "type": "int32", "nullable": true},
    {"name": "float_col", "type": "float", "nullable": true},
    {"name": "timestamp_col", "type": "timestamp[ns]", "nullable": true}
  ],
  "inputRows": 8,
  "rowGroups": 1,
  "inputCompression": "UNCOMPRESSED",
  "createdBy": "impala version 1.3.0-INTERNAL (...)",
  "preview": [{"id": 4, "bool_col": true, "float_col": 0.0, "string_col": "0", "timestamp_col": "2009-03-01T00:00:00"}],
  "warnings": []
}
```

Fields: `input`, `status` (`ok`, `error`, `empty`, `not-processed`), `direction`, `inputFormat`, `outputFormat`,
`rows`, `columns`, `schema`, `fileUrl`, `fileKey`, `outputBytes`, `inputBytes`, `compression`, `rowGroups`,
`preview`, `warnings`, `error`, `processingTimeMs`.

### Pricing

Pay per event, no subscription. You pay per converted file, not per row:

| Event | Price | When |
|---|---|---|
| File converted | **$0.006** | Once per input converted, covers up to 100,000 rows. Schema + preview only also counts as one file |
| Extra 100,000 rows | $0.003 | Each further started block of 100,000 rows of the same input |
| Actor start | $0.00005 | Once per run |

A 50,000-row Parquet file costs **$0.006**; 250,000 rows cost $0.012. Failed downloads, unreadable files, empty files
and oversize files are free. If you set a maximum cost per run, the Actor stops cleanly: the current file is cut to
the rows that were paid for and the remaining inputs are listed as not processed (free).

Other options on the Apify Store (16 Nov 2026): tinplatelabs/dataset-toolkit charges $0.002 per 1,000 rows (so
$0.10 for 50,000 rows); rl1987/duckdb-wrapper runs DuckDB SQL you write yourself.

### Limits (honest)

- The whole file is processed in memory. With the default 512 MB a few million narrow rows work; for files above
  \~100 MB raise the run memory. The download cap is `maxFileSizeMb` (200 MB by default).
- Excel holds at most 1,048,575 rows per sheet: bigger results are split into several sheets. Use CSV for very large
  files. Time zone aware timestamps stay ISO text in Excel.
- One file per URL. Partitioned Parquet **folders** (`year=2026/part-*.parquet`) are not merged: give each file's URL.
- Gzip-compressed CSV/JSON (`.csv.gz`) is not supported yet. Nested Parquet columns can be selected only as a whole
  (`address`, not `address.city`).
- CSV numbers with a decimal comma (`1,5`) stay text in Parquet.
- Only files you can share publicly or with a token in `httpHeaders`. Logins, cookies and private networks are not
  supported.

### FAQ

**Is my data kept?** The converted files are stored in the run's key-value store in your Apify account and follow
your Apify data retention. Nothing is sent anywhere else.

**Which Parquet versions and codecs can it read?** Everything Apache Arrow (pyarrow) reads: Parquet 1.0/2.x, Snappy,
GZIP, ZSTD, LZ4, Brotli, dictionary encoding, nested types, files from Spark, pandas, Polars, DuckDB, Impala and
BigQuery.

**What does the Parquet file I get look like?** One row group per 50,000 rows (to-parquet from JSON/datasets) or per
Arrow's default, with the codec you choose and typed columns. It opens in pandas, Polars, DuckDB, Spark, BigQuery and
Athena.

**Can it read from S3?** Yes, through a pre-signed URL or a public bucket URL. For writing to S3 or GCS on a schedule
use [Dataset Export](https://apify.com/gazidev/dataset-cloud-export).

### Use with AI agents / Apify MCP

The Actor works as a tool in the [Apify MCP server](https://mcp.apify.com) and with the Apify API. An agent sends
`{"fileUrls": ["https://.../data.parquet"], "outputFormat": "schema-only"}` to see the columns and first rows, then
`"outputFormat": "jsonl"` to get the data, and reads `fileUrl` from the dataset row. Every input gets its own status
and error message, so an agent can tell a bad link from an empty file.

***

Parquet test file in the example: [apache/parquet-testing](https://github.com/apache/parquet-testing) (Apache License
2.0). Apache Parquet and Apache Arrow are trademarks of the Apache Software Foundation; this Actor is not affiliated
with it.

# Actor input Schema

## `fileUrls` (type: `array`):

Public URLs of Parquet files (converted to CSV / JSON / JSONL / Excel) or of CSV, TSV, JSON, JSON Lines or Excel (XLSX) files (converted to Parquet). One output file per URL. GitHub 'blob', Dropbox, Google Drive and Google Sheets share links are turned into direct downloads. S3 / GCS / Azure: use a pre-signed or public HTTPS link. Leave everything empty to convert an example Parquet file.

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

An Apify dataset, e.g. the output of a scraper run, converted to one Parquet file. Nested objects become dot columns (address.city). In an integration use {{resource.defaultDatasetId}}.

## `direction` (type: `string`):

Auto: Parquet files are converted to the output format below, every other file (and the dataset) to Parquet. 'To Parquet' also re-writes Parquet files (change compression, keep some columns, cut rows).

## `outputFormat` (type: `string`):

Format for Parquet inputs. 'Schema + preview only' writes no file: it returns the column names and types, row count, row groups, codec and the first 5 rows (a Parquet viewer).

## `compression` (type: `string`):

Codec of the Parquet files written. Snappy is the most compatible (Spark, Pandas, DuckDB, BigQuery, Athena); ZSTD makes smaller files.

## `columns` (type: `array`):

Only these columns, in this order (top-level Parquet column names, or flattened names like address.city for JSON / dataset inputs). Empty = all columns.

## `maxRows` (type: `integer`):

Stop each input after this many rows (0 = no limit). Useful for a quick sample of a big file.

## `csvDelimiter` (type: `string`):

Delimiter of the CSV written from Parquet.

## `excelBom` (type: `boolean`):

Start the CSV with a byte-order mark so Excel shows accents and non-Latin text correctly. Off by default (data tools prefer no BOM).

## `inputDelimiter` (type: `string`):

Delimiter of the CSV files you convert to Parquet. Auto-detect works for comma, semicolon, tab and pipe.

## `keepAsText` (type: `array`):

Column types are detected automatically (integers, decimals, booleans, timestamps). List columns that must stay strings, e.g. zip codes or IDs with leading zeros (01234).

## `httpHeaders` (type: `object`):

Optional headers sent with every download, e.g. {"Authorization": "Bearer ..."}. They are stored in the run input, so prefer a short-lived token.

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

Larger downloads are rejected (not charged). Raise the run memory for files above ~100 MB (Parquet expands several times in memory).

## Actor input object example

```json
{
  "fileUrls": [
    "https://raw.githubusercontent.com/apache/parquet-testing/master/data/alltypes_plain.parquet"
  ],
  "direction": "auto",
  "outputFormat": "csv",
  "compression": "snappy",
  "maxRows": 0,
  "csvDelimiter": ",",
  "excelBom": false,
  "inputDelimiter": "auto",
  "maxFileSizeMb": 200
}
```

# Actor output Schema

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

No description

## `schema` (type: `string`):

No description

## `summary` (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 = {
    "fileUrls": [
        "https://raw.githubusercontent.com/apache/parquet-testing/master/data/alltypes_plain.parquet"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/parquet-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 = { "fileUrls": ["https://raw.githubusercontent.com/apache/parquet-testing/master/data/alltypes_plain.parquet"] }

# Run the Actor and wait for it to finish
run = client.actor("gazidev/parquet-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 '{
  "fileUrls": [
    "https://raw.githubusercontent.com/apache/parquet-testing/master/data/alltypes_plain.parquet"
  ]
}' |
apify call gazidev/parquet-converter --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gazidev/parquet-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/eriRgARJfa5EbFkBF/builds/mGkFmFVzb3T4p3AYC/openapi.json
