HTML to Markdown Converter

Transform HTML into clean Markdown format

HTML Input

Markdown Output

About HTML to Markdown Converter

Convert HTML documents to clean, readable Markdown format. Perfect for documentation, README files, blog posts, and content management systems that support Markdown.

Key Features

  • GitHub Flavored Markdown: Support for GFM extensions like strikethrough and tables
  • Complete Conversion: Handles headings, lists, tables, code blocks, and more
  • Formatting Preservation: Maintains bold, italic, and inline code
  • Table Support: Converts HTML tables to Markdown table syntax
  • Code Blocks: Preserves code with language syntax highlighting
  • Links & Images: Converts hyperlinks and images with alt text
  • Nested Lists: Handles multi-level ordered and unordered lists

How to Use

  1. Input HTML: Paste your HTML code or upload an .html file
  2. Configure Options: Choose GFM and formatting options
  3. Review Output: The Markdown output updates automatically
  4. Copy or Download: Use the Copy or Download button to save your .md file

Supported HTML Elements

  • Headings: h1-h6 → # to ######
  • Text Formatting: strong/b → **bold**, em/i → *italic*
  • Code: code → `inline`, pre → ```code blocks```
  • Lists: ul → unordered lists, ol → ordered lists
  • Links: a → [text](url)
  • Images: img → ![alt](src)
  • Tables: table → Markdown table syntax
  • Quotes: blockquote → > quoted text
  • Strikethrough: del/s/strike → ~~text~~ (GFM)
  • Horizontal Rule: hr → ---
  • Line Breaks: br → two spaces + newline

GitHub Flavored Markdown

When enabled, adds support for:

  • Strikethrough: ~~deleted text~~
  • Tables: Full table syntax with alignment
  • Task Lists: - [ ] and - [x] checkboxes
  • Fenced Code Blocks: ```language syntax

Example Conversion

HTML Input:

<h1>Title</h1>
<p>This is <strong>bold</strong> and <em>italic</em> text.</p>
<ul>
  <li>Item 1</li>
  <li>Item 2</li>
</ul>

Markdown Output:

# Title

This is **bold** and *italic* text.

- Item 1
- Item 2

Common Use Cases

  • Documentation: Convert HTML docs to Markdown for GitHub/GitLab
  • README Files: Create README.md from HTML content
  • Blog Posts: Convert HTML articles to Markdown
  • Content Migration: Move content to Markdown-based CMS
  • Note Taking: Convert web clippings to Markdown notes
  • Wiki Pages: Create wiki content in Markdown format

Tips for Best Results

  • Semantic HTML: Use proper HTML elements for better conversion
  • Clean Structure: Well-structured HTML converts more accurately
  • Code Blocks: Use <pre><code> for code snippets
  • Tables: Use proper table structure with th and td
  • Review Output: Always review and adjust the Markdown output

Privacy & Security

All conversions happen locally in your browser. Your HTML is never uploaded to any server, ensuring complete privacy and security.