# Conversion Tools

Conversion Tools is an online service that offers a fast and easy way to convert documents between different formats, like XML, Excel, PDF, Word, Text, CSV, and others.

- **Category:** documents
- **Auth:** API_KEY
- **Composio Managed App Available?** N/A
- **Tools:** 11
- **Triggers:** 0
- **Slug:** `CONVERSION_TOOLS`
- **Version:** 20260312_00

## Tools

### Convert Excel to HTML

**Slug:** `CONVERSION_TOOLS_CONVERT_EXCEL_TO_HTML`

Convert an Excel (.xlsx) file to HTML table format. Use when you need to transform spreadsheet data into an HTML representation. Provide either a file upload or a public URL to the Excel file. Returns a task_id that can be used to check the conversion status and download the result once complete.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | No | Excel file to upload for conversion. Required if file_url is not provided. |
| `options` | object | No | Optional conversion settings. Example: {'sheet': 'Sheet1'} to convert a specific sheet. |
| `file_url` | string | No | Public URL to the Excel file to convert (e.g., 'https://example.com/data.xlsx'). Required if file is not provided. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Convert Word to Text

**Slug:** `CONVERSION_TOOLS_CONVERT_WORD_TO_TEXT`

Convert Word documents (.doc/.docx) to plain text (.txt). The action uploads the document, waits for conversion to complete (up to ~60 seconds), and returns the task status with a URL to download the converted text file. Use when you need to extract text content from Word documents for further processing.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | string | No | Binary content of the Word document (.doc/.docx) to convert. Mutually exclusive with 'file_url'. |
| `file_url` | string | No | Publicly accessible URL of the Word document (.doc/.docx) to convert. Mutually exclusive with 'file'. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Conversion Task

**Slug:** `CONVERSION_TOOLS_CREATE_TASK`

Tool to create a new conversion task. This is the main endpoint for performing conversions across 100+ conversion types including XML, JSON, Excel, PDF, CSV, images, audio/video, and more. Use when you need to convert any supported file format or website. Counts against quota unless sandbox mode is enabled.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | No | Public URL of the file or website to convert. Required for website conversions or when converting a file from the internet. Mutually exclusive with file_id. |
| `type` | string ("convert.xml_to_excel" | "convert.json_to_excel" | "convert.csv_to_excel" | "convert.excel_to_csv" | "convert.excel_to_xml" | "convert.excel_to_json" | "convert.xml_to_csv" | "convert.xml_to_json" | "convert.json_to_xml" | "convert.csv_to_xml" | "convert.html_table_to_csv" | "convert.pdf_to_text" | "convert.pdf_to_excel" | "convert.pdf_to_csv" | "convert.pdf_to_word" | "convert.pdf_to_jpg" | "convert.pdf_to_png" | "convert.word_to_pdf" | "convert.excel_to_pdf" | "convert.powerpoint_to_pdf" | "convert.word_to_text" | "convert.word_to_html" | "convert.powerpoint_to_text" | "convert.powerpoint_to_html" | "convert.markdown_to_pdf" | "convert.markdown_to_html" | "convert.markdown_to_epub" | "convert.website_to_pdf" | "convert.website_to_jpg" | "convert.website_to_png" | "convert.html_to_jpg" | "convert.html_to_png" | "convert.jpg_to_pdf" | "convert.png_to_pdf" | "convert.pdf_to_svg" | "convert.png_to_svg" | "convert.png_to_webp" | "convert.jpg_to_avif" | "convert.png_to_avif" | "convert.avif_to_png" | "convert.avif_to_jpg" | "convert.mp4_to_mp3" | "convert.wav_to_mp3" | "convert.flac_to_mp3" | "convert.mp3_to_wav" | "convert.mov_to_mp4" | "convert.mkv_to_mp4" | "convert.avi_to_mp4" | "convert.ocr_pdf_to_text" | "convert.ocr_jpg_to_text" | "convert.ocr_png_to_text" | "convert.excel_to_ods" | "convert.ods_to_excel" | "convert.ods_to_csv" | "convert.ods_to_pdf" | "convert.fix_xml_escaping" | "convert.excel_xml_to_excel_xlsx") | Yes | Conversion type identifier in format convert.{source}_to_{target}. Choose from 59 supported conversion types including XML, JSON, Excel, PDF, CSV, images, audio/video, and more. |
| `file_id` | string | No | File ID returned by POST /files endpoint. Required when converting an uploaded file. Mutually exclusive with url. |
| `sandbox` | boolean | No | Enable sandbox mode for unlimited testing without counting against quota. Returns mock data in 2-5 seconds. Useful for testing workflows before production use. |
| `callbackUrl` | string | No | Webhook URL to receive task completion notification. The API will POST to this URL when conversion finishes. |
| `additional_options` | object | No | Additional conversion-specific options. Examples: filename (output name), pages (page ranges like '1-5,7'), delimiter (CSV separator), quality (image quality), etc. Varies by conversion type. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Download Converted File

