> For the complete documentation index, see [llms.txt](https://docs.kognitos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kognitos.com/legacy/legacy-experience/automation-areas/text/conversions/convert-text-to-html.md).

# Convert Text to HTML

Create an HTML file by converting text to HTML.

## Overview

This operation accepts valid HTML text as input and generates an HTML file.

## Syntax

```
the text is "{input}"
convert the text to an html file
```

## Data

The table below lists the names of the data elements in this operation and indicates which can be renamed in the syntax.

| Data Name | Can Be Renamed |
| --------- | -------------- |
| the text  | Yes            |

## Parameters

**Parameters** are placeholders for data. Refer to the table below for details on each parameter in this operation. In the syntax, replace parameters with your own values.

| Parameter | Description                           | Example                                   | Required |
| --------- | ------------------------------------- | ----------------------------------------- | -------- |
| `input`   | Text containing valid formatted HTML. | `<html><body>Hello, world!</body></html>` | Yes      |

## Examples

{% tabs %}
{% tab title="Automation" %}

```
the text is "<html><body>Hello, world!</body></html>"
convert the text to an html file
```

{% endtab %}

{% tab title="Results" %}

```
An .html file that contains 'Hello, world!'
```

{% endtab %}
{% endtabs %}
