# Text to HTML

- Human page: https://happytails.ai/en/text-tools/text-to-html/
- Markdown: https://happytails.ai/en/text-tools/text-to-html.md
- Structured JSON: https://happytails.ai/agents/en/text-tools/text-to-html/index.json
- Visibility: public

## Tool capabilities

| Property | Value |
| --- | --- |
| Tool ID | `text-to-html` |
| Category | text-tools |
| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |
| Browser execution | Automatic updates after valid input or file selection. |
| Browser processing | Browser; see tool notes for network behavior. |
| HTTP API | Not callable through HTTP. |
| Browser-agent interface | run_current_tool |

### Implementation notes

Escapes your text, wraps paragraphs in <p> tags and optionally preserves single line breaks. Existing HTML is displayed as text, never executed.

### Inputs and settings

Text input: Your text.

Example or placeholder shown in the interface (not a validated fixture):

```text
Type or paste your input…
```

Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.

| Setting | Meaning | Control type | Default | Constraints |
| --- | --- | --- | --- | --- |
| `breaks` | Keep single line breaks as <br> | checkbox | true |  |

### Browser-agent workflow

1. Open the human page in a browser that supports WebMCP.
2. Discover the interface exposed by that page; use its actual schema.
3. Select files on the page first when the tool requires files.
4. Call `run_current_tool` with valid input and settings.
5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.

Calls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.

### Planning specification

Escapes your text, wraps paragraphs in <p> tags and optionally preserves single line breaks. Existing HTML is displayed as text, never executed.

This describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.

### Complete machine-readable capability record

```json
{
  "id": "text-to-html",
  "category": "text-tools",
  "built": true,
  "requirements": "Escapes your text, wraps paragraphs in <p> tags and optionally preserves single line breaks. Existing HTML is displayed as text, never executed.",
  "implementation": {
    "fields": [
      {
        "key": "breaks",
        "label": "Keep single line breaks as <br>",
        "value": true,
        "type": "checkbox"
      }
    ],
    "live": true,
    "note": "Escapes your text, wraps paragraphs in <p> tags and optionally preserves single line breaks. Existing HTML is displayed as text, never executed.",
    "experience": {
      "automatic": true,
      "single": false,
      "inputMaxLength": 1000000,
      "inputMode": "text",
      "label": "Your text",
      "placeholder": "Type or paste your input…",
      "help": "Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.",
      "action": null
    },
    "mode": "automatic",
    "interactive": false
  },
  "execution": "Browser interface",
  "api": null,
  "browser_agent": {
    "supported": true,
    "name": "run_current_tool",
    "discovery": "WebMCP on the human page in a supporting browser",
    "verification": "See audit/API-AUDIT.md; availability is not verification"
  }
}
```

## Page guide

Turn plain text into safe HTML paragraphs and line breaks.

How can we improve this tool?

Report a problem or share an idea.

Please leave out private information. Your message and the tool name go to our team via PostHog.

### How to use Text to HTML

1. Paste your plain text. Blank lines start new paragraphs. Leave the line-break option checked to turn single newlines into <br> tags, then copy or download the HTML.
2. Two lines separated by one newline share a paragraph with a <br>. A blank line starts a new <p> element. Characters such as < and & are escaped.

## Useful next steps

- [HTML to text](https://happytails.ai/en/text-tools/html-to-text/) ([Markdown](https://happytails.ai/en/text-tools/html-to-text.md))

- [Markdown to HTML](https://happytails.ai/en/text-tools/markdown-to-html/) ([Markdown](https://happytails.ai/en/text-tools/markdown-to-html.md))

- [HTML formatter](https://happytails.ai/en/developer-tools/html-formatter/) ([Markdown](https://happytails.ai/en/developer-tools/html-formatter.md))

## How to use it

Paste your plain text. Blank lines start new paragraphs. Leave the line-break option checked to turn single newlines into <br> tags, then copy or download the HTML.

### Try a small example

Two lines separated by one newline share a paragraph with a <br>. A blank line starts a new <p> element. Characters such as < and & are escaped.

### What to know

Escapes your text, wraps paragraphs in <p> tags and optionally preserves single line breaks. Existing HTML is displayed as text, never executed.
