HTML to Markdown Converter

Writing Tools

Paste HTML, or copy part of a web page and paste it, and get clean Markdown.

Options
HTML or pasted rich text
Markdown

Processed in your browser. A copy of each run is saved to your past runs so you can reopen it. Privacy

About

What the HTML to Markdown Converter does

The HTML to Markdown Converter turns HTML into clean Markdown as you type. You can paste HTML source, or copy part of a web page and paste it directly: the formatting comes along and is converted. Headings, links, lists, code and GitHub-style tables are kept; scripts, styles and comments are stripped. Choose heading and bullet styles, and whether to keep images.

Steps

How to use it

  1. 1Paste HTML, upload an .html file, or copy part of a web page and paste it here.
  2. 2Choose heading style, bullet marker and table handling.
  3. 3Copy the Markdown or download a .md file.

Example

A real run

Input

<h2>Shipping update</h2>
<p>Orders placed before <strong>December 15</strong> arrive by Christmas. See the <a href="https://example.com/shipping">shipping page</a>.</p>
<ul><li>Standard: 5–7 days</li><li>Express: 2 days</li></ul>
<table><tr><th>Zone</th><th>Price</th></tr><tr><td>US</td><td>$4.99</td></tr><tr><td>Canada</td><td>$9.99</td></tr></table>

Output

## Shipping update

Orders placed before **December 15** arrive by Christmas. See the [shipping page](https://example.com/shipping).

- Standard: 5–7 days
- Express: 2 days

| Zone | Price |
| --- | --- |
| US | $4.99 |
| Canada | $9.99 |

The heading, bold date, link, list and table all survive as Markdown; the table becomes a GitHub-style pipe table with its header row.

Options

Every setting, and when to use it

Paste rich text
Copying from a browser puts both plain text and HTML on the clipboard. Pasting here uses the HTML, so a copied article keeps its headings, bold text, links and tables in the Markdown.
Headings, bullets and code fences
# Heading is the usual style; underlined headings (=== and ---) suit some older docs. Pick -, * or + for bullets and ``` or ~~~ for code blocks to match your project's style.
GFM tables and Keep images
With GFM on, HTML tables become pipe tables and <del> becomes ~~text~~. Turn Keep images off for text-only notes or prompts; on, images become !alt.

Good to know

Common problems and limits

Input up to 5 MB. The HTML is parsed into an inert document that is never inserted into this page, so its scripts never run and its images never load.

Layout, colors and fonts have no Markdown equivalent and are dropped. Tables with merged cells or nested tables are kept as HTML or flattened.

To go the other way, use Markdown to HTML; to tidy messy HTML first, use the HTML Formatter.

Audience

Who uses it

  • AI and LLM usersCopy a web page or documentation section and paste it as Markdown into a prompt, which keeps its structure and uses fewer tokens than HTML.
  • Note takersSave articles and references into Obsidian, Notion or a notes repo as clean Markdown.
  • Developers and writersMove content from an old CMS or a static HTML site into a Markdown-based docs site or blog.

FAQ

Frequently asked

How do I convert a web page to Markdown?

Select the part of the page you want in your browser, copy it, and paste it into the input box here: the pasted rich text is converted with its headings, links and lists. For a whole page, save it as HTML and upload the file.

Why is Markdown useful for AI prompts?

Markdown keeps a page's structure, such as headings, lists and tables, in plain text, without the tags, attributes and scripts that make HTML long. Models read it well, and the shorter text leaves more room in the context window.

Are HTML tables converted?

Yes, with GFM tables on, simple tables become Markdown pipe tables with a header row. Tables with merged cells cannot be represented in Markdown and come out as simpler rows.

Why is some formatting lost?

Markdown only covers structure: headings, emphasis, links, lists, code, quotes and tables. Colors, fonts, alignment and layout have no Markdown syntax, so they are dropped, which is usually what you want for notes and docs.

How do I convert HTML to Markdown in Python or JavaScript?

In Python, the markdownify package: markdownify(html, heading_style="ATX"). In JavaScript, turndown, which this page uses: new TurndownService().turndown(html), with the turndown-plugin-gfm plugin for tables.

Is my HTML sent anywhere?

No. Conversion happens in your browser. A copy of each conversion is saved to your past runs when you copy or download it.

Automation: an MCP tool html_to_markdown(html, options) → md and an n8n node are planned for this tool.

GuideCleaning pasted text: line breaks, spaces, duplicates and sorting →Text pasted from PDFs, Word and web pages brings hidden breaks, odd spaces and duplicates. Fix them in the right order: breaks, spaces, duplicates, sort.
Built and maintained by Radhika SinghLast updated Questions: hello@operativez.ai