↓M
Runs in your browserNothing is uploadedText

HTML to Markdown

Convert HTML into readable markdown, keeping headings, lists, links, images, tables and code blocks, and dropping scripts and styles.

Loading tool…
Short answer

HTML to Markdown converts web markup into readable markdown. Headings, paragraphs, bold and italic, links, images, nested lists, quotes, tables and code blocks are kept, while scripts, styles and layout markup are dropped. It runs in your browser.

What survives the conversion?

Structure, not styling

Markdown records what text is, such as a heading or a list, not how it looks. So headings, emphasis, links, lists, tables and code come across, while colours, fonts, classes and layout boxes are left behind.

Why use HTML to Markdown?

  • Move content into a markdown site. Bring old blog posts or help pages into GitHub, a static site or a notes app.
  • Readable source. Markdown is far easier to edit and review than nested HTML tags.
  • Scripts are never run. The HTML is parsed as a document in memory and read, not displayed, so nothing in it runs.

How to use HTML to Markdown, step by step

HTML to Markdown in PrintxPDF with a file loaded, options on the right and the run button below
HTML to Markdown with a file loaded: the steps below follow this screen.
  1. Paste HTML into HTML to Markdown. A whole page or a fragment both work.
  2. Check the markdown. It updates as you type.
  3. Copy or download it as a .md file. To check it, paste it into Markdown to HTML.

Frequently asked questions

What happens to tables?

Simple tables become markdown pipe tables. Merged cells cannot be shown in markdown, so their content lands in one cell.

Can I give it a web address?

No. Paste the HTML itself. You can copy it from your browser's View Source.

Are images downloaded?

No. Images become markdown image links pointing to the same address as before.

Looking for the long version? The guides cover each of these jobs in depth.