HTML to Markdown Converter
Convert headings, text formatting, links, images, lists, quotes and code blocks into clean Markdown with one click. Results update instantly as you edit your HTML.
Convert HTML to clean Markdown in one click. Supports headings, links, images, lists, code blocks and GitHub-style tables. Fast, free and no signup.
Your HTML is converted inside your browser. We never send, save or store what you paste.
Paste HTML code, or copy content from a web page and click Paste rich content.
Pick the heading, list and code block styles, and add a base URL if you need one.
Copy the result or download it as a .md file.
Need to convert HTML to Markdown quickly? Paste your HTML code into this free online HTML to Markdown converter and get clean, readable Markdown instantly. It turns headings, paragraphs, bold and italic text, links, images, ordered and unordered lists, blockquotes, code blocks and even HTML tables into standard Markdown syntax. You can choose your preferred style for headings, bullets and code blocks, switch between inline and reference links, add a base URL to turn relative links into full links, and download the result as an .md file. There is no software to install and no signup, and your HTML is converted inside your browser so it is never uploaded. Whether you are moving blog posts to a static site, writing a README for GitHub, saving web content to your notes, or preparing text for documentation, this HTML to MD converter saves you from retyping everything by hand.
People find this tool by searching for html to markdown, convert html to markdown online, html to md, html to markdown converter or web page to markdown. Markdown is the plain text format behind README files, static site generators, wikis and note apps, so moving old HTML content into it is a very common task. This free HTML to Markdown converter handles headings, links, images, lists, code blocks and GitHub style tables, and it runs in your browser on Windows, Mac, Linux, Android and iPhone.
Convert headings, text formatting, links, images, lists, quotes and code blocks into clean Markdown with one click. Results update instantly as you edit your HTML.
Turn HTML tables into GitHub-style Markdown tables, checkboxes into task lists and strikethrough text into ~~tilde~~ syntax. Perfect for README files, issues and pull requests.
Select content on any web page, copy it, and use Paste rich content to convert it to Markdown without digging through the page source.
HTML is the markup language that web pages are written in, while Markdown is a lightweight text format that uses simple symbols to describe structure. For example, a pound sign creates a heading, asterisks make text bold, and a dash starts a list item. Markdown files are easier to read and edit as plain text, which is why they are widely used for documentation, README files, blog posts, wikis and notes. HTML to Markdown conversion takes the tags of an HTML page or snippet and rewrites them as the matching Markdown syntax, so you keep the structure and content without the markup clutter.
Converting HTML to Markdown with this tool takes only a few steps.
You can turn the content of a web page into Markdown in two ways. The quickest method is to select the part of the page you want, copy it, and click Paste rich content in the tool. Your browser may ask for permission to read the clipboard, and the converter then reads the copied HTML and converts it. The second method is to open your browser developer tools, right-click the element you want, choose Copy outerHTML, and paste it into the input box. This tool does not fetch pages from a web address, so it works with the content you copy, and nothing is requested from other websites.
This quick reference shows how common HTML elements are converted to Markdown.
| HTML | Markdown |
|---|---|
<h1> to <h6> | # to ###### before the heading text |
<p> | A paragraph separated by a blank line |
<strong>, <b> | **bold text** |
<em>, <i> | *italic text* or _italic text_ |
<del>, <s> | ~~strikethrough~~ (GitHub Flavored Markdown) |
<a href="..."> | [link text](https://example.com) |
<img src="..." alt="..."> |  |
<ul> with <li> | - item (bullet list) |
<ol> with <li> | 1. item (numbered list) |
<blockquote> | > quoted text |
<code> | `inline code` |
<pre><code> | A fenced code block with three backticks |
<hr> | --- horizontal rule |
<br> | A line break (two spaces at the end of the line) |
<table> | A GitHub-style pipe table |
<input type="checkbox"> | - [x] done and - [ ] to do task items |
Markdown does not have a table syntax in its original specification, but GitHub Flavored Markdown added pipe tables, which most platforms now support. When the GitHub option is on, this converter reads the rows and cells of each HTML table, uses the header row for the first line, adds the separator row, and keeps column alignment when the HTML sets it. Cells that contain several lines are flattened into one line, and a vertical bar inside a cell is escaped so the table does not break. Markdown tables cannot merge cells, so a cell that spans several columns is expanded into empty cells. If your table is complex, you may want to review the result or keep it as HTML.
GitHub Flavored Markdown, often called GFM, extends the basic syntax with tables, task lists, strikethrough text and fenced code blocks with a language name. These features are commonly used in README files, wikis, issues, pull requests and project documentation. With the GitHub option turned on, the converter produces Markdown that works well in those places. Code blocks keep their language when your HTML includes a class such as language-javascript, which helps with syntax highlighting.
Many publishing tools use Markdown files, including static site generators such as Jekyll and Hugo, documentation systems, developer platforms and note-taking apps. If your older posts or pages are stored as HTML, converting them to Markdown is the first step in moving them. Markdown is also a compact, easy-to-read format that is often used when preparing web content for editing, version control or sharing with AI tools. Always read the converted text and fix anything that does not look right before you publish it.
Markdown describes content structure, not design, so some parts of HTML cannot be carried over. Scripts, style sheets, forms, buttons, iframes, videos, audio, canvas and SVG graphics are removed. Colours, fonts, spacing, classes, IDs and page layout are not kept. Tags without a Markdown equivalent, such as sub, sup, u, mark and kbd, are replaced by their text, or kept as HTML if you turn on that option. If you need to keep a layout exactly as it is, Markdown is probably not the right format for that content.
Markdown has no single official version. CommonMark is a clear standard for the core syntax, and GitHub Flavored Markdown builds on it with extra features such as tables and task lists. Other platforms add their own extensions or support only part of the syntax. This converter produces CommonMark-style output, and adds the GitHub features when that option is on. If your destination uses a different flavor, check how it handles tables, strikethrough and line breaks.
Markdown is simpler than HTML, so some things cannot be carried over exactly. Use this table when the result looks different from the source.
| Problem | Likely cause | How to fix it |
|---|---|---|
| Links are relative, such as /about | The HTML did not contain the full address | Enter your site address in Base URL for relative links |
| Images are missing | Include images is turned off | Turn the option on |
| Tables did not convert | GitHub tables, task lists and strikethrough are off, or the table has no header row | Turn on the GitHub option and make sure the first row is a header |
| Underline, superscript or highlight is lost | Markdown has no standard syntax for them | Turn on Keep sub, sup, u, mark and kbd as HTML |
| Colors, fonts and layout are gone | Markdown describes structure, not styling | Add styling later in your site theme or editor |
| Complex columns became plain paragraphs | Multi-column layouts have no Markdown form | Rebuild the layout with your Markdown renderer, or keep that part as HTML |
| Headings use the wrong style | Setext and ATX styles are different | Choose # ATX or Setext under Headings |
Our HTML to Markdown converter runs in your web browser, so you can convert content on Android, iPhone, Windows, Mac and Linux without installing Pandoc or a plugin. Copy part of any web page, click Paste rich content and the Markdown appears at once, with no need to open the page source. It works the same way in Chrome, Edge, Firefox and Safari.
Your HTML is converted inside your browser. It is not uploaded, saved or stored on a server, and it is gone when you close or refresh the page. The converter reads your markup as text, so scripts in the pasted HTML are not run. As a general habit with any online tool, remove private links and tokens before you paste.
Converting HTML is often one step in a bigger content workflow. These related free tools help with the rest:
& in your content.Our HTML to Markdown converter is free to use with no registration, no watermark and no limits. Everything runs in your browser, so your HTML stays on your device. It works on desktop, tablet and mobile.
Quick answers to common questions about converting HTML to Markdown online.
Paste your HTML into the input box. The Markdown appears instantly in the output box. Choose your preferred styles, then copy the result or download it as an .md file.
Yes. It is free to use with no signup, no watermark and no usage limit.
Yes, with the content you copy. Select part of a page, copy it, and click Paste rich content, or paste the page's HTML directly. The tool does not fetch pages from a web address.
Yes. With the GitHub option on, tables become pipe tables with a header row and column alignment. Merged cells cannot be represented in Markdown, so complex tables may need a manual check.
CommonMark-style Markdown, plus GitHub Flavored Markdown features such as tables, task lists and strikethrough when that option is turned on.
Scripts, styles, forms, iframes and similar elements are removed. Tags without a Markdown equivalent are replaced by their text, or kept as HTML if you enable that option. Colours, fonts and layout are not kept.
No. The conversion runs entirely in your browser, and your HTML is not uploaded, saved or shared.
Convert HTML to Markdown here, then use the Markdown to HTML converter, the HTML formatter, the HTML table generator or the HTML decoder in seconds. Explore free developer tools to format, convert and debug your content in one place.
Explore All Developer Tools →