Skip to content
Pricing Failed solves are free. You only pay when it works. See prices

Free tools

HTML to Markdown

Paste HTML and get Markdown back: headings, lists, links, tables and code, with scripts, styles and navigation clutter left out.

Or paste it below. We fetch public pages only, as a plain request with no JavaScript, so a site behind a bot check may answer with its block page.

HTML

Markdown

Paste HTML on the left. The Markdown appears here.

When to use it

You've scraped a page and want its words and structure without the markup. Paste the HTML and copy the Markdown.

Why Markdown

Markdown keeps what a page says and drops how it looks. A scraped article shrinks to a fraction of its HTML and reads cleanly in a diff. It's also the form language models handle best. So it's a common last step before you store a page or put it in a prompt.

What's kept and what's dropped

  • Kept: headings, paragraphs, emphasis, links, images, lists (nested and numbered), block quotes, code blocks with their language, definition lists and tables.
  • Dropped: scripts, styles, forms, embedded frames, inline SVG and anything marked hidden.
  • With main content only on, navigation, page headers, footers and sidebars are skipped too. The conversion starts from the page's <main> or <article> if it has one.

Tables and other edge cases

Simple tables become pipe tables. A table with merged cells can't be written that way, so it's kept as plain text in a code block, row by row, instead of being mangled. Characters that Markdown would read as formatting, such as * or _ in ordinary text, are escaped.

The HTML is parsed in a detached document. Nothing in it runs, and none of its images or scripts are requested. If the page you want only appears after a bot check, find out which bot protection it uses first.

Questions people ask

How do I convert HTML to Markdown?

Paste the HTML and copy the Markdown from the other side. Turn on main content only to drop the navigation, header and footer.

Why convert web pages to Markdown?

Markdown keeps the structure, such as headings, lists and tables, and drops the markup around it. That makes pages smaller and much easier to feed to a language model, index for search or store as notes.

What happens to tables?

Simple tables become Markdown pipe tables. Tables with merged cells have no Markdown equivalent, so they are written out as plain text rather than as a broken table.

Are relative links fixed?

Yes, if you give a base URL. Links and image addresses are then written out in full, so they still work outside the original page.

Get started

Blocked by bot protection? $5 is 5,000 solves.

No subscriptionCredit never expiresFailed solves are free