HTML to Markdown Converter

Convert HTML content to Markdown format with customizable options

Back to Tools

HTML Input

HTML Options

Keep bold, italic, and other text formatting
Convert <a> tags to Markdown links
Convert <img> tags to Markdown images
Remove any remaining HTML tags

Markdown Options

Supported HTML Elements:
  • Headers (H1-H6)
  • Bold & Italic
  • Links & Images
  • Lists (UL, OL, LI)
  • Code blocks
  • Blockquotes
  • Horizontal rules

HTML to Markdown Guide

Headers

  • <h1> → # Heading
  • <h2> → ## Heading
  • <h3> → ### Heading
  • <h4> → #### Heading

Text Formatting

  • <strong> → **bold**
  • <b> → **bold**
  • <em> → *italic*
  • <i> → *italic*

Links & Images

  • <a href="url">text</a> → [text](url)
  • <img src="url" alt="alt"> → ![alt](url)
  • Automatic link detection
  • Image alt text preservation

Lists & Blocks

  • <ul><li> → - item
  • <ol><li> → 1. item
  • <blockquote> → > quote
  • <pre><code> → ```code```

Conversion Tips

HTML Formatting

  • Use valid HTML syntax
  • Properly close all tags
  • Include alt text for images
  • Use semantic HTML elements

Markdown Output

  • Enable formatting preservation
  • Include links and images
  • Strip remaining HTML tags
  • Validate Markdown after conversion

Common Issues

  • Check HTML syntax validity
  • Handle special characters properly
  • Test with sample content
  • Review conversion results