HTML to Markdown

Convert HTML code or web pages into clean Markdown format

Fetch from URL (experimental)

Note: Some websites may block fetching due to CORS. Paste HTML directly below instead.

HTML Input

Markdown Output

How to use:

  • • Paste HTML code in the left panel
  • • Or try fetching HTML from a URL (may not work for all sites)
  • • Click "Convert to Markdown" to see the result
  • • Copy or download the clean Markdown output
  • • Handles headings, lists, tables, links, images, and code blocks

How to use HTML to Markdown

  1. Upload, paste, or type your source content in the editor.
  2. Review formatting in preview and adjust options if needed.
  3. Download, copy, or export the result instantly.

Why use tinyMD for HTML to Markdown

  • Preserves heading hierarchy and paragraph structure
  • Handles tables, lists, and code blocks accurately
  • Browser-based with no uploads or sign-up

Frequently asked questions

How does tinyMD handle nested tables when converting HTML to Markdown?

tinyMD converts HTML tables to GFM Markdown table syntax, preserving column alignment and header rows. Complex nested tables are flattened to maintain clean Markdown structure.

Can I convert a full webpage HTML to Markdown for documentation reuse?

Yes. Paste the page's HTML source or a content block into the converter.tinyMD extracts the structural content and produces clean Markdown, skipping navigation and footer elements.

Does HTML to Markdown conversion preserve code blocks and inline code?

Yes. The converter preserves fenced code blocks with their language classes and converts inline <code> elements to backtick-wrapped inline code in Markdown.

Can I convert an entire website's HTML pages to Markdown for a docs migration?

tinyMD handles one page at a time — paste the HTML source of each page. For bulk migrations, convert pages individually and use Merge Markdown to combine results.

Does HTML to Markdown conversion preserve table column alignment?

Yes. Standard HTML tables with consistent columns convert to GFM pipe-table syntax with alignment preserved. Tables using colspan or rowspan may need manual cleanup.