HTML to Markdown Converter

Turn HTML into clean Markdown with headings, links, lists, code blocks and GitHub-style tables, with choices for heading, bullet and code styles.

Developer Tools Runs in your browser · no upload

Reviewed 23 November 2026 · Free · No account needed

ExecutionYour browserInput never leaves your tab
File retentionNoneNothing is stored
AccountNot requiredNo sign-up, no paywall
PriceFreeNo trial, no usage cap on the tool itself

How to use

  1. Paste your HTML, or open an .html file.
  2. Choose heading style, bullet character, code block style and whether to keep tables.
  3. Read the Markdown on the right; it updates as you type.
  4. Copy it, or download it as a .md file.

Example

Input: <h1>Title</h1><p>A <strong>bold</strong> <a href="https://e.com">link</a></p>

Output: # Title A **bold** [link](https://e.com)

How it works

The open-source Turndown library, loaded only when you open this tool, parses the HTML into a document tree and rewrites each element as its Markdown equivalent. The GitHub-flavoured plugin adds tables, strikethrough and task lists.

h1-h6 become # or underline headings; strong and em become ** and *; a becomes [text](url); ul and ol become list items; pre/code becomes fenced or indented blocks; table becomes pipe tables when enabled.

Another example

<ul><li>one</li><li>two</li></ul> becomes "- one" and "- two" on separate lines with the dash bullet style.

Limits and edge cases

  • Markdown cannot express everything in HTML; styles, classes, layout and most attributes are dropped.
  • Tables with merged cells or nested tables may not convert cleanly.
  • Scripts, styles and templates are removed rather than converted.
  • Input is limited to about 2 million characters.
  • Script, style, noscript and template elements are removed entirely.
  • Turning tables off leaves the cell text in plain paragraphs.
  • Whitespace and line breaks in the HTML source are collapsed as a browser would.

Privacy

The HTML is converted in this browser tab. It is parsed in a detached document, so nothing in it runs, and nothing is uploaded.

About this page

Written and reviewed by Toolnexo on 23 November 2026. The limits above describe the published tool, not an idealised version of it. If a result looks wrong or the page is unclear, email [email protected] with the tool URL and what you entered. Corrections are published here.

Related tools

FAQ

Questions about HTML to Markdown Converter

How do I convert HTML to Markdown?

Paste the HTML into the left box. The Markdown version appears on the right straight away. Headings become # lines, bold and italic become ** and *, links keep their address, and lists, code blocks and tables are converted too. Copy the result or download it as a .md file.

Are HTML tables converted?

Yes, with the Tables and strikethrough option on, simple tables become GitHub-style pipe tables. Tables with merged cells or other tables inside them are not representable in Markdown, so check those by eye.

Is it safe to paste HTML with scripts?

Yes. The HTML is parsed into a detached document that is never shown or run, and script and style elements are removed from the output. Nothing is sent to a server.

Why does the Markdown look different from my page?

Markdown describes structure only: headings, emphasis, links, lists and code. Colours, fonts, spacing, classes and layout from HTML and CSS are not part of Markdown and are not carried over.