Skip to content

HTML to Markdown Converter

Convert HTML, or formatted text pasted from a web page, Word or Google Docs, to clean Markdown with tables, nested lists, code and links.

Did this tool work for you?

Used HTML to Markdown Converter? Share how it went to help others.

About this tool

About HTML to Markdown Converter

HTML to Markdown Converter turns web content into clean Markdown for GitHub, GitLab, Notion, Obsidian, static sites and notes. Paste HTML code or open an HTML file. You can also copy formatted text from a web page, Word or Google Docs and paste it straight into the box: the headings, lists, links and tables in it are kept. The HTML is read the way a browser reads it, so attributes, missing closing tags and deep nesting are not a problem. Headings from level one to six, paragraphs, bold, italic, strikethrough, inline code, block quotes, horizontal lines and line breaks are converted. Lists can be nested, numbered lists keep their starting number, and checkboxes become task list items. Tables become Markdown tables with their column alignment, and line breaks inside a cell are turned into spaces, because Markdown cells hold one line. Code blocks are fenced, and the language is added when the HTML names it. Characters that would otherwise turn into formatting, such as a star in the middle of a sum or a line that starts with a number and a dot, are escaped so the text reads the same. Scripts, styles and embedded media are left out, and nothing in the HTML is run. You decide what happens to links: keep them in the text, number them and list them at the end, or keep only the words. Images can be kept or removed. If the page uses short links such as /guide, enter the page’s address and they become full links. To convert a saved web page, tick “Leave out menus, headers and footers” to skip navigation, side columns and forms. Colours, fonts and columns have no Markdown form and are dropped, and cells that span several columns are followed by empty cells. Copy the result or download it as an .md file. The conversion happens in your browser, so private documents are not uploaded.

HTML to Markdown Converter tool

When to convert HTML to Markdown

From web page to plain text

README files

Reuse a product page or a guide.

ExampleA table of options becomes a Markdown table.

Notes

Save an article to Obsidian or Notion.

ExampleCopy the article, paste it here, and take the Markdown.

Moving a site

Bring posts to a static site.

ExampleOpen each HTML file and download the .md file.

AI prompts

Give a chat tool text without tags.

ExampleMarkdown keeps headings and lists and is much shorter than HTML.

Documentation

Move pages from Word or Docs to a wiki.

ExampleHeadings, lists and links survive the paste.

Newsletters

Keep an email as text.

ExampleChoose “Text only” for links to remove tracking addresses.

Conversion tips

Cleaner Markdown, less editing

Copy only the article

Select the part you need on the page instead of the whole page.

Add the page address

Short links only work elsewhere when they are made absolute.

Check wide tables

Merged cells have no Markdown form, so look at them after converting.

Preview the result

Paste it into the Markdown editor to see it formatted.

Open Markdown Editor

See the HTML first

Check how the HTML looks before you convert it.

Open HTML Viewer

Clean up after

Remove a repeated footer or phrase in one step.

Open Find and Replace
Built & tested by

HemantInsights

Senior Software Engineer · Developer of Toolyconvert

Hemant developed HTML to Markdown Converter and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.

Last updated 24 November 2026

Answers and guidanceFrequently Asked Questions
Can I paste from Word or Google Docs?
Yes. Copy the text there and paste it here. Headings, lists, links, bold, italic and tables are converted.
Does it convert tables?
Yes, with the column alignment. Cells hold one line, and a cell that spans columns is followed by empty cells.
Does it keep the language of code blocks?
Yes, when the HTML has a class that names it, as most code highlighters do.
How do I make short links work?
Enter the address of the page. Links such as /guide become full links.
Can it convert a page from its address?
No. Copy the page or save it as HTML, then paste or open it here.
Why are there backslashes in the result?
They stop a star, an underscore or a number at the start of a line from turning into formatting. They are not shown when the Markdown is displayed.
Is my HTML uploaded?
No. It is converted in your browser and scripts in it are not run.
More tools for your workflowRelated Tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.