HTML to Markdown Converter

Convert HTML to clean, readable Markdown with GFM tables, code blocks, and neste...

SecureFastFree

Updated

HTML

0 characters
Markdown output appears here as you type.
0 characters, 0 words

How HTML elements map to Markdown

Headings<h1> to <h6>
# to ######
Bold<strong>, <b>
**bold**
Italic<em>, <i>
*italic*
Strikethrough<del>, <s>
~~strike~~
Inline code<code>
`code`
Code block<pre><code>
```code```
Link<a href>
[text](url)
Image<img>
![alt](src)
Bullet list<ul><li>
- item
Numbered list<ol><li>
1. item
Blockquote<blockquote>
> quote
GFM table<table>
| a | b |

Quick answer

To convert HTML to Markdown, paste your HTML into this tool and it instantly produces the equivalent Markdown, which you can view as raw text or a rendered preview and then copy or download as a .md file. It handles headings, bold and italic, links, images, code blocks, nested lists, blockquotes, and GitHub Flavored Markdown tables. Everything runs in your browser using the turndown engine, script and style tags are stripped for safety, and there is no signup.

SSL Secured
256-bit Encryption
Cloud Processing
Mobile Friendly

Supported Conversions

Headings - h1 to h6 become # to ###### in ATX style
Text Formatting - Bold, italic, and ~~strikethrough~~ all convert
Nested Lists - Ordered and unordered lists, correctly indented
Links & Images - Anchor and img tags become Markdown link syntax
Code Blocks - Inline code and fenced blocks with language
GFM Tables - HTML tables become pipe tables for GitHub

Why Use HTML to Markdown Converter?

Clean, Readable Markdown

Semantic HTML becomes tidy Markdown with single-space bullets and proper fenced code blocks, not padded or messy output.

GFM Tables & Strikethrough

HTML tables convert to GitHub Flavored Markdown pipe tables, and del or s tags become ~~strikethrough~~.

Code Blocks With Language

A pre and code block keeps its language-js class as a fenced block, so syntax highlighting survives the conversion.

100% In Your Browser

Conversion runs on your device with the turndown engine. Your HTML is never uploaded to a server.

Scripts Stripped Safely

Script, style and iframe tags are removed with their contents, so no executable markup ends up in your Markdown.

Output You Control

Choose the bullet character, fenced or indented code blocks, and whether to keep or strip unknown wrapper tags.

Live Markdown + Preview

See the raw Markdown and a rendered preview of it side by side, both updating as you type.

Free & Unlimited

Convert as much HTML as you want with no signup, no limits, and no watermark.

Common Uses for HTML to Markdown

GitHub READMEs

Turn existing HTML documentation into Markdown for repository README files.

Static Site Content

Convert web pages into Markdown for Hugo, Jekyll, Astro, or Next.js content.

CMS Migration

Move rich HTML content into a Markdown-based CMS or knowledge base.

Blog & Notes

Paste HTML from an article and save clean Markdown for your notes or blog.

How It Works

1

Paste Your HTML

Paste HTML from a webpage, rich-text editor, or your source code into the input box. Full documents and fragments both work.

2

See the Markdown

The Markdown appears instantly on the right. Adjust bullet style, code fences, or unknown-tag handling to fit your target.

3

Copy or Download

Click Copy to send the Markdown to your clipboard, or download it as a .md file for GitHub, docs, or your static site.

Tips & Information

Use the Preview Tab

Switch to Preview to see how the resulting Markdown renders before you copy it.

Keep Code Languages

Give your code element a class like language-python so the fenced block keeps the language hint.

Complex Tables

Tables with merged cells (rowspan or colspan) may need a manual fix, since Markdown tables cannot merge cells.

Frequently Asked Questions

Paste or type your HTML into the input box on the left. The Markdown is generated instantly on the right, where you can view the raw Markdown or a rendered preview of it. Then click Copy or download a .md file. There is no convert button to press and nothing to install.
Yes. HTML tables become GitHub Flavored Markdown pipe tables, with the header row and a separator line. Simple tables convert cleanly, while tables that use rowspan or colspan may need a small manual fix afterwards because Markdown tables do not support merged cells.
An inline code tag becomes text wrapped in single backticks. A pre and code block becomes a fenced block with triple backticks, and if the code element has a class like language-js the language is kept for syntax highlighting. You can also switch to indented code blocks in the options.
Yes. The conversion runs entirely in your browser using the turndown library, so your HTML is never sent to a server. Dangerous nodes such as script, style and iframe tags are removed along with their contents, so no executable code can slip into the Markdown.
Yes. You can set the unordered-list marker to a dash, asterisk, or plus, and choose between fenced or indented code blocks. There is also a toggle to keep non-semantic tags like div and span as raw HTML instead of unwrapping them to plain text.
Headings h1 to h6, bold, italic, strikethrough, inline code, fenced code blocks, ordered and unordered lists including nesting, links, images, blockquotes, horizontal rules, and GFM tables. The output follows CommonMark plus GitHub Flavored Markdown.

Related Tools