---
title: "HTML to Markdown Converter: Paste HTML or Enter a URL | Keep"
description: "Convert HTML to clean Markdown from pasted source or a public webpage URL. Keep headings, links, lists, code, and tables, then copy or download it."
canonical: "https://keep.md/tools/html-to-markdown"
language: "en"
---

# HTML to Markdown converter

Paste HTML source or enter a public webpage URL, then turn it into clean Markdown for notes, documentation, or AI agent context.

## How to use this tool

Choose pasted HTML or a public webpage URL, convert it, review the Markdown, then copy the result or download a .md file.

## Keep anything useful as Markdown.

Save notes, links, pages, files, and other useful material as clean Markdown. Read it later, search it, or use it with an AI agent.

[Start for free](https://app.keep.md/signup)

[Read the docs](https://keep.md/docs)

## How to convert HTML to Markdown

1.  Choose **Paste HTML** or **From a URL**.
2.  Paste the source code or public webpage address.
3.  Select **Convert to Markdown**.
4.  Review the result, then copy it or download the `.md` file.

## HTML structure becomes readable Markdown

HTML can carry content, layout, styling, scripts, tracking code, and interactive controls. Markdown has a smaller job. It stores readable structure such as headings, paragraphs, links, lists, code, quotes, and tables.

The converter keeps that readable structure and drops the browser-specific parts. The result works well in documentation, Git repositories, note apps, prompts, and agent context files.

## Paste source code or fetch a public webpage

Use **Paste HTML** when you want to convert the exact source you already have. Use **From a URL** when you only have the page address. Keep fetches that page and removes navigation, sidebars, cookie notices, and other page furniture before it returns the main content.

The dedicated [URL to Markdown converter](https://keep.md/tools/url-to-markdown) is a quicker option when every conversion starts with a public webpage.

## What Markdown cannot copy from HTML

-   CSS colours, fonts, spacing, and responsive layout.
-   JavaScript behaviour and interactive controls.
-   Forms, buttons, videos, and embedded app state.
-   Complex tables that depend on merged cells or visual positioning.

If you only need the table, the [Markdown table generator](https://keep.md/tools/markdown-table-generator) lets you import it into a grid, fix the cells and alignment, then copy the updated Markdown.

## Frequently asked questions

Choose Paste HTML when you have the source code, or choose From a URL when you have a public webpage link. Select Convert to Markdown, then copy or download the result.

Pasted HTML converts the source code you provide. A URL fetches the public webpage, removes navigation and other page furniture, then converts the main readable content. This page supports both input methods.

Yes. Server-backed tools share five free uses each day. You can paste up to 500,000 characters of HTML and convert it without creating an account.

No. The HTML is sent for this conversion and is not added to your Keep library. Copy or download the result if you want to keep it.

Yes when the source uses clear HTML elements. Headings, paragraphs, emphasis, links, lists, blockquotes, code, and tables can all become Markdown.

Markdown stores content structure, not page styling or scripts. CSS classes, layout rules, colours, JavaScript, forms, and interactive controls are not part of the Markdown result.

Yes. Choose From a URL, paste the public webpage address, and select Convert to Markdown. Keep fetches the page and extracts the main readable content for you.

## Related tools

[

### Confluence to Markdown converter

Convert one public Confluence page or an HTML space-export ZIP into Markdown while keeping page links and attachments.

](https://keep.md/tools/confluence-to-markdown)[

### URL to Markdown

Convert any webpage into clean, AI-ready Markdown. Title, body, headings, and links preserved. Nav and ads stripped.

](https://keep.md/tools/url-to-markdown)[

### Word to Markdown converter

Convert a Word or DOCX file into clean Markdown. Keep headings, links, lists, and tables, then copy or download the result.

](https://keep.md/tools/word-to-markdown)[

### Token counter

Count the LLM tokens in text you paste or in any webpage. Pick a model to see how much of its context window you fill, and compare the raw HTML cost of a page to the Markdown version.

](https://keep.md/tools/token-counter)
