HTML to Markdown Converter - Convert HTML to Markdown Online
Turn HTML pages, snippets and email templates into Markdown with headings, lists, links, tables and code blocks intact.
How to Convert HTML to Markdown - Step by Step Guide
Input Your HTML Content
Let's get your HTML content into the converter! Whether you have web pages, email templates, or HTML documentation from our HTML editor or Word to HTML converter, converting to Markdown makes content more portable and easier to edit. You have several convenient options:
Example: HTML Input
Here's what typical HTML content looks like:
<h1>Welcome to My Project</h1> <p>This is a <strong>simple</strong> paragraph.</p> <ul> <li>First item</li> <li>Second item</li> </ul>
Automatic Conversion & Processing
The conversion happens instantly! Before converting, you can validate your HTML using our HTML validator or format it with our HTML beautifier. As soon as you input HTML, the converter automatically:
Example: Converted Markdown Output
The HTML converted to clean Markdown:
# Welcome to My Project This is a **simple** paragraph. * First item * Second item
Review the Markdown Output
Check your clean, portable Markdown! You can also convert HTML to other formats using our HTML to JSON or HTML to text converters. The converter produces:
Export Your Markdown
Get your Markdown ready for use! You can also convert HTML to PDF or view it in our HTML viewer. Multiple export options make it easy to integrate:
Frequently Asked Questions
What HTML elements are supported?
Headings (H1 to H6), paragraphs, bold, italic and strikethrough text, links, images, ordered and unordered lists (nested too), task-list checkboxes, tables, code blocks, inline code, blockquotes, line breaks and horizontal rules. Scripts, styles, forms and embedded media are left out, and attributes like class, id and inline styles are dropped. Any other element keeps its text.
Can I convert web pages to Markdown?
Yes. Open the page source, copy the HTML (or just the article part of it) and paste it in. Navigation menus and footers come along if they are in what you paste, so trimming the HTML down to the content you want gives the cleanest result.
Does the converter preserve links and images?
Links become [link text](url), keeping the title attribute if there is one, and images become . URLs are written as they appear in the HTML; spaces and brackets in them are percent-encoded so the Markdown link does not break.
What happens to characters like * or _ in my text?
They get a backslash in front, so a sentence like 5 * 3 or a name like snake_case stays plain text instead of turning into italics. The same goes for backticks, square brackets, a < that looks like a tag, and a # or - at the start of a line. Code inside pre and code tags is copied exactly, spacing included.
Is the Markdown output compatible with GitHub?
It uses CommonMark syntax plus GitHub-style tables and strikethrough, so it renders on GitHub, GitLab and Bitbucket and in static site generators like Jekyll, Hugo and Gatsby. A line break inside a table cell is written as <br>, which GitHub accepts.
Is my HTML uploaded anywhere?
No. The conversion runs in your browser and nothing you paste or upload is sent to our server. Scripts in the HTML are never run; the page only reads the markup to build the Markdown.
Related Tools
Markdown to HTML
Convert Markdown documents to HTML with live preview and syntax support
Markdown Fixer
Fix broken Markdown automatically, repair broken links, tables, and formatting errors
JSON to Markdown
Convert JSON data to Markdown tables, lists, or code blocks
Markdown to JSON
Parse Markdown tables and lists into structured JSON data
Markdown Editor
Write and preview Markdown in real-time with live preview
Markdown Table Generator
Create beautiful Markdown tables with visual editor