Step 1
Open [HTML to Markdown](/tools/html-to-markdown).
Loading workspace...
Preparing your tools
Guide
Convert HTML headings, lists, links and code to Markdown with browser-side parsing and review unsupported layout or unsafe links.
HTML from a CMS can be verbose when you only need its article structure in a README or Markdown-based documentation system. HTML to Markdown parses a supported HTML fragment in the browser and converts useful content into Markdown syntax. It recognizes headings, paragraphs, links, lists, quotes and code while avoiding dangerous destinations.
The tool is a document-structure converter, not a guarantee that the entire original page design, layout, scripts, styles or interactive components can be reproduced in Markdown.
Open [HTML to Markdown](/tools/html-to-markdown).
Paste a small HTML fragment containing a heading, paragraph and list.
Run the conversion and compare the resulting Markdown with the source's visible meaning.
Inspect links, inline code and emphasis, especially if the original has nested markup.
Copy the Markdown into a test preview in your target documentation system.
For example, an HTML heading becomes a Markdown heading, and ordinary unordered list elements become lines beginning with a dash. A table or complex form may need manual rewriting depending on the destination's Markdown dialect.
The browser parser removes or ignores non-content script and style elements and other unsupported structure. It escapes Markdown-sensitive characters from text nodes and limits the accepted link and image destination schemes. An unsafe link is not made safe merely by copying it into another format; the converter avoids promoting unsupported schemes to active Markdown links.
Attributes such as CSS classes, layout widths and JavaScript behavior do not have a direct equivalent in plain Markdown. If your document depends on those features, preserve the original HTML or migrate it manually.
Preformatted code is represented with Markdown code fencing where possible, and ordinary inline code receives backtick notation. Nested lists can be represented by indentation, but deeply nested or malformed HTML may not map perfectly. Review the final preview rather than assuming every browser-generated DOM produces a clean round trip.
For the inverse workflow, use Markdown to HTML. Converting HTML to Markdown and back may produce equivalent readable content without reproducing exact source bytes or structure.
Untrusted pasted HTML can contain deceptive links, hidden text and unusual markup. The converter applies safety measures, but your publishing platform must still enforce its own content policies. Do not treat a converted result as an automatic truth or authenticity check.
If a link becomes plain text, inspect its destination scheme. If styling disappears, remember that CSS rules are outside Markdown's document model. If a code sample loses formatting, compare its source text with the fenced output and adjust manually. Unsupported or malformed HTML may need cleanup before conversion.
Continue your workflow with these matching tools.
Related, practical walkthroughs for the tools used in this guide.
Render Markdown headings, lists, code and links into escaped HTML and verify supported features in your target CMS.
Read the guide →
Use a browser HTML minifier carefully, compare the source and result, and test markup with whitespace-sensitive content.
Read the guide →
Format CSS selectors, braces and declarations for review; understand comments, media queries and the limits of text-based formatting.
Read the guide →
Upload your file and apply these settings in under a minute.