# HTML to Markdown converter: paste HTML or upload files

> Convert HTML to clean GitHub-flavored Markdown in your browser. Paste a snippet or drop .html files; tables, code and links come through. Nothing uploaded.

https://www.kortex-notebooklm.com/tools/html-to-markdown

[Free tools](/tools)

# Convert HTML to clean Markdown

Paste HTML or drop saved .html files and get clean Markdown. Tables, code and links stay. It all happens in your browser. Nothing you paste is uploaded.

-   Free, no sign-up
-   Updated November 10, 2026

## How do I convert HTML to Markdown?

Paste the HTML above and press Convert, or drop .html files on the Upload tab. Your browser turns it into GitHub-flavored Markdown and shows it beside a live preview. You can copy it or download a .md file. Nothing is sent to a server.

1.  Paste HTML into the box, or copy part of any web page and press ⌘V or Ctrl V anywhere on this page.
2.  Add the page’s address if the HTML has relative links, so they still work in the Markdown.
3.  Choose Whole page to keep everything, or Article to keep only the main text.

## How are HTML elements converted?

| HTML | Markdown |
| --- | --- |
| `<h1>` to `<h6>` | `#` to `######` headings |
| `<pre><code class="language-js">` | A fenced block marked `js`, so it keeps syntax highlighting |
| `<table>` | A pipe table; tables without a header row use the first row |
| `<a href>` | Inline links, or reference links listed at the end |
| `<img>` | `![alt](address)`, including lazy-loaded images; or dropped, if you choose |
| `<del>`, checkboxes in lists | `~~strikethrough~~` and `- [x]` task lists |
| Scripts, styles, forms | Removed |

## Is it safe to paste HTML from anywhere?

Yes. The tool reads the HTML into an inert document, where its scripts cannot run, and cleans it with DOMPurify before it converts it. The preview shows only the cleaned Markdown, and its images load without telling their sites which page you were on.

## Questions

How do I convert HTML to Markdown?

Paste your HTML into the box above, or drop .html files on the Upload tab, and press Convert. The Markdown appears beside a live preview. Copy it, or download it as .md.

Is my HTML uploaded anywhere?

No. Your browser converts pasted HTML and uploaded files, on your device. Only the Link tab uses our server, and only to fetch a public page you ask for.

Which Markdown does it write?

GitHub Flavored Markdown: ATX headings (#), fenced code blocks with their language, pipe tables, strikethrough and task lists. It reads well in GitHub, Obsidian, VS Code and most static site generators.

What happens to relative links and images?

The tool makes them absolute, so they keep working outside the page. Add the page’s address in the box under the HTML, or leave it empty. Pages saved from Chrome remember where they came from, and the tool reads that.

Can I convert a whole folder of saved pages?

Yes. Drop up to 50 .html files at once. Each one converts on its own, and Download all puts every Markdown file in one .zip.

How do I get the HTML of a web page?

Save it from your browser (File, then Save Page As, as “Webpage, HTML only”). Or copy part of the page and press ⌘V or Ctrl+V on this page. A copied selection carries its HTML, so headings, links and lists come through.

## More free tools

-   [**Webpage to Markdown** Turn any article or page into clean Markdown for notes and AI.](/tools/webpage-to-markdown)
-   [**YouTube Transcript** Get a video’s transcript as text, Markdown or subtitles.](/tools/youtube-transcript)
-   [**Merge PDF** Join PDFs into one file. Reorder and rotate pages in your browser.](/tools/merge-pdf)
-   [**Split PDF** Split a PDF by page, range or size. Or pull out the pages you need.](/tools/split-pdf)
-   [**PDF to Text** Get clean text or Markdown out of any PDF, page by page.](/tools/pdf-to-text)

## Send it to your notebook in one click.

Kortex sends web pages, highlights, posts, YouTube videos and AI chats into the Gemini Notebook you pick. Bulk import also takes your open tabs, CSV files and RSS feeds (lists of a site’s new posts).

[Add to Chrome](https://chromewebstore.google.com/detail/kortex/hdapplggdhndkblofffknpmnnnnbncbn)

No card needed.
