---
title: "File to Text"
description: "Read a workspace text file and put the contents on the pipe."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/utility/file-to-text"
---
# File to Text

> Read a workspace text file and put the contents on the pipe.

<block-meta block="Yes" channels="Any" folder="basic/utility" group="Utility" groupTo="/build/workflows/blocks/utility" icon="i-lucide-file-text" pipe="Value" scope="Any" tool="Yes" type="utl.file-to-text">



</block-meta>

**File to Text** reads a workspace file and puts the UTF-8 text on the pipe. It works as a workflow block and as an assistant tool. Supported types are **text**, **JSON**, **CSV**, **XML**, and matching file names (`.txt`, `.md`, `.log`, and so on). Binary files such as PDF or images are not converted here.

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        File
      </strong>
    </td>
    
    <td>
      Workspace file id, literal or variable (required)
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues with extracted text on the pipe
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block receives a **string** — the file contents.

## Use case

- Read a text or JSON file from [Get File](https://docs.vettero.com/build/workflows/blocks/file/get) and pass it to [Execute JS](https://docs.vettero.com/build/workflows/blocks/utility/execute-js).

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
