HTML to Markdown

Convert HTML code to Markdown text

How to Use HTML to Markdown

  1. Paste your HTML in the left panel. A sample is loaded to show how it works.
  2. The Markdown appears on the right as you type.
  3. Click Copy to copy the Markdown.

What the output looks like

The converter uses Turndown, a widely used HTML-to-Markdown library, set up for the style most Markdown tools expect: # for headings, - for bullet points, ``` fences for code blocks, plus links, images, bold, italic and blockquotes. Scripts and styles are dropped, since Markdown has no place for them.

Elements that Markdown can't express, such as tables in standard Markdown, coloured text or complex layouts, are simplified or kept as plain text. Check tables by hand if you need them in GitHub-style Markdown.

Key Features & Practical Use Cases

  • Moving blog posts or docs from an HTML site into a Markdown-based one like a static site generator or GitHub.
  • Turning copied web content into Markdown notes for Obsidian, Notion or a README.
  • Cleaning up HTML emails or exported pages into readable plain text with formatting.

Frequently Asked Questions

Does it convert HTML tables?

Not into Markdown tables. Table contents come through as plain text, so rebuild the table by hand or keep it as HTML.

Can I convert Markdown back to HTML?

Yes, use our Markdown to HTML converter.

Can I paste a whole web page?

You can paste its HTML source. Headers, menus and footers will come along too, so trim them first for a tidy result.

Is my HTML uploaded?

No. It's converted in your browser.

About OneClickly

OneClickly is a set of 119 free tools for PDFs, images, text, everyday math and code. They run in your browser, so the files and text you work with stay on your device.

Related Tools