←
Developer

HTML to Markdown

Loading the tool…

Ready when you are.Runs in this browser · nothing is uploaded

Convert HTML and rich text to Markdown

  • Free
  • No sign-up
  • No upload
  • Works offline

Tool facts

Opens
HTMLHTM
Saves as
MD
Price
Free, no sign-up, no watermark
Are files uploaded?
No. Everything is processed in this browser, on your device.
Batch processing
One file at a time
Offline use
Works without a connection once this page has loaded
Built with
Turndown and DOMPurify
Browser
A recent Chrome, Edge, Firefox or Safari, on computer or phone.

Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.

About HTML to Markdown

HTML to Markdown converts HTML code, or formatted text you paste from a web page, Word or Google Docs, into clean Markdown for README files, wikis, static site generators and note apps. Headings, bold and italic text, links, images, nested lists, blockquotes, inline code and code blocks are turned into their Markdown equivalents, and the result updates as you type.

The conversion uses the Turndown library with its GitHub Flavored Markdown plugin, so tables with a header row become pipe tables, deleted text becomes ~~strikethrough~~ and checkboxes become task list items. You can choose # or underlined (Setext) headings, the bullet character, and fenced or indented code blocks, and you can drop images or links. Scripts, styles and form elements are removed. Pasted HTML is parsed in an inert document and sanitized before display, and nothing is uploaded.

HTML to Markdown runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.

How to use HTML to Markdown

  1. Paste HTML into the HTML code box or drop an .html file. To convert formatted text, switch to Paste rich text and paste it from a web page, Word or Google Docs.
  2. Read the Markdown output, which updates while you type or paste.
  3. Under Options, choose the heading style, bullet marker and code block style, and turn GFM tables and strikethrough, Keep images and Keep links on or off.
  4. Copy the Markdown or download it as an .md file.

Frequently asked questions

Why is my table still HTML in the output?

Markdown pipe tables need a header row. Tables whose first row uses th cells, or that have a thead, become GFM tables. Tables without a header, or with merged cells, cannot be written as pipe tables, so they are kept as HTML, which most Markdown renderers still display.

Does pasting from Google Docs and Word work?

Yes. The tool reads the HTML that the browser places on the clipboard. It removes the bold wrapper that Google Docs puts around everything and Word's empty placeholder tags, and it turns bold, italic and strikethrough set by inline styles into Markdown. Complex layouts such as columns, text boxes and comments are not part of Markdown and are dropped.

Is it safe to paste HTML from unknown pages?

Yes. HTML is parsed with DOMParser in a separate document where scripts never run and images never load. The rich text box only shows a sanitized copy without scripts, images, styles or event handlers.

Which Markdown flavor is produced?

CommonMark with GitHub Flavored Markdown extensions (tables, strikethrough and task lists) while GFM tables and strikethrough is on. Turn it off for plain CommonMark; tables are then reduced to their text.

Why are some characters escaped with a backslash?

Characters such as *, _, # or 1. at the start of a line would be read as Markdown formatting. Turndown escapes them so the text looks the same as in the original HTML.

· Free · Runs in this browser · nothing is uploaded

Drop any file here
Drop it to see which tools can open it