HTML to Markdown Converter
Convert HTML to clean Markdown: headings, links, images, lists, bold, italic, quotes and code blocks. Choose the heading, code block and bullet style.
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the HTML to Markdown Converter
- 1 Paste HTML, for example copied from a web page's source.
- 2 Choose the Markdown style you prefer.
- 3 Copy the Markdown or download it as a .md file.
About the HTML to Markdown Converter
Moving content from a website, CMS or e-mail into a README, wiki, static site or note-taking app usually means converting HTML to Markdown. The converter turns tags into their Markdown equivalents: <h1>–<h6> into # headings, <strong> into **bold**, <a> into [links](url), <img> into images, and lists, quotes and code blocks into their Markdown form.
Scripts, styles and noscript blocks are removed, because they don't belong in Markdown. Elements that Markdown can't express, such as tables in plain Markdown, divs and spans, are reduced to their text content. Choose between # headings (ATX) and underlined headings (setext), fenced (```) or indented code blocks, and -, * or + as bullet.
The conversion uses Turndown, a widely used HTML-to-Markdown library. It works on the HTML structure, so the cleaner the HTML, the better the Markdown. HTML copied from word processors often contains lots of extra spans and styles; the converter keeps the text and drops most of that clutter.
Frequently asked questions
Are tables converted?
Plain Markdown has no tables, so table cells are kept as text. For GitHub-style tables, you may need to add the | separators yourself.
What happens to classes and styles?
They are dropped. Markdown only describes structure (headings, lists, emphasis, links), not appearance.
Can I convert a whole web page?
Yes, paste its HTML source. Navigation, footers and sidebars are converted too, so you may want to paste only the main content.
Which heading style should I use?
# headings (ATX) are the most common and support all six levels; underlined headings (setext) only exist for levels 1 and 2.