DockittDockitt

HTML to Markdown Converter — Free Online Tool

Convert HTML to clean Markdown instantly in your browser. Strips formatting and extracts readable Markdown. Free, no signup.

Runs entirely in your browser — no data leaves your device
No account, no signup, completely free
Instant results — no waiting for server processing
Works offline once the page is loaded
Runs entirely in your browser. Your text never leaves your device — no server, complete privacy.

Converting HTML back to Markdown is useful when migrating content from a CMS to a static site generator, extracting readable text from web pages, or cleaning up pasted rich text. This tool uses the Turndown library to parse HTML and produce idiomatic Markdown. It handles headings, bold, italic, links, images, lists, code blocks, blockquotes, and tables. The resulting Markdown is clean and human-readable — ready to commit to a repository or paste into any Markdown editor.

How to use

  1. Paste the HTML code you want to convert into the input textarea.
  2. The Markdown output is generated instantly as you type or paste.
  3. Copy the Markdown to clipboard or download it as a .md file.

FAQ

What HTML elements are converted to Markdown?

The converter handles all common HTML elements: <h1>–<h6> become # headings, <strong> and <b> become **bold**, <em> and <i> become *italic*, <a> becomes [text](url), <img> becomes ![alt](src), <ul>/<ol>/<li> become Markdown lists, <pre><code> becomes fenced code blocks, <blockquote> becomes > quotes, and <table> becomes GitHub Flavoured Markdown tables. Unrecognised elements are either converted to their text content or preserved as raw HTML.

Can I convert a full web page to Markdown?

Yes. You can paste the entire HTML source of a page — including the <html>, <head>, and <body> tags. The converter will process the full document, though the <head> section (meta tags, scripts, styles) will be stripped since it has no Markdown equivalent. For best results with web pages, paste just the content area (the article body or main tag) rather than the full document.

Does the converter preserve links and images?

Yes. HTML links (<a href='...'>) are converted to [link text](url) Markdown syntax. Images (<img src='...' alt='...'>) are converted to ![alt text](url). Both inline and reference-style link formats are supported in the output. Image sizes and CSS classes are discarded since Markdown does not support them.

What happens to inline CSS and style attributes?

Inline styles, CSS classes, and data attributes are stripped from the output. Markdown does not have a concept of styling beyond the limited formatting it natively supports (bold, italic, code). If your HTML relies heavily on CSS for its appearance, the Markdown output will reflect only the structural and semantic content, not the visual presentation.

Is my HTML sent to a server?

No. The conversion runs entirely in your browser using the Turndown JavaScript library. Your HTML is never sent to any server or third-party service. This makes the tool safe to use with internal company HTML, proprietary content, or any confidential material.

Why would I need to convert HTML back to Markdown?

Common use cases include: migrating blog posts from a WordPress CMS (which stores HTML) to a Markdown-based static site like Hugo or Astro; converting email HTML to a readable format; extracting content from web pages for documentation purposes; and cleaning up pasted rich text from a word processor (which typically pastes as HTML in web applications). Markdown is also widely used in AI chatbot prompts, where plain-text formatting is preferred over raw HTML.