Every migration starts with the same hopeful idea: run the old HTML through a converter, get clean Markdown, and move on. Then someone opens the result and asks where the design went, why the pricing table reads like a paragraph, and why half the images are broken. None of that is a converter bug. It is the deal you make when you move from a presentation language to a content language.
Markdown was designed to be readable plain text: headings, emphasis, links, lists and code, and not much more. HTML can express far more, so any honest conversion leaves things behind. The free HTML to Markdown Converter on Ovatly, built on the Turndown library, runs entirely in your browser. This guide is the inventory to read before you convert, not after: what disappears, what survives, and how to check a page against both lists.
Contents
- Quick answer
- Two languages, two different jobs
- What survives intact
- Loss one: styling, classes and presentation
- Loss two: scripts and style blocks
- Loss three: complex tables, forms and styled containers
- Loss four: the image files stay behind
- How to convert, step by step
- Worked example: one fragment in, one fragment out
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Converting HTML to Markdown keeps your words and their basic structure, and drops almost everything else. Gone: all styling and CSS classes, style blocks, scripts, complex table layouts, forms and styled containers. Kept: headings, paragraphs, emphasis, links, lists, code blocks and simple tables. Images turn into Markdown syntax pointing at the original file, but the files do not move. Know that list in advance and conversion is a clean step; learn it afterwards and it feels like data loss. Paste your HTML into the HTML to Markdown Converter, read the Markdown, and copy it or download it as a .md file.
Two languages, two different jobs
HTML describes how a page looks and behaves as much as what it says: one paragraph can carry a class, an inline style and a click handler. Markdown describes only what the content is: a heading, emphasis, a link, a list. It has no concept of color, spacing, columns or behavior.
That gap is the whole story of conversion losses. A converter can only keep what the target language can say, so everything beyond Markdown's small vocabulary is dropped cleanly rather than mangled into the text.
What survives intact
The good news first. Headings become ATX headings, the # style. Emphasis becomes underscores, so <em>small-batch</em> turns into _small-batch_. Links keep their text and destination. Lists become hyphen bullets. Code blocks become fenced blocks. A simple table becomes a Markdown pipe table.
In other words, the substance of an article or blog post crosses over whole. If your HTML is mostly prose, conversion loses almost nothing you care about; the losses bite when the HTML is doing design work.
Loss one: styling, classes and presentation
Every class, ID and inline style is dropped. Markdown cannot express them, so there is nothing to convert them into. The callout box, the two-column layout, the hero section: the text inside them survives where possible, the presentation does not.
Styled containers deserve a warning. Elements Markdown cannot express, such as forms and styled <div> structures, are simplified or dropped, keeping their text where possible. A <div> that only wraps a paragraph gives up its paragraph cleanly; a decorative one gives up nothing. After conversion, look for gaps where a visual element carried meaning, such as an icon with no text or a chart with no caption.
Loss two: scripts and style blocks
Scripts and styles are not carried into the output at all. A <style> block, a <script>, an analytics snippet: none of it appears in the Markdown. For migration this is a feature; you do not want tracking code in your text files. The pasted HTML is parsed as text in your browser, so no script inside it runs and nothing is uploaded.
Loss three: complex tables, forms and structured widgets
Simple tables survive as pipe tables. Complex tables do not. A table used as a layout grid, with merged cells or nested tables, is flattened into plain text in reading order: the words remain, the grid does not. Forms go the same way, dropped or reduced to their labels and text. This loss surprises people most, because the flattened text looks wrong even though nothing textual was deleted. If a page depends on a complex table for its meaning, such as a pricing grid, rebuild it by hand in the new system or keep that page in HTML.
Loss four: the image files stay behind
An <img> element becomes Markdown image syntax with its source and alt text: . The image file itself is not downloaded, copied or embedded; the Markdown points at the file where it already lives.
That has a practical consequence. If you move the Markdown to a new site or folder, every image path must still resolve in the new home, and relative paths break quietly when the base changes. After converting, list every image reference, copy the files across, and check each path.
How to convert, step by step
- Open the page you want to convert and copy its HTML source. You can convert a full page or just a fragment.
- Open the HTML to Markdown Converter and paste the HTML in.
- Read the Markdown against the loss inventory: check headings, links, lists, tables, and image references.
- Copy the Markdown, or download it as a .md file.
- Copy the image files the output points at, and confirm the paths work where the Markdown will live.
Worked example: one fragment in, one fragment out
Here is a small fragment of the kind a real article contains.
<h2>Our story</h2>
<p>We make <em>small-batch</em> soap. Read <a href="/process">how it is made</a>.</p>
<p><img src="/photo.jpg" alt="Bars of soap curing on a rack"></p>
The converter produces this:
## Our story
We make _small-batch_ soap. Read [how it is made](/process).

Everything the fragment says survives: heading level, emphasis, link text and destination, the image with its alt text. What is gone is anything about how it should look, and the file photo.jpg has not moved an inch: the new Markdown shows a broken image until you copy it across.
Limitations and honest tradeoffs
The converter works on HTML you paste. It does not convert from a URL: you copy the source yourself, which means you control which part of the page gets converted.
The deeper tradeoff is permanent. Markdown's simplicity is why people migrate to it: files you can read raw, diff in version control and paste anywhere. The price is everything listed above. Conversion is right when the words are the asset, wrong when the design is.
Common mistakes
- Converting before inventorying. Run one representative page through first and compare it against the loss lists before converting five hundred.
- Forgetting the image files. The Markdown references images; it does not contain them. Broken images are almost always uncopied files or changed paths.
- Expecting layout tables to survive. They flatten to text. Rebuild structural tables by hand.
- Pasting the whole page when you want the article. Navigation and footers convert too. Paste the fragment instead.
- Assuming dropped means deleted. Your original HTML is untouched; conversion reads it and produces a new file.
FAQs
Does converting HTML to Markdown remove my CSS classes and styling? Yes. Markdown cannot express classes, inline styles or style blocks, so the converter drops them by design. What survives is the content and its structure: headings, paragraphs, emphasis, links, lists and code.
What happens to tables when I convert? A simple table becomes a Markdown pipe table. A complex table used as a page layout is flattened into plain text in reading order, because Markdown cannot express merged cells, nested tables or column widths.
Are images downloaded when I convert a page?
No. An image element becomes Markdown image syntax with the same source and alt text, for example . The file itself stays where it was, so copy the files separately and check the paths still resolve.
Is anything uploaded when I use the converter? No. The HTML you paste is parsed as text inside your browser, no script inside it runs, and nothing is sent to a server. You can paste a full page or a fragment.
Can the converter fetch a page from a URL for me? No. It works on HTML you paste, not on a web address. Copy the page's source or the relevant fragment from your browser, and paste that in.
Conclusion
Conversion losses are predictable, and predictable means plannable. Styling, scripts, complex layouts and forms stay behind; words, structure, links and simple tables come across; images come across as references, not files. Check one page against that inventory before migrating the rest, and the converter becomes the fastest step in the move. If your source is an email rather than a web page, the losses follow a pattern of their own, covered in our guide to converting HTML email content into a Markdown draft. For more guides in this series, see our Website and Webmaster Tools guides.
References
- CommonMark specification, the standard that defines what Markdown can express: https://spec.commonmark.org/
- Turndown, the JavaScript library the converter is built on: https://github.com/mixmark-io/turndown