html2markdown

html2markdown

Converts HTML to Markdown via stdin/stdout, files, or glob patterns, with CommonMark by default and optional GFM strikethrough and table plugins.

Category
Converter
License
MIT
Platforms
Windows macOS Linux
Released
2018
Path
c:\html2markdown\html2markdown.exe
Benefits
Single static Go binary with no runtime dependencies. Configurable conversion via per-element options (bold delimiter, table cell padding, header promotion). Supports CSS selectors to include or exclude page regions before conversion. Resolves relative URLs to absolute when given --domain. Bidirectional pipeline-friendly (pairs cleanly with curl, monolith, or pandoc).
Notes
Default plugin is CommonMark; enable --plugin-table and --plugin-strikethrough for GFM features. When --input is a directory or glob, --output must also be a directory. Use --output-overwrite to replace existing files. Output is not sanitized: if the resulting Markdown will be re-rendered to HTML, run it through an HTML sanitizer first.
Used by
Documentation pipelines, web scraping workflows, AI ingestion of HTML pages into Markdown for LLM context
Version
Latest known: 2.5.1 (2026-05-07)

Try it

Agree to terms to run demos.