Free HTML to Markdown Converter

Free HTML to Markdown converter. Turns headings, links, images, nested lists, tables, code blocks and quotes into clean GitHub-style Markdown in your browser.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow to Convert Web Pages and HTML Content Into Clean Markdown →

About the HTML to Markdown Converter tool

Moving content out of a website, a rich-text editor or an old CMS often means dealing with HTML full of tags and inline styles. Markdown is far easier to edit, diff and store in Git, and it is what static site generators, wikis and note apps expect. This converter turns HTML into clean Markdown in one step.

The converter parses your HTML with the browser's own DOMParser, then walks the document tree. Headings become # headings or underlined Setext headings, paragraphs are separated by blank lines, bold and italic become ** and *, links and images keep their URLs and titles, and ordered and unordered lists, including nested lists and checkbox task items, are indented correctly. Code blocks become fenced blocks with the language taken from a language- class, blockquotes get > markers, and tables become pipe tables with alignment. Scripts, styles and form controls are dropped.

Pick your bullet character and heading style, and choose whether to keep tags such as <sup> and <u> that Markdown cannot express. The conversion runs entirely in your browser.

How to use HTML to Markdown Converter

  1. Paste HTML into “HTML input”, click “Open file” for an .html file, or try “Load sample”.
  2. Choose the “Bullet marker” and “Heading style” you prefer.
  3. Decide whether to keep <sup>, <sub> and <u> as inline HTML.
  4. Copy the result from “Markdown output” or click “Download” for an .md file.

Features

Real DOM parsing

Uses the browser's HTML parser, so messy or unclosed tags are handled like a browser would.

Nested lists and tasks

Multi-level lists keep their indentation and checkboxes become [ ] or [x].

Tables with alignment

HTML tables become GitHub-style pipe tables, with pipes in cells escaped.

Code blocks with language

pre/code blocks become fenced code blocks, keeping language-xyz hints.

Configurable output

Choose -, * or + bullets and ATX (#) or Setext heading styles.

When to use it

  • Migrate blog posts from WordPress or another CMS to a static site generator.
  • Save a web article as Markdown for Obsidian, Notion or another notes app.
  • Convert documentation written in HTML into Markdown for a Git repository.
  • Clean up HTML copied from a rich-text editor into plain, portable text.
  • Prepare content for a README or a wiki page.

Frequently asked questions

Can I convert a whole web page?

Yes. Paste the page source or open the saved .html file. Navigation and footers are converted too, so you may want to paste only the main article HTML.

What happens to inline styles and classes?

They are dropped, because Markdown has no styling syntax. Only structure and text are kept.

Are HTML tables supported?

Yes. Tables become pipe tables. Markdown tables cannot contain merged cells or block content, so complex tables are simplified.

How are line breaks converted?

A <br> becomes a backslash at the end of the line, which CommonMark and GitHub treat as a hard line break.

Is my HTML uploaded?

No. Parsing and conversion happen in your browser.

Related tools