Skip to content
migration.tools
HTML to Markdown

HTML to Markdown converter

Moving content out of a CMS, a knowledge base or an old static site? Convert its HTML into Markdown that reads well in a repository and renders the same everywhere.

Going the other way? Markdown to HTML

HTML

Markdown

The result appears here as soon as there is input.

Processed on this device. Nothing you paste or drop is uploaded.

How to use it

  1. 1Paste your HTML or drop a file onto the input panel.
  2. 2Adjust the options — the result updates as you type.
  3. 3Copy the Markdown or download it. Drop several files to convert a batch into one ZIP.

How elements are converted

Headings become # to ######, lists keep their nesting, links and images keep their URLs and alt text, code blocks become fenced blocks, and tables become pipe tables. Scripts, styles and comments are removed.

Layout wrappers — divs, sections, spans — are unwrapped, so you get the content rather than the template. For a whole page, paste only the main article element if you don't want the navigation and footer.

Questions

Can I convert many pages at once?

Yes. Drop a set of .html files and download a ZIP of .md files with matching names.

Guides that use this tool