HTML to Markdown Converter

Convert HTML to Markdown online with rich-text paste, public webpage URLs, GFM tables, live preview, configurable cleanup, and private batch conversion. Open multiple HTML files, review each result, then download one .md file or the complete Markdown batch as a ZIP.

HTML input0 chars
Loading HTML editor…
Loading Markdown editor…
0 HTML tags0 Markdown chars0 noise removed

Tip: copy formatted content from a web page or rich-text editor and paste it here. The original HTML is captured automatically.

GFM tables and task listsNo uploads or server conversionScripts and styles always removed

What Is an HTML to Markdown Converter?

An HTML to Markdown converter reads structured webpage markup and rewrites meaningful content as portable Markdown. Headings become # syntax, emphasis becomes **bold** or *italic*, links and images become Markdown references, and standard tables become editable GFM pipe tables.

Use paste for a selected article, Fetch URL for a public webpage, or open multiple local files for batch HTML to Markdown conversion. The file queue keeps every source editable, applies the current cleanup rules to each document, and packages all results into a local ZIP.

Paste rich text or HTML sourceFetch a public webpage URLBatch-convert up to 50 HTML filesDownload all Markdown files as ZIPPreserve useful links and imagesRemove scripts and visual noise
HTML to Markdown Converter

A More Useful HTML to Markdown Converter

This browser tool combines fast online conversion with a multi-file batch queue, ZIP export, rich clipboard input, page-noise filtering, GFM tables, and safe handling for structures Markdown cannot represent.

Paste, Open, or Fetch HTML

Paste source or rich text, open private local .html files, or fetch a public webpage URL. Local input stays in your browser, while relative links and images from fetched pages are resolved before conversion.

Batch HTML to Markdown

Select or drop up to 50 HTML files, switch between them in a responsive batch queue, apply the same conversion rules, and download every result together as a Markdown ZIP.

HTML Table to Markdown

The HTML to Markdown table converter turns ordinary tables into readable GFM pipe syntax. When a table uses rowspan, colspan, or nesting, preserve its original HTML instead of silently losing structure.

LLM Clean Mode

Use HTML to Markdown clean mode to remove navigation, sidebars, forms, ads, cookie banners, scripts, styles, and page chrome while retaining article structure for RAG ingestion.

GFM-Compatible Output

HTML to Markdown output preserves headings, nested lists, task lists, blockquotes, links, images, fenced code, strikethrough, and tables as clean GitHub Flavored Markdown.

Configurable Markdown Style

HTML to Markdown settings let you choose ATX or Setext headings, dash or asterisk bullets, fenced or indented code, and whether links, images, or complex tables remain.

Convert HTML to Markdown in 3 Steps

Go from raw HTML, copied web content, a public URL, or a batch of local files to readable Markdown without installing another app.

1

Paste, fetch, or add an HTML batch

Start with source code, formatted clipboard content, a public webpage URL, or select multiple .html, .htm, and .xhtml files. Local files appear in a switchable batch queue.

2

Choose cleaning and format rules

Configure HTML to Markdown cleaning rules: enable LLM mode, keep or remove links and images, preserve merged tables, and select heading, list, and code-block styles.

3

Preview, copy, or export the batch

Review each file as Markdown source or a rendered preview, download the active .md file, or export every converted file in one private ZIP.

LLM and RAG ready

Clean Web Content Before It Reaches an LLM

Raw pages waste context on navigation, forms, cookie notices, social widgets, CSS, and JavaScript. The HTML to Markdown clean mode removes common boilerplate while keeping headings, lists, links, code, quotes, and tables that carry document meaning.

This is useful before chunking documents for embeddings, preparing RAG sources, archiving research, or adding a web article to an AI prompt. Always review the output: a generic cleaner cannot know whether a site-specific sidebar is noise or essential content.

LLM Clean ModeCLIENT-SIDE
KeptHeadings, paragraphs, lists, code, tables
RemovedNavigation, ads, forms, scripts, styles
OptionalLinks, images, merged-table HTML
OutputReadable GFM for chunking and prompts

HTML Table to Markdown Without Silent Data Loss

