# File Converter (Video, Audio, Image, Document) (`thescrappa/convertr-file-converter`) Actor

Convert video, audio, images, documents, e-books and fonts between 800+ format pairs, for example MP4 to MP3, HEIC to JPG, WebP to PNG or DOCX to PDF. Paste file links, pick the output format and get a download link and a stored copy of every converted file.

- **URL**: https://apify.com/thescrappa/convertr-file-converter.md
- **Developed by:** [Scrappa](https://apify.com/thescrappa) (community)
- **Categories:** Developer tools, Automation, Videos
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$12.00 / 1,000 converted files

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

## File Converter (Video, Audio, Image, Document)

Convert files between more than 800 format pairs: MP4 to MP3, MOV to MP4, HEIC to JPG, WebP to PNG, DOCX to PDF, EPUB to PDF, WAV to FLAC and many more. Paste links to your files, pick the output format, and get every converted file back as a stored copy and a download link. The conversions run on [Convertr](https://convertr.org).

### What data can you extract?

| Field | Type | Description |
|---|---|---|
| sourceUrl | string | The link you gave for this file. |
| outputFormat | string | The format the file was converted to, for example `mp3`. |
| status | string | `succeeded` or `failed`. |
| outputFileName | string | File name of the converted file, for example `interview.mp3`. |
| outputSizeBytes | number | Size of the converted file in bytes. |
| inputSizeBytes | number | Size of the source file in bytes. |
| fileUrl | string | Link to the converted file in the run's key-value store. Empty when "Store converted files" is off. |
| downloadUrl | string | Convertr download link, valid for 24 hours. Only set when "Store converted files" is off. |
| conversionId | string | Convertr's ID of the conversion. |
| error | string | Why the file failed, for example "the server answered with status 404". Empty on success. |

### Use cases

- Turn a list of video links into MP3 audio for transcription or podcast workflows.
- Convert HEIC photos from iPhones to JPG before you import them into a shop or CMS.
- Make PDFs from DOCX, ODT or EPUB files in a Make, Zapier or n8n automation.
- Normalize mixed image uploads (PNG, WebP, AVIF, TIFF) to one format for a data pipeline.
- Re-encode MOV or MKV clips to MP4 so they play in every browser.

### How to use

1. Add the links to your files. Each link must be public and reachable without a login.
2. Set the output format as a file extension, for example `mp3`, `jpg` or `pdf`.
3. Start the run. Converted files appear in the dataset and in the key-value store.

```json
{
  "files": [
    { "url": "https://download.samplelib.com/mp4/sample-5s.mp4" },
    { "url": "https://download.samplelib.com/mp4/sample-10s.mp4" }
  ],
  "outputFormat": "mp3",
  "storeFiles": true
}
```

### Input

| Field | Type | Description |
|---|---|---|
| files | array | Public links to the files you want to convert. Up to 1 GB per file. |
| outputFormat | string | Output format as a file extension, for example `mp3`, `jpg`, `png`, `pdf`. |
| inputFormat | string | Optional. Input format as a file extension. Empty means: take it from each link's file name. |
| settings | object | Optional conversion settings, for example `{"bitrate": "320k"}` for MP3. |
| storeFiles | boolean | Save a copy of each converted file in the key-value store. Default `true`. |
| maxConcurrency | integer | How many files are converted at the same time (1 to 20). Default 5. |

### Output example

```json
{
  "sourceUrl": "https://download.samplelib.com/mp4/sample-5s.mp4",
  "outputFormat": "mp3",
  "status": "succeeded",
  "outputFileName": "sample-5s.mp3",
  "outputSizeBytes": 139954,
  "inputSizeBytes": 2848208,
  "fileUrl": "https://api.apify.com/v2/key-value-stores/hX3kL9pQ2mN7vR4tW/records/file-00001-sample-5s.mp3",
  "downloadUrl": null,
  "conversionId": "XBPZ46FKNZC57ZLCJABQHD5HVU",
  "error": null
}
```

### Pricing

You pay per converted file: one event for a file up to 100 MB, and one more event for each further started 100 MB (a 1 GB video counts as 10). Failed files are free.

### FAQ

**Which formats are supported?** Video, audio, image, document, e-book, font and archive formats. The full list is at https://convertr.org/api/v1/formats.

**What happens if a file fails?** The dataset row has status `failed` and the reason in `error`. You are not charged for it.

**How large can a file be?** Up to 1 GB. The server that hosts the file must deliver it within 75 seconds.

**Can I call it from my code?** Yes. Start a run with `POST https://api.apify.com/v2/acts/thescrappa~convertr-file-converter/runs` and read the dataset. If you only need the conversion, you can also use the Convertr API directly: https://convertr.org/developers.

**Are my files kept?** Convertr deletes its copy after the run stored the file, and after 24 hours at the latest. The stored copy stays in your Apify storage until you delete it.

# Actor input Schema

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

Public links to the files you want to convert. Each file can be up to 1 GB. The link must be reachable without a login.

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

The format to convert to, as a file extension, for example mp3, jpg, png, webp, pdf, docx, wav, gif.

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

Optional. The format of the input files, as a file extension. Leave empty to take it from each link's file name.

## `settings` (type: `object`):

Optional settings for the conversion, for example {"bitrate": "320k"} for MP3 output. Leave empty for the defaults.

## `storeFiles` (type: `boolean`):

Save a copy of every converted file in the run's key-value store, so the link in the results stays valid after Convertr deletes its copy (24 hours).

## `maxConcurrency` (type: `integer`):

How many files are converted at the same time.

## Actor input object example

```json
{
  "files": [
    {
      "url": "https://download.samplelib.com/mp4/sample-5s.mp4"
    }
  ],
  "outputFormat": "mp3",
  "storeFiles": true,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

One row per input file with status, file name, size and the link to the converted file.

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

The stored converted files.

# 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://download.samplelib.com/mp4/sample-5s.mp4"
        }
    ],
    "outputFormat": "mp3"
};

// Run the Actor and wait for it to finish
const run = await client.actor("thescrappa/convertr-file-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://download.samplelib.com/mp4/sample-5s.mp4" }],
    "outputFormat": "mp3",
}

# Run the Actor and wait for it to finish
run = client.actor("thescrappa/convertr-file-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://download.samplelib.com/mp4/sample-5s.mp4"
    }
  ],
  "outputFormat": "mp3"
}' |
apify call thescrappa/convertr-file-converter --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thescrappa/convertr-file-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/c0tKko5TbeKfJrnh2/builds/ogTXFKXsMnT1ZD6k4/openapi.json
