HTML to Markdown: Turn Web Content into Clean .md Text

Change HTML source, or rich text you copied from a website, Word or Google Docs, into tidy Markdown. Headings, lists, links, pictures, tables and code come out as GitHub Flavored Markdown.

  • Code or rich-text input
  • Handles tables and code
  • Works in your browser

How to use the HTML to Markdown tool

  1. Pick an input typePaste raw HTML, or choose “Paste from a web page” and drop in formatted text you copied.
  2. See it convertMarkdown shows up on the right the instant you paste, and keeps up with every edit.
  3. Tune the styleChoose which bullet symbol to use and whether links stay inline or move to references at the bottom.
  4. Copy or saveCopy the Markdown to your clipboard or save it as a .md file.

Converter features

  • Paste formatted textGrab an article from a site, Word or Google Docs and get Markdown without ever seeing HTML.
  • TablesHTML tables turn into Markdown pipe tables, keeping each column’s alignment.
  • CodePreformatted code turns into fenced blocks, with the language label preserved when present.
  • Lists of every kindBullets, numbers, nested levels and checkbox lists, which become task items.
  • Noise stripped outScripts, style blocks, forms and other non-content parts are dropped automatically.

Reasons to switch from HTML to Markdown

Markdown is far easier to read and edit than raw HTML, plays nicely with Git and note apps, and is what most static site generators and documentation systems take as input. Converting spares you from retyping content by hand.

  • Migrating posts from WordPress or another CMS to a static site built with Hugo, Jekyll or Astro
  • Clipping an online article into Obsidian, Notion or Joplin as a note
  • Making a README out of a Word or Google Docs document
  • Turning cluttered HTML from an email or web page into clean, structured text

What each tag turns into

HTML tagMarkdown result
<h3>### Subheading
<b> / <i> / <s>**strong** / *slanted* / ~~removed~~
A link element[label](address), or a numbered reference like [label][1]
An image element![description](file)
Preformatted codeA fenced code block
A table elementA pipe-separated table

Things Markdown has no syntax for, like underlined, superscript or subscript text, are left as short HTML tags, which nearly every Markdown renderer shows properly.

Tips for the tidiest output

Web pages are full of code unrelated to the actual content: navigation menus, cookie notices, analytics scripts and layout containers. Feed the converter only the portion you really need.

  • Grab the article, not the whole page. Highlight the text you want in the browser and paste it in. You’ll get headings, links and lists minus the surrounding menus.
  • From Word or Google Docs, simply copy and paste. Headings, bold, italics, lists and tables come across, while fonts and colours are discarded, which is normally ideal for Markdown.
  • Double-check pictures. Markdown only records where an image lives. A relative address such as /images/photo.jpg won’t load anywhere else until you prefix the site’s domain or move the image to its new location.
  • Tables with merged cells have no Markdown equivalent and get simplified, so review them once converted.

Output follows GitHub Flavored Markdown, which GitHub, GitLab, Notion, Obsidian, Discord and most static site generators all understand.

Related tools

Going the opposite way? Markdown to HTML handles that. To keep editing what you converted, load it into the Markdown Editor.

Frequently asked questions

How can I turn a web page into Markdown?
Highlight and copy the content on the page, pick “Paste from a web page” here, and paste. The Markdown is generated immediately.
Are tables converted?
Yes. They become GitHub-style pipe tables, and left, centre and right column alignment is retained.
Will it work with a Word document?
Yes. Copy from Word or Google Docs and paste using “Paste from a web page” mode; headings, bold, lists and links come through.
What happens to scripts and CSS?
They’re discarded. Only real content, meaning text, links, images, lists, tables and code, is converted.
Does my HTML get uploaded?
No. Everything happens inside your browser.