---
title: "Convert To Markdown"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/convert/converttomarkdown
markdown: https://docs.nodetool.ai/nodes/lib/convert/converttomarkdown.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/convert/converttomarkdown.md
---

# Convert To Markdown

**Type:** `lib.convert.ConvertToMarkdown`

**Namespace:** `lib.convert`

## Description

Converts PDF, DOCX, or HTML to markdown text.
    markdown, convert, document, pdf, docx, html, bytes

    Connect one input — document ref, raw bytes, or HTML string.

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| document | `document` | A document ref (PDF, DOCX, or text file) | `{"type":"document","uri":"","asset_id":null,"da...` |
| bytes | `bytes` | Raw PDF or DOCX bytes (e.g. from HTTP GET Bytes) | null |
| html | `str` | HTML string to convert to markdown | `` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `str` |  |

## Related Nodes

Browse other nodes in the [lib.convert](./) namespace.
