Skip to content
SPCXTools

HTML to Markdown

Turn HTML — or rich text copied from any web page — into clean, readable Markdown.

Runs locally — files never leave your device

Loading tool…

How to use HTML to Markdown

  1. 1Paste HTML code into the left box, or copy part of a web page or document and paste it — the formatting is picked up automatically.
  2. 2Choose the heading style, list marker and whether to use GitHub-flavored Markdown (tables and strikethrough).
  3. 3The Markdown appears on the right as you type.
  4. 4Copy it or download it as a .md file.

Convert HTML to Markdown

Markdown is the writing format of README files, documentation sites, static site generators, wikis, note-taking apps like Obsidian and Notion, and many AI tools. Moving existing content into it — a blog post from a CMS, a page from an old website, an email newsletter or notes from a word processor — usually means retyping links and formatting by hand. This converter does it for you: paste HTML or formatted text and get clean Markdown instantly.

Features

  • Paste HTML or rich text — formatted content from the clipboard is converted automatically.
  • Headings, emphasis, links, images, lists, blockquotes and code are all converted.
  • Fenced code blocks with language hints kept when present.
  • GitHub-flavored Markdown tables and strikethrough.
  • Choice of styles for headings and bullet lists.
  • Scripts and styles removed for a clean result.
  • Private: nothing is uploaded.

Conversion examples

HTML Markdown
<h2>Title</h2> ## Title
<strong>bold</strong> **bold**
<em>italic</em> *italic*
<a href="https://example.com">link</a> [link](https://example.com)
<img src="a.png" alt="Logo"> ![Logo](a.png)
<ul><li>item</li></ul> - item
<code>npm i</code> `npm i`

Related tools

Go the other way with Markdown to HTML, escape HTML for code samples with HTML Encode / Decode, or count the words of the converted text with the Word Counter.

Frequently asked questions

Can I paste content straight from a web page?
Yes. When you copy formatted text from a browser, Word or Google Docs, the clipboard contains HTML. Pasting into the input box uses that HTML automatically, so headings, links, bold text and lists come through.
Are tables supported?
Yes, with GitHub-flavored Markdown enabled. Simple tables become Markdown pipe tables. Tables with merged cells can't be represented in Markdown and are kept as HTML.
What happens to styles, scripts and layout?
Markdown only describes structure, so CSS, colors, fonts and layout are dropped. Script and style tags are removed entirely. Elements without a Markdown equivalent, such as forms, are left out or kept as plain text.
What's the difference between ATX and Setext headings?
ATX headings start with hash marks (# Title, ## Section) and work for all six levels. Setext headings underline the title with === or --- and only exist for the first two levels. ATX is more common.
Is my content uploaded?
No. Conversion happens entirely in your browser.