DevFlow logoDevFlow
ToolsPipelinesExploreDocsPricing
⌘F
DashboardPipeline BuilderAnalytics

Try Pro — Free 7 days

No credit card required

HTML to Markdown Converter Online — Free HTML to MD Converter

How to HTML to Markdown Online

  1. 1

    Paste your HTML content into the input area on the left, or upload an .html file using the upload button.

  2. 2

    Choose your Markdown flavor: CommonMark for standard compatibility, GitHub Flavored Markdown (GFM) for tables and task lists, or Obsidian Wiki Links for knowledge management tools.

  3. 3

    Toggle optional handlers: enable Strikethrough for ~~deleted text~~, Tables for GFM table conversion, or Links to control how hyperlinks are rendered.

  4. 4

    Click Convert or press ⌘↵ (Mac) / Ctrl+Enter (Windows) to transform your HTML to Markdown instantly.

  5. 5

    Review the conversion statistics panel to see how many headings, links, images, code blocks, tables, and lists were converted.

  6. 6

    Copy the Markdown output with ⌘⇧C, download as a .md file, or use the Share button to generate a gzip-compressed shareable URL.

HTML to Markdown Features

  • ✓

    Turndown-powered conversion: industry-standard HTML-to-Markdown engine with a fully configurable rule set.

  • ✓

    3 Markdown flavors: CommonMark (strict specification), GitHub Flavored Markdown (GFM with tables, task lists, strikethrough), and Obsidian Wiki Links.

  • ✓

    GFM table support: converts HTML tables to proper Markdown table syntax with pipe delimiters and alignment colons.

  • ✓

    Code block handling: converts <pre> and <code> blocks to fenced code blocks with language hints preserved.

  • ✓

    Heading hierarchy: converts h1–h6 to # through ###### Markdown headings, preserving document structure.

  • ✓

    Link and image conversion: transforms <a> to [text](url) and <img> to ![alt](url) with title attributes preserved.

  • ✓

    List conversion: handles ordered (<ol>) and unordered (<ul>) lists with proper nesting and indentation.

  • ✓

    Bold and italic: converts <strong>/<b> to **bold** and <em>/<i> to *italic*.

  • ✓

    Blockquote support: converts <blockquote> to > quote blocks with proper nesting.

  • ✓

    Strikethrough extension: converts <del>, <s>, and <strike> to ~~strikethrough~~ text (GFM mode).

  • ✓

    Conversion statistics: real-time count of headings, links, images, code blocks, tables, lists, and size reduction percentage.

  • ✓

    Keep HTML option: preserve raw HTML for elements that don't convert cleanly.

  • ✓

    Remove Images option: strip <img> tags entirely for Markdown flavors that don't support images.

  • ✓

    Syntax highlighting: input panel shows HTML with color-coded tags, attributes, and content.

  • ✓

    Large-input warning with byte count — alerts you when the input may slow down conversion.

  • ✓

    Shareable URLs: gzip-compresses your HTML into a URL parameter so you can share documents with teammates.

  • ✓

    Works entirely in your browser — no HTML is ever sent to any server. Your content stays completely private.

  • ✓

    Keyboard shortcuts for power users: ⌘↵ to convert, ⌘⇧C to copy, ⌘⇧K to clear.

Frequently Asked Questions

Is this HTML to Markdown converter free?
Yes, DevFlow HTML to Markdown Converter is completely free with no usage limits. All conversion runs directly in your browser using the Turndown library — no account or signup required.
Is my HTML data safe?
Your HTML is processed entirely in your browser using pure JavaScript. No HTML is ever transmitted to a server or stored anywhere outside your browser. Your markup stays completely private on your machine.
What is Markdown?
Markdown is a lightweight markup language created by John Gruber in 2004. It uses simple plain-text syntax to represent formatting: # for headings, **bold**, *italic*, [links](url), and ```code blocks```. Markdown is widely used for documentation, README files, notes, and content management systems because it is readable as plain text and easy to learn.
What is the difference between CommonMark and GFM?
CommonMark is the formal specification for Markdown, designed to resolve ambiguities and provide a standard implementation. GitHub Flavored Markdown (GFM) extends CommonMark with additional features: tables with pipe syntax, task lists with [ ] checkboxes, strikethrough with ~~text~~, and autolinks for URLs. Use GFM when converting for GitHub, GitLab, or any platform that supports GFM.
What Markdown flavors are supported?
Three flavors are available: CommonMark (strict Markdown specification), GitHub Flavored Markdown (GFM) with tables, task lists, and strikethrough, and Obsidian Wiki Links which converts internal links to [[Wiki Links]] format for Obsidian and similar tools.
How does table conversion work?
HTML tables are converted to GFM pipe-table syntax. The converter preserves header rows, column alignment (left, center, right), and cell content. For example, a 3-column table with a centered header becomes | Header | | with :---: for centered columns.
What happens to complex HTML that doesn't convert cleanly?
For elements that don't have a Markdown equivalent (like embedded iframes, forms, or JavaScript), you can choose to Keep HTML (preserves the raw HTML inline) or Remove Images (strips image tags). The conversion statistics show how much of your HTML was successfully converted.
Can I convert HTML from a website or document?
Yes. Paste any HTML markup — from a website source, a document converter, a CMS editor, or hand-written HTML. The converter handles full HTML documents and HTML fragments equally well. It strips unnecessary document-level elements (<html>, <head>, <body>) and converts only the content.
Does it work offline?
Yes. All conversion logic (Turndown + GFM plugin) is bundled with the page as pure JavaScript. Once the page has loaded, the HTML to Markdown Converter works without an internet connection.

Related Developer Tools

  • HTML FormatterFormat, minify, and validate HTML with attribute sorting and template support.
  • Markdown PreviewPreview and render Markdown with GFM, math, Mermaid diagrams, and export options.
  • Text Diff CheckerCompare two text blocks and highlight exactly what changed.