Hack the Hydra

HTML to Markdown converter

Paste HTML (Ctrl+V anywhere on this page) or drop a saved web page. Scripts, menus and footers are removed, and the main content becomes clean Markdown.

🔒 Private by design: the conversion runs in this browser tab. Nothing is uploaded.

HTML to Markdown converter is a free online tool by Hack the Hydra. Convert HTML to clean Markdown: paste HTML or drop an .html file. Removes scripts, nav and footers, keeps headings, links and tables. Free, in your browser.

100% freeNo upload: runs in your browserNo sign-up
HTML to Markdown converter: the tool with a sample file converted

Key facts

Input formatsHTML files (.html, .htm) or pasted HTML
Size limit100 MB per file (checked in the browser)
Where it runsIn your browser with turndown 7.2.0 and turndown-plugin-gfm 1.0.2; the file is not uploaded (the library itself is downloaded from a CDN)
CostFree, no sign-up
OutputMarkdown with tables and links; scripts, styles, navigation, header, footer and forms are removed, and only main or article is kept when the page has one

Converting a live web page

Browsers block reading other sites from a page (CORS), so save the page first (Ctrl+S, "Web page, HTML only") and drop the file here, or copy the page source and paste it. To convert web pages by URL in bulk, use the API.

What gets removed

script, style, nav, header, footer, forms, buttons and inline base64 images. If the page has a main or article element, only that part is converted, which is usually the content you want.

Example

A small HTML page. The navigation and footer are dropped, the page title becomes the main heading, and bold text, links and lists are kept.

Input

<html><head><title>Shipping policy</title></head><body><nav>Home | Shop</nav><main><h2>Delivery times</h2><p>Orders ship within <strong>2 working days</strong>. See the <a href="https://example.com/faq">FAQ</a>.</p><ul><li>EU: 3-5 days</li><li>US: 5-8 days</li></ul></main><footer>(c) Shop</footer></body></html>

Output

# Shipping policy

## Delivery times

Orders ship within **2 working days**. See the [FAQ](https://example.com/faq).

-   EU: 3-5 days
-   US: 5-8 days

How to use

  1. Drop your file in the box above, or click to pick it.
  2. Wait a few seconds while it converts locally.
  3. Copy the result or download it.

FAQ

Is pasted HTML sent anywhere?

No. Parsing and conversion run in your browser with the DOMParser and turndown.

Are tables kept?

Yes, tables with a header row become Markdown (GFM) tables.

Can I convert a URL directly?

Not in the browser because of CORS. Save the page and drop it, or use the bulk API, which fetches URLs server-side.

Guides

Bulk conversion API

Batch-convert DOCX, PPTX, XLSX, HTML and EPUB by URL: $2 per 1,000 files. Open the API →

curl -X POST "https://api.apify.com/v2/acts/extas_corp~document-to-markdown/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" -d '{"documentUrls":[{"url":"https://filesamples.com/samples/document/docx/sample3.docx"}]}'

Use it via API, with a free plan: Document to Markdown API (RapidAPI) · Apify

More free converters

PDF to Markdown converterOCR PDF: scanned PDF to textImage to text (OCR)Word (DOCX) to Markdown converterExcel & CSV to Markdown tablesPowerPoint (PPTX) to Markdown converterJSON to Markdown tablePDF to text converterExcel to JSON converterMarkdown to HTML converterMerge PDF filesSplit PDF: extract pagesRotate PDFJPG to PDF converterPDF to JPG converterImage converter: PNG, JPG, WebPCompress image: JPG and WebPQR code generatorWord counterCase converterJSON formatter and validatorBase64 encode and decodeURL encoder and decoderUUID v4 generatorStrong password generatorLorem ipsum generatorJSON to CSV converterRemove duplicate linesUnix timestamp converterJSON to YAML converterText diff checkerImage resizerPercentage calculatorAge calculatorHash generator (SHA-256, SHA-1, SHA-512)Color converter: HEX, RGB, HSLDays between dates calculatorYAML to JSON converterUnit converterJWT decoderBinary, hex, decimal and octal converterRoman numeral converterRegex testerCron expression explainerPDF to Markdown for ChatGPTPDF to Markdown for ClaudePDF to Markdown for RAG pipelinesPDF to Markdown for ObsidianPDF to Notion (via Markdown)Screenshot to textFrench OCR: image to textCSV to Markdown tableGoogle Docs to MarkdownJPG / JPEG to text (OCR)PNG to text (OCR)CSV to JSON converterPNG to JPG converterJPG to PNG converterWebP to PNG converter