Data & docs2 min read

How to Convert HTML to Markdown for Notion, Obsidian or GitHub

Move web pages and CMS content into Markdown with headings, links, lists and code blocks intact. Scripts and styling are stripped.

By the ZapMorph team

HTMLMarkdown
On this page
  1. How to convert HTML to Markdown with ZapMorph
  2. Getting cleaner output
  3. Where to use it
  4. Related
  5. What converts
  6. Common migrations
  7. Tips
  8. Summary
  9. FAQs

Just want it done?

Open the HTML to Markdown Converter — it runs in your browser and nothing is uploaded.

Open the tool

Migrating a blog to a static site generator, moving docs into GitHub, pulling articles into Obsidian, or tidying a CMS export: they all start with HTML and end with Markdown.

How to convert HTML to Markdown with ZapMorph

1. Open the converter

Go to the HTML to Markdown converter.

HTML to Markdown converter
The HTML to Markdown converter

2. Add your HTML files

Drop in .html or .htm files.

HTML files added
HTML files ready

3. Convert and download

Click Convert to Markdown.

Markdown files ready to download
Clean Markdown

Getting cleaner output

  • Strip the chrome. A saved web page includes navigation, cookie banners and footers. If you only want the article, copy the article's HTML (right-click → Inspect → copy the main element) into a file first.
  • Tables: simple tables convert well. Complex layout tables (old-school websites) won't make sense in Markdown.
  • Images keep their URLs. If those point to the old site, download the images too.

Where to use it

  • Notion: import Markdown files directly (Import → Text & Markdown).
  • Obsidian: drop the .md files into your vault.
  • Static sites: Hugo, Jekyll, Astro, Eleventy and Docusaurus all use Markdown content.

What converts

HTMLMarkdown
<h2>Title</h2>## Title
<strong>bold</strong>**bold**
<a href="…">link</a>[link](…)
<ul><li>- item
<pre><code>Fenced code block

Common migrations

  • WordPress to a static site (Hugo, Astro, Jekyll, Eleventy).
  • Web pages into Notion or Obsidian.
  • Old documentation into GitHub READMEs or wikis.

Tips

  • Clean source gives clean Markdown. Save the article content rather than a whole page with menus and footers.
  • Preview the result in the Markdown viewer.

Summary

The HTML to Markdown converter keeps the structure that matters and drops the rest, perfect for content migrations.

FAQs

What's kept?

Headings, paragraphs, links, bold and italic, lists, images, blockquotes and code blocks.

What's removed?

Scripts, styles, and layout markup that has no Markdown equivalent.

Can I convert a whole saved web page?

Yes, but menus, footers and sidebars come along too. Trim the HTML to the main content first for the cleanest result.

Is the HTML uploaded?

No. It's converted in your browser.

Are images kept?

Image tags become Markdown image links pointing to the original image addresses.

Try the HTML to Markdown Converter

Free to start, no install, and your files never leave your device.

Open the tool

Related guides

All guides