HTML to Markdown

Turn HTML and rich text pasted from Google Docs or Word into tidy Markdown.

Example input10 lines, 314 B
11 lines, 213 B

Related tools

What it does

Converts HTML and rich text from Google Docs, Word, Outlook, or any web page into clean Markdown. Headings, lists, blockquotes, code blocks, links, and images all come across, and tables, strikethrough, and task lists convert to GitHub Flavored Markdown. Before the conversion runs, a cleanup pass removes the junk those editors leave behind: the Google Docs wrapper tag, Word conditional comments and o:p tags, mso styles, class and id attributes, and runs of non-breaking spaces used as layout.

How to use it

Copy formatted text from a web page, Google Docs, Word, or an email and paste it into the left pane: the page reads the rich version from your clipboard, so headings, links, lists, and tables come across instead of flat text. You can also paste raw HTML source or drop an .html file. The Markdown appears live on the right, with a Preview tab that shows how it renders. Pick a bullet marker, decide whether to keep links and images, then copy or download the Markdown.

Why this one

Most HTML to Markdown converters are ad-heavy sites that upload your document to a server before converting it. This one runs entirely in your browser, so your files and inputs never leave your device, and it actually cleans up Google Docs and Word markup instead of passing it through as inline HTML. No sign-up, no file size limit, no upsell.

FAQ
Does it handle tables?
Yes. HTML tables become GitHub Flavored Markdown pipe tables, with the first row as the header. Strikethrough and checkbox task lists convert too. Merged cells have no Markdown equivalent, so tables using colspan or rowspan come out flattened.
Why does my Google Docs bold survive here when other converters lose it?
Google Docs does not use strong tags. It marks bold with a styled span (font-weight: 700) and wraps the whole selection in a b tag that is set to font-weight: normal. The cleaner rewrites those spans into real strong and em tags and unwraps that outer b tag, so bold and italic survive and your document does not come out entirely bold.
Is my document uploaded anywhere?
No. The conversion runs entirely in your browser, so your files and inputs never leave your device. The page also works offline after the first load.

Keyboard shortcuts: press ? anywhere on this page to see them.