- All tools
- HTML to Markdown converter
How do I convert HTML to Markdown?
Paste HTML source into the box, or copy content from a web page, Word or Google Docs and paste it into the paste area, and the Markdown appears straight away. Headings, lists, links, images, code blocks, tables, task lists and strikethrough are converted, and scripts, styles and comments are removed. Markdown cannot describe colours or complex layouts, so those are lost.
- Paste your HTML into the HTML source box, or click the paste area and paste content copied from a web page, Word or Google Docs.
- Pick the Markdown style you want, such as heading, bullet and code block style.
- Check the Markdown, then copy it or download it as a .md file.
Markdown style
What this page can do
- Converts headings, paragraphs, lists, nested lists, links, images, blockquotes and code blocks
- Writes GitHub-style tables with column alignment, escaped pipes and line breaks as <br>
- Converts task-list checkboxes to - [x] and - [ ], and strikethrough to ~~text~~
- Reads formatted content you copy from a web page, Word or Google Docs
- Lets you choose heading, bullet, code, emphasis, link and rule styles
- Removes scripts, styles, noscript, template blocks and comments; copy or download .md
When to use this page
- Moving a blog post or documentation page into a Markdown-based site or repository.
- Turning content copied from Word or Google Docs into Markdown for a README or wiki.
- Cleaning up an HTML snippet before pasting it into a Markdown editor.
When to use something else
- You need to keep colours, fonts, columns or exact layout - Markdown cannot store them; keep the HTML instead.
- You need a whole website converted from its address - this page never fetches anything, so paste the HTML yourself.
- You need to turn Word or PDF files into Markdown directly - this page converts HTML and clipboard content, not document files.
How it compares with other options
Command-line converters such as Pandoc handle many more input formats and give you fine control, but need installing. Many online converters ask you to send the HTML to a server. This page is a middle option: it uses the open-source Turndown library inside your browser, so it works for quick conversions without installing anything. Like every HTML-to-Markdown tool it makes choices where Markdown has no equivalent, so check the result before you publish it.
Where your text goes
Nowhere. Everything is converted by your own browser. The HTML you type or paste is treated as text and parsed in a separate, hidden document, so it is never displayed on this page and its scripts never run. Nothing is sent to a server, saved to an account or written to storage - close the tab and it is gone. You can check it yourself: open your browser’s network panel — the page still loads its own code and any ads, but no request carries what you typed or pasted.
Questions about this tool
Is it safe to paste HTML from an untrusted source?
Yes, as far as this page is concerned. Your HTML is handled as a text string and parsed by your browser into a separate, detached document that is never shown, so scripts in it do not run and images in it are not loaded. The result is plain Markdown text. If you later publish that Markdown, sanitize it like any other user content.
Why does my Markdown look simpler than the original page?
Markdown has no way to describe colours, fonts, columns, merged table cells or most CSS layout, so the converter keeps the structure (headings, lists, links, tables, code) and drops the styling. Tables with merged cells are flattened into a regular grid. Some HTML elements without a Markdown equivalent are converted to their text only.
Why are some of my links not full web addresses?
The converter copies each link exactly as it is written in the HTML. If the source used a relative link such as /about or ../page.html, the Markdown keeps that relative link, because the page does not know which site the HTML came from and never fetches anything. Add the site address in front of those links yourself if you need absolute URLs.
How do I convert text copied from Word or Google Docs?
Copy the content in Word, Google Docs or a web page, click the paste box on this page and paste. Your browser puts an HTML version of the selection on the clipboard, and this page reads that version and converts it. Pasting into the plain HTML box instead gives you plain text, because that box only receives text.