What is an HTML to Markdown converter?
An HTML to Markdown converter rewrites HTML markup as Markdown, the plain-text formatting syntax used by GitHub, documentation tools, static site generators like Hugo and Astro, and notes apps like Obsidian and Notion.
It's the quickest way to migrate blog posts out of WordPress, save a web article into your notes, turn a rich-text email into a README, or prepare content for a docs site. Instead of retyping headings, links and lists by hand, the structure is converted automatically while the text stays exactly as written.
How to use the HTML to Markdown Converter
1.Paste the HTML
Page source, a CMS export or a snippet.
2.Choose the style
# or underlined headings, the bullet character, and fenced or indented code.
3.Copy the Markdown
Or download it as a .md file.
Example: a getting-started section
HTML with an h2, a paragraph with bold text and a link, a two-step ordered list, a code block and a blockquote:
- <h2>Getting started</h2>
- ## Getting started
- <strong>CLI</strong>
- **CLI**
- <a href="…/docs">docs</a>
- [docs](https://example.com/docs)
- <pre><code>
- ``` fenced block
- <blockquote>
- > Tip: use the latest version.
The converted section renders the same on GitHub and is easy to edit as plain text.
What converts and what doesn't
Headings, paragraphs, bold, italic, links, images, ordered and unordered lists, blockquotes, inline code and code blocks all have Markdown equivalents. Tables become pipe tables, with a header row when the HTML has one. Scripts and styles are dropped.
Things Markdown can't express, such as colours, fonts, layout divs and form fields, are reduced to their text. Superscripts and subscripts are kept as HTML tags, which most Markdown renderers accept.
Frequently asked questions
Can I convert a whole web page?
Yes, but menus and footers come along too. Copy just the article's HTML for a cleaner result.
Are tables supported?
Yes. Simple tables become Markdown pipe tables. Merged cells can't be represented and are flattened.
Which heading style should I use?
# hash headings work everywhere and support all six levels; underlined headings only cover levels 1 and 2.
Is it good for moving a blog to a static site?
Yes. Convert each post's HTML body and add your site generator's front matter at the top.
Related tools
Markdown to HTML Converter
Convert Markdown to clean HTML, with GitHub tables and sanitising.
Strip HTML Tags
Remove HTML tags and get clean, readable plain text.
Markdown Previewer
Live Markdown preview with GitHub tables and code blocks, and HTML output.
HTML Beautifier & Minifier
Indent messy HTML or minify it for production.
CSS Beautifier & Minifier
Format CSS readably or minify it safely.
JavaScript Beautifier & Minifier
Format JavaScript, or minify it with Terser.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
- Base64 encode & decode
- URL encode & decode
- JWT decoder
- Hash generator
- HTML entity encoder
- Text to binary
- Morse code translator
- Caesar cipher & ROT13
- Random string generator
- Secret key generator
- 2FA code generator (TOTP)
- Encrypt & decrypt text
- Encrypt & decrypt files
- SSH key generator
- Base32 encoder and decoder
- Unicode escape converter
- Nano ID generator
- JWT generator
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Slug generator
- Unicode character inspector
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table