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
mdPretty
Style Markdown as paginated PDFs with themes, covers and contents
mdPretty converts pasted Markdown or uploaded .md, .markdown and text files into styled PDFs. Its source editor sits beside a paginated preview, with five themes, accent colors, Letter or A4 paper, optional covers and a table of contents. GitHub-style tables, task lists and highlighted code are supported, and multiple input files can be previewed and downloaded separately. Three unmarked downloads are free each day; later downloads add a small attribution line. No account is required. Preview rendering runs in the browser, but PDF generation sends the document to the server; the service says it deletes that document after conversion. MarkdownList checked a synthetic document in the browser and triggered a successful PDF download.
Web app
Web
MDToCard
Turn Markdown into themed PNG cards and social carousels in the browser
MDToCard pairs a Markdown source editor with a live card preview for creating study sheets, technical snippets and social graphics. Choose a theme, adjust typography and dimensions, and export a long image or split a document into cards automatically or with horizontal-rule dividers. Each card downloads or copies as a 2× PNG; cards are saved individually rather than as a batch ZIP. The current editor offers nine themes, although some homepage sections still describe five. Tables, task lists and language-tagged highlighted code render in the preview. Rendering and image generation happen in the browser, with drafts kept in local storage. The tool is free without an account or watermark. It does not currently provide PDF or SVG output, a public API or an MCP server. MDToCard at mdtocard.com is a separate product from similarly named MD2Card and MD2Cards.
Web app
Web