---
version: "2026.1.0"
language: "en"
---
# Convert to Text

**Experimental Feature**

This feature is Experimental and may change based on user feedback and testing. Share your thoughts via our chatbot to help us improve it.

The **Convert To Text** block converts supported document types into plain text so you can reuse the extracted content elsewhere in your automation flows. It works with common formats such as .pdf, .docx, .doc, .xlsx, .xls, and .pptx.

**Note:**

* To use this block, **cloud blocks must be activated for your tenant in the** [++**add-ons**++](https://portal.leapwork.com/app/addons)**section of Customer Portal**. Make sure this is enabled before adding the block to your flows.

* The screenshot on this page uses the **Elegance Design** , introduced in **2025.3**. If you are using an earlier version, your layout may look different.

![image-20260113-150723.png](https://docs.leapwork.com/__attachments/a_af19cf8b675208ea87a1c89e7b53ed099be5dee542bb91613ac3ee7d4f149f84/image-20260113-150723.png?cb=0d6d4237a3ffe9890cd3ad7a8b74fd07)

## Quick-start

1. Drag **Convert To Text** onto the canvas.

2. In **File Input** , choose the **Source type** (Data file or Local path), select the file to convert, and optionally adjust **Timeout (sec)** or **Default timeout**.

3. Run the flow when it's ready and use the **Output** text in subsequent blocks (for example, to search, validate, or store the converted content).

## Building block parameters

Parameters  
* **Block header:** Shows the current name of the **Convert To Text** block. You can rename it by double-clicking the header and typing a new title. In current versions, an **Experimental** banner below the header indicates that this feature is in preview.

* **File Input:** Represents the input-document section of the block. The file to convert is configured here using **Source type** and **Select file to convert** .

* **Source type:**Defines where the input file comes from:

  * **Data file**: the file is stored inside Leapwork as a data file.

  * **Local path** : the file is referenced from a path on disk or a network share.

    Once a file is specified, the block automatically detects its type if it is one of the supported formats.

* **Select file to convert:** The file selector where you choose the document to be converted to text (for example, **.pdf, .docx, .doc, .xlsx, .xls, .pptx**).

  * You can drag and drop a file onto this field or browse to it, depending on the selected **Source type**.

  * The file content can also be provided dynamically from other blocks, if supported by your flow design.

* **Output:**Contains the plain-text result of the conversion.

  * The blue connector can be used to pass this text into other blocks, such as those that search, parse, or store the extracted content.

* **Failed / Not converted:**Triggers if the file cannot be converted within the configured timeout or if the conversion service returns an error.

  * Use this output to branch the flow, for example to log an error, retry with a different file, or explicitly fail the case.

  * In some earlier documentation this output may be referred to as **Not converted** ; in the UI it appears as **Failed** .

* **Default timeout:**Controls how the timeout for this block is derived:

  * When the checkbox is **not selected** , the block uses a fixed timeout of **10 seconds** unless you change **Timeout (sec)** manually.

  * When the checkbox is **selected** , the block uses the **Default timeout** value defined in the flow settings.

* **Timeout (sec):** Sets the maximum time allowed for the conversion before the **Failed** output is triggered.

  * The documented default is **10 seconds**, though the initial value shown in the UI may differ depending on version or template.

  * This timeout applies only to the Convert To Text block. Each case also has a separate **global timeout** configured in the **Settings** panel; if the overall case exceeds that time, it is cancelled regardless of this block's timeout.

* **Download / saving result:** To download the converted text as a file, connect the **Output** property to a [**Save file**](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/data-driven/save-file.md) block and configure that block to write the text to a local file (for example, a `.txt` document).

## Resources

|                                                **Topic**                                                |                                                  **Description**                                                  |
|---------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|
| [Flows FAQ](https://docs.leapwork.com/faq/latest/leapwork-flow-faq/flows-faq.md)                                                 | Common questions about creating, running, and managing flows in Leapwork.                                         |
| [Flows Troubleshooting](https://docs.leapwork.com/troubleshooting/latest/leapwork-flow-troubleshooting/flows-troubleshooting.md) | Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork. |
| [Customer Portal Add-ons](https://docs.leapwork.com/leapwork-flow/latest/customer-portal/add-ons.md)                             | Customer portal section to activate your cloud blocks.                                                            |