HTML to Markdown

Converts HTML into Markdown, keeping headings, links, lists, bold and italic text, code and simple tables. Use it to move web content into notes or a documentation system, or to get a cleaner version of a snippet you copied from a page.

Up to 1 MiB.

Options

How to use the HTML to Markdown

  1. Paste HTML.
  2. Select Convert to Markdown.

Supported elements

  • Headings, paragraphs, line breaks, bold, italic, strikethrough, inline code and code blocks, links, images, lists (also nested), block quotes, horizontal rules and simple tables.
  • Elements without a Markdown equivalent keep only their text, and are listed in a note.

Safety and limitations

  • The HTML is read as text, never rendered: scripts, styles, forms and embedded frames are removed and nothing is loaded.
  • Links and images keep only http, https, mailto and relative addresses; javascript: and other schemes are removed.
  • Table cells that span several rows or columns, and attributes such as colours and sizes, are not kept.

Worked examples

Article snippet

Input

<h1>Title</h1>
<p>Some <strong>bold</strong> and <em>italic</em> text with a <a href="https://example.com">link</a>.</p>
<ul><li>One</li><li>Two</li></ul>

Result

# Title

Some **bold** and *italic* text with a [link](https://example.com).

- One
- Two
Unsafe link removed

Input

<p><a href="javascript:alert(1)">Click</a> <script>alert(2)</script>safe text</p>

Result

Click safe text

Practical uses

  • Move web content into notes

    A writer copies a short HTML article snippet and wants it in a notes or documentation tool. They paste it and select Convert to Markdown. The headings, links and lists carry over as simple Markdown that pastes cleanly.

  • Clean up a CMS export

    An editor has HTML exported from an old content system and needs simple Markdown for a new site. They paste it and convert it. Headings, lists and links come out in plain form, and a note lists any elements that kept only their text.

Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.