Turndown
Convert HTML into Markdown with JavaScript.
Convert HTML strings or DOM nodes to Markdown in JavaScript applications running in Node.js or the browser. Configure heading, list, code-block, and link styles, add custom conversion rules, or extend the library with plugins. GitHub Flavored Markdown tables and task lists are available through the separate GFM plugin.
Product preview
See Turndown in action

What is Turndown best for?
Turndown is a free Markdown tool best suited to embedding configurable html-to-markdown conversion in an application. It is available as Library on Web, CLI, and its source status is open source.
At a glance
- Pricing
- Free
- Source
- Open source
- Best for
- Embedding configurable HTML-to-Markdown conversion in an application
Capabilities
- HTML to Markdown
- Node.js and browser use
- DOM node conversion
- configurable output styles
- custom rules
- GFM plugin
Platforms
Surfaces
Related tools
Markdownee
Crawl websites into Markdown with TypeScript and Python tools.
Extract web pages as Markdown, plain text, or HTML with a CLI and libraries for TypeScript and Python. Markdownee combines Trafilatura Core content extraction with Crawlee crawling, configurable link filters, page and depth limits, and optional image downloads. The free web playground previews one page and generates commands for larger crawls. Self-hosted code is free under Apache-2.0; optional hosted Apify runs have separate usage pricing.
Web app · CLI · Library
Web · CLI
Markedly
Convert documents, spreadsheets, and images to Markdown on Mac.
Drop files or folders into a native macOS app to convert DOCX, PDF, RTF, HTML, spreadsheets, delimited data, and images into GitHub Flavored Markdown. Markedly works locally without uploads, accounts, or analytics and supports batch conversion, OCR, Finder Services, and Shortcuts automation.
Desktop app
macOS