HTML ↔ Markdown Converter
Bidirectional conversion with GFM tables, task lists, and fenced code blocks. Runs entirely in your browser.
Welcome
This is a bidirectional converter for HTML and Markdown.
Features
- Tables
- Task lists
- Fenced code blocks
const greet = (name: string) => `Hello, ${name}!`
| Item | Qty |
|---|---|
| Apples | 3 |
| Pears | 2 |
About the HTML / Markdown Converter
HTML and Markdown serve the same purpose — structured text for the web — but in different contexts. Markdown is the standard for developer documentation, README files, and static site generators. HTML is the output format for browsers and rich text editors. This tool converts bidirectionally between the two, supporting CommonMark and GitHub Flavored Markdown.
What this tool converts
Markdown → HTML
Converts headings, bold, italic, links, images, code blocks, blockquotes, lists, and tables to semantic HTML. Supports GFM extensions.
HTML → Markdown
Converts semantic HTML back to clean Markdown. Handles nested lists, inline code, fenced code blocks with language hints, and GFM tables.
Live Preview
See the rendered output alongside the source — verify formatting before copying to your documentation or CMS.
GFM Support
GitHub Flavored Markdown: tables, task lists (- [x]), strikethrough (~~text~~), and autolinked URLs.
Pipeline
- Text Diff — compare two versions of a Markdown document.
- Word Counter — count words and check readability of your Markdown content.
Frequently asked
- Is my data sent to a server?
- No. All conversion runs 100% in your browser. Your HTML and Markdown content never leaves your device.
- What is Markdown?
- Markdown is a lightweight markup language that uses plain text formatting syntax. It was designed to be readable as-is and convertible to HTML. It is the standard format for README files, documentation, GitHub comments, and many CMS platforms.
- What Markdown flavors does this tool support?
- CommonMark (the standard specification), GitHub Flavored Markdown (GFM — adds tables, task lists, strikethrough, and autolinks), and basic Markdown. GFM is the most widely used flavor for developer documentation.
- Why does my HTML not convert cleanly to Markdown?
- HTML has features with no Markdown equivalent: inline styles, complex tables, nested lists with mixed content, and custom attributes. The converter handles common patterns but complex HTML (from word processors or rich text editors) may require manual cleanup.
- Can I use this to convert blog posts from HTML to Markdown?
- Yes. Paste the HTML source of a blog post and get clean Markdown output. This is useful for migrating content from WordPress or other HTML-based CMSes to Markdown-based static site generators like Hugo, Jekyll, or Astro.