Back to Home

HTML to Markdown

Convert HTML code to clean Markdown syntax

html-to-md
📄 Click to upload .html file or drag & drop
HTML Input
Markdown Output

About the HTML to Markdown Converter

Convert HTML to Markdown online. Paste HTML code or upload an .html file and get clean Markdown you can use in GitHub READMEs, static site generators (Hugo, Jekyll, Astro, Docusaurus), Obsidian, Notion or any Markdown editor.

Choose the Markdown style you prefer: ATX (#) or underlined headings, dash, asterisk or plus bullets, and fenced or indented code blocks. With GFM enabled, HTML tables and strikethrough are converted to GitHub Flavored Markdown.

It is a fast way to migrate blog posts and documentation from a CMS to Markdown files.

How to use HTML to MD

  1. Paste HTML. Paste HTML source into the input panel or upload an .html file.
  2. Set the style. Choose heading, bullet and code block style, and toggle GFM for tables.
  3. Copy or download. Copy the Markdown or download it as a .md file.

Features

  • Tables via GitHub Flavored Markdown
  • ATX or Setext headings
  • Choice of bullet character
  • Fenced or indented code blocks
  • Download as .md

Frequently asked questions

How do I convert a web page to Markdown?

Copy the page’s HTML (or the part you need), paste it into the input box and copy the Markdown from the output panel.

Does it convert HTML tables?

Yes. Enable the GFM option to convert tables and strikethrough into GitHub Flavored Markdown.

Is my HTML uploaded?

No. The conversion runs entirely in your browser with JavaScript. Your text is never uploaded to a server, so it is safe to use with private or confidential documents.

Can I convert Markdown back to HTML?

Yes — use the Markdown to HTML converter.

Related tools