HTML to Markdown converter

Paste HTML from a web page, a CMS or an email template and get tidy Markdown for docs, README files, wikis or notes apps.

Private: works in your browser, nothing is uploaded.

How to use the HTML to Markdown tool

  1. Paste HTML code.
  2. Choose the heading and bullet style.
  3. Copy the Markdown or download it as a .md file.

What is converted

Headings, paragraphs, bold and italic text, links, images, ordered and unordered lists, blockquotes, inline code and code blocks become their Markdown equivalents. Scripts and styles are dropped. Conversion uses the Turndown library.

Typical uses

  • Move content from WordPress or another CMS to a static site generator.
  • Save web articles to Obsidian, Notion or another Markdown notes app.
  • Turn HTML documentation into README files for GitHub.

Privacy

Everything runs in your browser. Your files and text are not uploaded to our server or stored anywhere.

Cleaning up before you convert

Markdown has no equivalent for many things HTML can do: colours, fonts, column layouts, forms and most inline styles. They are simply dropped, which is usually what you want. If the result looks cluttered, check the source: menus, cookie banners, share buttons and footers copied together with the article all turn into text too.

The easiest fix is to copy only the part you need. In most browsers you can right-click the article, choose “Inspect”, select the element that wraps the text and copy its outer HTML. Pasting that fragment gives much cleaner Markdown than pasting the whole page.

Markdown flavours

There is no single Markdown standard. Basic syntax (headings, lists, links, bold, italic, code) works everywhere. Tables, task lists and strikethrough come from GitHub Flavored Markdown and work on GitHub, GitLab, Obsidian, Notion imports and most static site generators, but not in every older tool.

If the Markdown will be read by a specific system, paste a small sample there first to check that tables and code blocks render as expected.

Frequently asked questions

Can I paste a whole web page?

Yes. Paste the HTML source; navigation and scripts may come along as text, so remove what you do not need.

Are tables supported?

Simple tables are converted to text. For complex tables, keeping them as HTML inside Markdown usually works better.

Which heading style should I choose?

The # style (ATX) is the most common and works everywhere. The underlined style only supports two heading levels.

Can I convert back to HTML?

Yes, with the Markdown to HTML converter.

What happens to images?

Images become Markdown image links with the original address and alt text. The image files themselves are not downloaded, so if the source page disappears the images will break. Save important images separately.

Are links kept?

Yes. Links become Markdown links in the form [text](address). Relative links such as /about/ stay relative, so replace them with full addresses if the Markdown will live somewhere else.