Privatool

HTML to Markdown Converter Online Free

Convert HTML source code to clean, readable Markdown instantly. Supports headings, paragraphs, lists, links, images, tables, code blocks, and blockquotes. Customize heading style, delimiter choices, and link format. Preview the rendered Markdown output or download as a .md file. All conversion happens in your browser.

100% private. HTML is converted locally in your browser using Turndown.js. No content is sent to any server.

Loading HTML to Markdown Converter…

How to Convert HTML to Markdown Free

  1. 01

    Paste HTML

    Paste HTML source into the left panel, upload an .html file, or click "Sample" to load a demo. Conversion starts automatically.

  2. 02

    Adjust conversion options

    Choose heading style, bold/italic delimiters, code block format, and link style. Toggle HTML preservation and comment stripping.

  3. 03

    Copy or preview Markdown

    Copy the Markdown output, download as .md, or toggle the Preview mode to see the rendered result before using it.

Frequently Asked Questions

What is the difference between ATX and Setext heading styles?

ATX headings use hash characters: # for H1, ## for H2, etc. — the most widely used style. Setext headings underline H1 with equals signs (===) and H2 with dashes (---). ATX is preferred for most use cases as it supports all six heading levels, while Setext only supports H1 and H2.

Why does my converted Markdown still contain HTML tags?

HTML elements that have no Markdown equivalent (like <div>, <span>, <table> with complex formatting, or custom attributes) are preserved as raw HTML by default when "Preserve HTML" is enabled. This is valid in most Markdown parsers. Disable "Preserve HTML" to attempt stripping unsupported elements instead.

Can I convert a full webpage's HTML to Markdown?

Yes. View the page source in your browser (Ctrl+U or Cmd+U), copy all, and paste into the HTML input. The converter will process the entire document. For best results, you may want to copy just the main content section rather than the full page source including head, scripts, and navigation.

Does this tool support GitHub Flavored Markdown (GFM)?

Yes. Tables, fenced code blocks, and task lists (when present in the source HTML) are converted to their GFM equivalents. GFM is supported by GitHub, GitLab, Notion, and most modern Markdown renderers.

What is the difference between inline and reference link styles?

Inline links embed the URL directly: [link text](https://example.com). Reference links separate the URL to the bottom of the document: [link text][1] ... [1]: https://example.com. Reference style is more readable for documents with many links and keeps the text flow clean.

Related Tools