A reliable HTML to Markdown workflow converts simple tables to GFM pipe syntax and treats complex tables differently because Markdown has no native rowspan, colspan, caption, or nested-table model.

Standard table → GFM

Portable and easy to edit

| Name | Role |
| --- | --- |
| Ada | Engineer |

Merged table → preserved HTML

Structure survives the conversion

<table>
  <tr><th colspan="2">Total</th></tr>
  ...
</table>

HTML to Markdown Libraries for Python, Node.js, and Go

Use the online tool for interactive work. Choose an HTML to Markdown library or CLI when conversion belongs inside a scraper, migration, ingestion pipeline, build process, or reusable automation skill.

EnvironmentToolBest fit
JavaScript / BrowserTurndownCustom rules, browser apps, GFM plugins
Node.jsnode-html-markdownHigh-volume server and batch workloads
PythonmarkdownifyScrapers, notebooks, Beautiful Soup workflows
Pythonhtml2textScripts, CLI jobs, readable text conversion
Gohtml-to-markdownExtensible rules, CLI, whole-site pipelines
Python markdownify
from markdownify import markdownify

markdown = markdownify(
    html,
    heading_style="ATX"
)
JavaScript Turndown
import TurndownService from "turndown"

const service = new TurndownService()
const markdown = service.turndown(html)

Local HTML Stays in Your Browser

Pasted source, individual files, and complete HTML batches are parsed, previewed, edited, and converted on your device. Even the multi-file Markdown ZIP is assembled locally—there is no upload queue or document database.

No sign-upNo local-file uploadNo content retention

Local files

Single and batch HTML conversion runs entirely in this browser tab.

Local ZIP export

Every converted .md file is packaged without a server round-trip.

Guarded URL exception

Fetch URL retrieves only the public page you request, with private hosts, redirects, time, and size restricted.

HTML to Markdown Frequently Asked Questions

Practical answers about online and batch conversion, ZIP downloads, Python and Node.js libraries, tables, privacy, and LLM workflows.

How do I convert HTML to Markdown online?
Paste HTML or formatted rich text, open one or more local HTML files, or click Fetch URL and enter a public webpage address. The converter creates Markdown on the right. Review the preview, adjust cleaning options, then copy or download the result.
Can I batch convert multiple HTML files to Markdown?
Yes. Select or drop up to 50 .html, .htm, or .xhtml files, up to 5 MB each. Use the batch queue to inspect or edit every source, then download all converted .md files together in a ZIP generated locally in your browser.
Is this HTML to Markdown converter private?
Pasted and local HTML conversion, batch processing, previews, and ZIP creation run in your browser. Fetch URL sends the public address to a protected server route so it can retrieve the page, but the response is not stored.
Can it convert an HTML table to Markdown?
Yes. Standard tables become GFM pipe tables. Because Markdown has no rowspan or colspan syntax, merged and nested tables can remain as raw HTML when Preserve merged tables is enabled.
Which Python library converts HTML to Markdown?
markdownify is a practical choice for Beautiful Soup-based conversion, while html2text offers a mature command-line and Python workflow. Compare their options against your table, escaping, and filtering requirements.
Which JavaScript or Node.js HTML to Markdown library should I use?
Turndown is extensible and works in browsers or Node.js with GFM plugins. node-html-markdown focuses on fast, readable output for larger Node.js workloads.
How does HTML to Markdown help LLM and RAG pipelines?
Markdown removes verbose tags and makes document hierarchy explicit while consuming fewer characters. Clean mode also removes common navigation and advertising noise before you send the result to an embedding or prompt pipeline.
Are links, images, code blocks, and task lists preserved?
Yes. Links and images are configurable, while fenced code, nested lists, task items, strikethrough, headings, and blockquotes are converted to readable GFM syntax.
Why does some HTML remain in the Markdown output?
Markdown cannot represent every HTML structure. This converter deliberately preserves merged or nested tables as HTML when that is safer than flattening cells and losing information.

Convert HTML to Markdown Now

Return to the private converter, paste HTML, fetch a page, or open a batch of local files. Copy one result or download every Markdown file as a ZIP.