Convert HTML to Markdown
Processed locally in your browser.
Turn HTML source or formatted clipboard text into Markdown you can edit, review, and share.
How to use this tool
- Paste HTML source into the input when you already have markup. To convert a section you can select in a browser or document, copy the formatted selection and paste it into the same field. The tool uses the clipboard's HTML representation when formatted content is available.
- Read the Markdown result, then open Preview to check headings, links, lists, and code. Pay special attention to tables with irregular rows and text that depended on columns or presentation in the original. Adjust the result in the editor when a layout needs to be expressed in simpler Markdown.
- Copy Markdown for a notes app, repository, or document that accepts it. Choose Download .md to save a local copy, or use Open in Editor to make revisions, fix links, and export the edited version. Keep the original HTML nearby when you need to compare details.
When moving a help article to a Markdown repository, copy the article itself and check heading levels before you open a change for review. Look for image paths that pointed into the old site and links with vague text such as click here. The conversion gives you a source file to work from. A short comparison with the original helps catch navigation links or footers that were included in the selection.
Features
- Accept HTML markup or the formatted HTML placed on the clipboard when you copy a selection from a supporting application.
- Convert headings, paragraphs, links, lists, strong emphasis, and strikethrough into Markdown syntax.
- Convert simple tables and checkboxes in list items into Markdown tables and task lists.
- Keep supported code language classes as fence labels so a Markdown renderer can identify code such as JavaScript or Python.
- Inspect the resulting Markdown and its rendered preview before copying, downloading, or opening it in the editor.
Frequently asked questions
Can I paste a web page URL to convert it?
Copy the portion of the page you want, then paste the selection or its HTML source into the input. The tool converts the contents of the input field. Selecting only the useful section helps you avoid bringing along navigation menus, banners, or unrelated page text.
Will the Markdown look exactly like the HTML?
Expect a textual structure that you can move between tools. Markdown has syntax for headings, emphasis, links, lists, and tables. Fonts, colors, page columns, and decorative spacing usually have no direct Markdown equivalent. Review the preview to see how the converted structure reads by itself.
Can it convert tables with merged cells?
Simple rows and columns translate best. Markdown tables are flat, so merged cells and complex headers may need manual revision. Compare those tables with the source after conversion. If a cell spans several columns or a heading has multiple levels, consider using separate tables or descriptive headings.
Why did formatting disappear from my paste?
Some applications place only plain text on the clipboard. When that happens, the converter has no markup to read for bold text, lists, or links. Try copying from a view that includes rich clipboard content, or paste the HTML source directly if you have it.
Does the converter load scripts or embedded content?
The input HTML is processed in an inactive document fragment. Scripts, stylesheets, and embedded frames are removed during conversion. A normal image link can remain in the Markdown, and opening Preview may request that image from its host. Check relative links before using the export elsewhere.
Can I keep language labels on code blocks?
When an HTML code block includes a supported class such as language-js, the converter uses it on the Markdown fence. Plain preformatted blocks become fences without a language label. You can add or change the label in the editor when you know which language the example uses.
Is the HTML sent anywhere during conversion?
The converter reads the pasted markup and generates the Markdown in your browser. It does not fetch a page on your behalf or upload the input. Downloading creates a local file. If you open the result in the editor, it passes through the current browser tab.
Related tools
Markdown to Word
Turn a Markdown draft into an editable Word document for comments, revisions, and handoff.
Markdown to HTML
Create a standalone HTML document from Markdown, with the preview styles included in the exported file.
AI Text Cleaner
Clean up copied AI answers and review every change before you share the Markdown or paste it into a document.