PDFSub
PricingAPIMergeCompressEditE-SignBank StatementsBlog

Convert HTML to Markdown

Convert any web page or HTML to clean Markdown - preserve headings, lists, links, and code blocks while shedding the markup overhead. Perfect for static-site generators, GitHub README imports, and documentation migrations.

HTML to Markdown is available with a subscription

Start a 7-day free trial to unlock HTML to Markdown and every tool included with your plan.

Start 7-day Free Trial
Sign up
100% Private
Instant Processing
Browser-Based

Features

Convert URL or HTML to Markdown
GitHub Flavored Markdown (GFM) by default
CommonMark and original-html2md flavors available
Word-count, heading-count, link-count returned
JavaScript-rendered SPA content captured
REST API with X-Word-Count, X-Heading-Count, X-Link-Count headers

How It Looks

Before

HTML

After

MD

How It Works

1

Paste a URL or HTML

2

Pick a Markdown flavor

3

Click Convert

4

Copy the output or download as .md

Common Use Cases

Static-site generator imports (Hugo, 11ty, Jekyll, Astro)
GitHub README import from existing HTML pages
Documentation migration from legacy CMSs
RAG / vector-DB ingestion with Markdown-aware chunkers

Frequently Asked Questions

Which Markdown flavor is the output?

GitHub Flavored Markdown (GFM) by default - supports tables, task lists, strikethrough, fenced code blocks. Pass flavor: "commonmark" for stricter spec adherence, or flavor: "original" for the html2md default subset.

Are tables preserved?

Yes when flavor is GFM (the default). CommonMark doesn't include tables in its spec; the GFM extension adds them.

Is there a REST API?

Yes - POST /api/v1/convert/markdown with optional flavor field. Response headers include X-Word-Count, X-Heading-Count, X-Link-Count.
PDFSub

All the PDF and document tools you need in one place. Fast, secure, and private.

GDPR CompliantCCPA CompliantSOC 2 Ready
Powered by PDFSub Engine

Product

  • All Tools
  • Features
  • Bank Statements
  • API
  • Pricing
  • FAQ
  • Blog

Support

  • About
  • Help Center
  • Contact
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 PDFSub. All rights reserved.

Made in America with for people everywhere