Skip to content
⚠ TESTING ENVIRONMENT You are viewing a testing copy of Tolioo. Changes here do not affect the live website.

HTML to Markdown Converter

Convert HTML to clean Markdown in one click. Supports headings, links, images, lists, code blocks and GitHub-style tables. Fast, free and no signup.

  • 100% free
  • No Signup
  • GitHub tables
0 characters
Tip: copy part of any web page, then click Paste rich content to convert it without opening the page source.
Your Privacy Matters

Your HTML is converted inside your browser. We never send, save or store what you paste.

ADVERTISEMENT
Demo Ad 728 x 90

Convert HTML to Markdown in 3 simple steps

  1. 1

    Add your HTML

    Paste HTML code, or copy content from a web page and click Paste rich content.

  2. 2

    Choose your options

    Pick the heading, list and code block styles, and add a base URL if you need one.

  3. 3

    Copy the Markdown

    Copy the result or download it as a .md file.

HTML TO MARKDOWN GUIDE

HTML to Markdown Converter – Convert HTML to Markdown Online Free

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.

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.

GitHub Flavored Markdown

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.

Copy Web Pages to Markdown

Select content on any web page, copy it, and use Paste rich content to convert it to Markdown without digging through the page source.

What Is HTML to Markdown Conversion?

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.

How to Convert HTML to Markdown Online

Converting HTML to Markdown with this tool takes only a few steps.

  1. Add your HTML: Paste your HTML into the input box, or click Sample to try an example.
  2. Review the output: The Markdown appears instantly in the output box as you type.
  3. Choose your style: Pick ATX or Setext headings, the bullet marker you prefer, the italic style, and fenced or indented code blocks.
  4. Adjust links and images: Switch to reference-style links, skip images, or add a base URL so relative links become absolute.
  5. Copy or download: Copy the Markdown to your clipboard or download it as a .md file.

How to Convert a Web Page to Markdown

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.

HTML to Markdown Conversion Table

This quick reference shows how common HTML elements are converted to Markdown.

HTMLMarkdown
<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="...">![alt text](image.jpg)
<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

Convert HTML Tables to Markdown

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.

Convert HTML to GitHub Flavored Markdown for README Files

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.

Conversion Options Explained

  • Headings: ATX headings use pound signs, such as ## Title. Setext headings underline the text with equals signs or dashes and work only for the first two levels, so deeper levels still use pound signs.
  • Bullet marker: Choose a dash, asterisk or plus sign for unordered lists to match your style guide.
  • Italic style: Use asterisks or underscores for emphasis. Bold text always uses double asterisks.
  • Code blocks: Fenced blocks use three backticks and can include a language name. Indented blocks use four leading spaces and work in the original Markdown format.
  • Links: Inline links place the address next to the text. Reference links number each address and list them at the end, which keeps long paragraphs easier to read.
  • Base URL: Enter the address of the original page, and relative links and image paths such as /images/photo.jpg become full web addresses.

HTML to Markdown for Blogs, Documentation and Notes

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.

What Is Not Converted?

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 Flavors: CommonMark, GFM and Others

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.

Tips for Cleaner Markdown

  • Convert only the content you need: Copy the article area instead of the whole page, so menus, ads and footers do not end up in your Markdown.
  • Tidy messy HTML first: If the source is hard to read, run it through our HTML Formatter to find what is inside it.
  • Check images and links: Add a base URL if paths are relative, and make sure images have useful alt text.
  • Review tables: Large tables with merged cells may need manual changes.
  • Preview the result: Open the Markdown in your editor or platform to confirm it looks right.

Who Uses an HTML to Markdown Converter?

  • Developers: Write README files, convert documentation and prepare content for repositories.
  • Bloggers and content teams: Move posts from a CMS or HTML export to Markdown-based sites.
  • Technical writers: Convert web help pages and articles into Markdown source files.
  • Students and researchers: Save web content as clean notes.
  • SEO and marketing teams: Prepare content for editing and review in a text-based format.

Common HTML to Markdown Problems and How to Fix Them

Markdown is simpler than HTML, so some things cannot be carried over exactly. Use this table when the result looks different from the source.

HTML to Markdown problems and fixes
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

Convert HTML to Markdown on Mobile, Windows and Mac

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.

Is It Safe to Convert HTML Online?

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.

More Free Developer Tools You May Need

Converting HTML is often one step in a bigger content workflow. These related free tools help with the rest:

Free HTML to Markdown Converter With No Signup

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.

ADVERTISEMENT
Demo Ad 300 x 250
COMMON QUESTIONS

Frequently Asked Questions About HTML to Markdown

Quick answers to common questions about converting HTML to Markdown online.

How do I convert HTML to Markdown?

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.

Is this HTML to Markdown converter free?

Yes. It is free to use with no signup, no watermark and no usage limit.

Can I convert a web page or website to Markdown?

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.

Does it convert HTML tables to Markdown?

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.

Which Markdown flavor does it produce?

CommonMark-style Markdown, plus GitHub Flavored Markdown features such as tables, task lists and strikethrough when that option is turned on.

What happens to scripts, styles and unsupported tags?

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.

Is my HTML saved or sent anywhere?

No. The conversion runs entirely in your browser, and your HTML is not uploaded, saved or shared.

ADVERTISEMENT
Demo Ad 320 x 50