**Slug:** `CONVERSION_TOOLS_DOWNLOAD_FILE`

Download a converted file from the Conversion Tools API using its file ID. Use this action after a conversion task completes successfully. The file_id is obtained from the task status response when status is 'SUCCESS'. Converted files are automatically deleted after 24 hours. Workflow: 1. Run a conversion task (e.g., convert_website_to_pdf) 2. Check task status until status is 'SUCCESS' 3. Use the file_id from the task response to download the result

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file_id` | string | Yes | Unique identifier (32-character hex string) of the converted file to download. Obtain this ID from a completed conversion task's response. |
| `filename` | string | No | Optional filename for the downloaded file. If not provided, the filename will be extracted from the API response headers or derived from the file_id. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Auth Info

**Slug:** `CONVERSION_TOOLS_GET_AUTH_INFO`

Tool to get information about the authenticated user including email address. Use when you need to verify API credentials or retrieve the user's email.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Conversion Config

**Slug:** `CONVERSION_TOOLS_GET_CONFIG`

Tool to get available conversion types and their configuration. Returns the list of all supported conversions with their options. Use this to discover what conversions are available and what parameters they accept.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get File Info

**Slug:** `CONVERSION_TOOLS_GET_FILE_INFO`

Tool to get metadata about a file including size, name, and preview (for text files). Use when you need to retrieve information about a previously uploaded file. This does NOT count against your quota.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file_id` | string | Yes | Unique identifier (32-character hex string) of the file to retrieve information about. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Task Status

**Slug:** `CONVERSION_TOOLS_GET_TASK_STATUS`

Tool to get the status of a conversion task. Poll this endpoint until status is SUCCESS or ERROR. On SUCCESS, the response includes file_id which can be used to download the result file.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `task_id` | string | Yes | The task ID returned from task creation. A 32-character hexadecimal string uniquely identifying the conversion task. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Conversion Tasks

**Slug:** `CONVERSION_TOOLS_LIST_TASKS`

Get all tasks for the authenticated user (up to 50 most recent tasks). Use this action to retrieve conversion task history, check task statuses, or find completed tasks for downloading results. This does NOT count against your API quota. Filter by status to retrieve only tasks in a specific state (PENDING, RUNNING, SUCCESS, or ERROR).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `status` | string ("PENDING" | "RUNNING" | "SUCCESS" | "ERROR") | No | Task status enumeration for filtering tasks. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Task Retention

**Slug:** `CONVERSION_TOOLS_UPDATE_TASK_RETENTION`

Tool to update the retention mode for a task. Use when you need to change how long task files are kept before automatic deletion. Standard mode (standard_24h) retains files for 24 hours. TTL mode (ttl_15m) is for paid users only and deletes files after 15 minutes.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `task_id` | string | Yes | Unique identifier (32-character hex string) of the task to update. Obtain this ID from a conversion task response. |
| `retentionMode` | string ("standard_24h" | "ttl_15m") | Yes | Retention mode for task files. 'standard_24h' (default) retains files for 24 hours. 'ttl_15m' (paid users only) retains files for 15 minutes and automatically deletes them afterward. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Upload File

**Slug:** `CONVERSION_TOOLS_UPLOAD_FILE`

Upload a file to the ConversionTools API for subsequent conversion operations. This action uploads a file and returns a file_id that can be used with other conversion actions such as convert_word_to_text, convert_excel_to_csv, convert_oxps_to_pdf, etc. Supported formats include: documents (DOC, DOCX, PDF, TXT, RTF), spreadsheets (XLS, XLSX, CSV), images (PNG, JPG, GIF, BMP), and various other file types.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | string | Yes | Binary content of the file to upload. Can be provided as base64-encoded string or raw bytes. |
| `filename` | string | Yes | Name of the file including extension (e.g., 'document.docx', 'spreadsheet.xlsx', 'image.png'). The extension determines how the file will be processed. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
