Skip to content

HTML to Markdown Converter

Convert HTML to clean Markdown, free. Ready for AI chats, GitHub and docs.

  • Free to use
  • No file stored beyond 1 hour
  • Encrypted over TLS 1.2/1.3
  • No watermarks

Drag and drop your files here or click to upload.

Maximum file size is 1GB

Like RunConvert? Set us as a preferred source on Google.

Add to Preferred Sources

How to convert HTML to MD

Everything happens in your browser tab - upload your HTML, pick MD or any other supported format, download. The heavy lifting runs on our servers.

  1. Upload HTML

    Drag and drop your HTML files, click to browse, or paste a URL. Up to 20 files at once.

  2. Choose MD

    MD is already selected. Switch to any other supported format if you need to - no account needed.

  3. Convert & download

    Hit Convert and download your MD moments later. Originals are erased when the job completes; results are cleared within about an hour.

Converting other files for an AI chat or notes app? File to Markdown takes PDF, Word, PowerPoint, Excel and more in one place.

Clean Markdown from any HTML file

RunConvert keeps the content and drops the markup: the result is standard GitHub-flavoured Markdown.

  • Headings, lists and links

    Headings, lists, bold, italic and links carry over as Markdown.

  • Tables

    Tables become Markdown tables, or HTML tables when cells are merged.

  • Code

    Code blocks keep their line breaks and language.

  • Web images kept

    Images with a web address stay as Markdown images; local ones are left out.

  • Private: no AI service sees the file

    The conversion runs on our own servers with open-source software. Your file is never sent to an AI provider, and it's deleted after conversion.

Why convert HTML to Markdown?

HTML and Markdown are both document formats: HTML is best for web pages, Markdown for notes and documentation written as plain text.

  • Where Markdown works best

    Notes and documentation written as plain text.

HTML vs Markdown: what's the difference?

PropertyHTMLMarkdown
TypeDocumentDocument
EditableYesYes
Opens inEvery web browserAny text editor; renders in GitHub, Notion and note apps
Best forWeb pagesNotes and documentation written as plain text

What is an HTML file?

HyperText Markup Language

Developed By
W3C / WHATWG
Initial Release
1993
MIME Type
text/html

HTML (HyperText Markup Language) is the standard markup language for documents designed to be displayed in a web browser, defined by the World Wide Web Consortium (W3C) and the WHATWG Living Standard. An HTML file consists of plain text tags that structure content into a Document Object Model (DOM), enabling the embedding of scripts (JavaScript), cascading style sheets (CSS), and multimedia. The format has evolved from SGML-based roots to the current HTML5 specification, which includes semantic elements and APIs for complex web applications.

How to open an HTML file

Operating systems universally support HTML rendering via pre-installed web browsers like Microsoft Edge (Windows), Safari (macOS), or Firefox (Linux). For source code modification, developers utilize specialized editors such as Visual Studio Code, IntelliJ IDEA, or Notepad++. No proprietary software is required, as the format is an open, non-proprietary standard text file.

What is an MD file?

Markdown Documentation

Developed By
John Gruber
Initial Release
2004
MIME Type
text/markdown

An MD file is a plain text document containing Markdown, a lightweight markup language created by John Gruber and Aaron Swartz. The format uses non-alphabetic characters (such as hashes for headers and asterisks for emphasis) to define formatting syntax that is human-readable in its raw form and easily convertible to valid XHTML or HTML. It is the de facto standard for documentation in version control systems like Git.

How to open an MD file

As strictly plain text, MD files can be opened and edited in any basic text editor such as Microsoft Notepad or Apple TextEdit. For a rendered preview of the formatting, specialized editors like Obsidian, Typora, or Visual Studio Code are recommended.

More free document tools

All document conversions

The fastest way to convert any file

Purpose-built for speed, privacy, and breadth of format support.

  • Convert HTML to MD in seconds

    Every HTML to MD conversion runs on our servers, so your device stays fast and the output quality stays intact.

  • Fast, cloud-powered

    No queue, no waiting. Files are processed on high-performance servers and returned in seconds, even for large files.

  • Secure & private

    Encrypted in transit and never shared with anyone. Uploads are erased the moment your job completes, and results shortly after.

  • Free - no account needed

    Convert without creating an account - no credit card, no trial clock. Sign in only if you want history and higher daily limits.

Convert HTML to MD via API

Automate HTML to MD conversions in three steps: create a job, upload your file, then poll for the result.

Replace YOUR_API_KEY with your RunConvert API key. Get your free API key at runconvert.com/api.

# 1. Create job
curl -X POST https://api.runconvert.com/v3/jobs \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "tag": "html-to-md",
    "tasks": {
      "upload-file": {
        "operation": "import/direct/upload"
      },
      "convert": {
        "operation": "convert",
        "input": "upload-file",
        "input_format": "html",
        "output_format": "md"
      },
      "export-result": {
        "operation": "export/url",
        "input": "convert"
      }
    }
  }'

# 2. Upload your file (upload_url of the upload-file task in the response)
curl -X PUT "$UPLOAD_URL&filename=input.html" --upload-file input.html

# 3. Poll for result
curl https://api.runconvert.com/v3/jobs/$JOB_ID?include=tasks \
  -H "Authorization: Bearer YOUR_API_KEY"

Frequently asked questions

Common questions about converting HTML to MD with RunConvert.

How do I convert HTML to Markdown?
Upload your .html file, choose MD as the output format (it's under "For AI" in the format list) and click Convert. Then copy the Markdown straight into your AI chat with Copy Markdown, or download the .md file.
Which Markdown does it produce?
GitHub-flavoured Markdown, the kind ChatGPT, Claude, GitHub, Obsidian and VS Code all read the same way.
Can I convert .htm files?
Yes. HTM to Markdown works exactly the same; .htm is just the older file extension.
Are my files used to train AI?
No. The conversion runs on RunConvert's own servers with open-source software; no AI service sees your file. Uploads and results are encrypted in transit and deleted automatically after conversion.
Is the HTML to Markdown converter free?
Yes. Files up to 1 GB convert free without an account. Credits or a subscription are only needed for heavy use, and RunConvert Pro removes ads.

Ready to convert HTML to MD?

Free to use · No account required · Instant download

Convert now

Like RunConvert? Set us as a preferred source on Google.

Add to Preferred Sources