Skip to content
AI Web Toolbox

Developer tools

HTML to Markdown Converter: Rules and Example

Use HTML to Markdown when you need a quick way to work through this task. Convert HTML markup into Markdown. This guide walks through a small example and the checks to make before you use the result.

Markdown keeps a document readable as plain text, which suits README files, static site generators and note apps. Converting saves retyping headings, links and emphasis when you move content out of a web editor.

How to use the tool

  1. Paste an HTML fragment, not a whole page with menus and scripts, into “Your input”.
  2. Press “Convert” and read the Markdown beside your source.
  3. Restore numbering and rebuild tables by hand, then use “Copy result”.
Open HTML to Markdown

Try a small example

Example input or settings

<h2>Opening hours</h2><p>We open <strong>Monday</strong> to Friday.</p><ol><li>Ring the bell</li><li>Wait inside</li></ol>

What to check

Headings h1 to h4, bold, italic, links, images, code, quotes, paragraphs and list items are converted. Tables lose their structure and cell text runs together, h5 and h6 become plain text, nested lists lose indentation, and text inside script or style tags stays in the output. The HTML is processed on this site’s server.

How do you convert HTML to Markdown?

Paste <h2>Opening hours</h2><p>We open <strong>Monday</strong> to Friday.</p><ol><li>Ring the bell</li><li>Wait inside</li></ol> and press “Convert”. You get the line ## Opening hours, then We open **Monday** to Friday., then two lines starting with a dash. The numbered list has become a bulleted one.

When this is useful

For a real task, replace the sample with your own input and check the output in its final context. Keep a copy of the original if the change is hard to reverse.

Before you rely on the result

Validate the output in your own environment. Formatting or conversion does not prove that data or code is safe or correct.

Browse all guides