You are moving to a new CMS, and your posts are stuck in the old one as HTML. The export gives you full pages of markup padded with navigation, sidebars and tracking code, while the new system wants clean Markdown. Converting by hand, post by post, is slow, and copying the rendered text is worse: your headings, links and code blocks arrive as flat paragraphs.
The workable approach is narrower than a full site export. Take one post at a time, copy only the article body HTML, and convert that. This guide shows how, using the free HTML to Markdown Converter on Ovatly, and then covers the two jobs conversion deliberately leaves in your hands: moving the image files and checking the internal links.
Contents
- Quick answer
- Convert the article body, not the whole page
- What converts cleanly, and what does not
- How to convert a post, step by step
- Worked example: one post fragment, before and after
- After conversion: images and links are separate steps
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Copy the HTML of the article body only, not the whole page, and paste it into the HTML to Markdown Converter. Headings, emphasis, links, lists, code blocks and simple tables come across as Markdown; copy the result or download it as a .md file and drop it into the new CMS. Then treat images and internal links as separate migration steps: images become Markdown image syntax but the files themselves are not downloaded, and links keep the paths they had, so check both against the new CMS before you publish.
Convert the article body, not the whole page
A post page is mostly chrome. The header, navigation menu, sidebar, footer, cookie banner and related-posts widget are all HTML too, and a converter cannot tell them apart from your writing. Paste the whole page and your Markdown opens with the menu, ends with the footer, and buries the article in the middle.
The article itself usually sits inside an article element or one main content div. In your browser's developer tools, right-click that element and copy its outer HTML. Without developer tools, view the page source and cut everything between the article's opening and closing tags. Working one post at a time feels slower than a bulk export, but each post takes about a minute and you read every result with your own eyes. Bulk conversions bury their mistakes; this way they get caught while the fix is still small.
What converts cleanly, and what does not
The converter is built on the Turndown library, and its behaviour follows a simple rule: if the HTML expresses meaning, it converts; if it expresses appearance, it mostly does not.
Headings become ATX headings, the # style. Emphasis becomes underscores, links keep their text and destination, lists become hyphen bullets, and code becomes fenced code blocks. Simple tables become pipe tables.
The rest is changed or lost, and for a CMS move most of it is loss you want. Scripts and styles are not carried into the output at all. Forms have no Markdown equivalent, so they are simplified or dropped, keeping their text where possible. Styled div structures flatten into their text. Layout tables, the kind old themes and email templates use to position things, are flattened to text rather than turned into pipe tables. Your post comes out as clean, portable text, which is what the new CMS needs.
How to convert a post, step by step
- Open the post and copy the article body HTML, using the developer tools' copy of the article element or a cut from the page source.
- Paste it into the HTML to Markdown Converter and read the Markdown below the input.
- Scan the output: headings in the right order, links intact, code in fenced blocks, lists as bullets.
- Copy the Markdown, or download it as a .md file, and place it in the new CMS.
- Move the image files separately, fix any paths that changed, and click through the internal links before publishing.
Worked example: one post fragment, before and after
Here is a small fragment from a soap maker's blog, the kind of paragraph-level HTML most posts are made of:
<h2>Our story</h2>
<p>We make <em>small-batch</em> soap. Read <a href="/process">how it is made</a>.</p>
The converter returns this:
## Our story
We make _small-batch_ soap. Read [how it is made](/process).
Every change follows the pattern above: heading to ATX heading, emphasis to underscores, link keeping its text and destination. Note the destination: /process is a relative path from the old site. It converted faithfully, which is exactly why links need their own checking step later: faithful conversion is not the same as a path that exists on the new CMS.
After conversion: images and links are separate steps
An img tag in the HTML becomes Markdown image syntax, like : the reference converts, the file does not. The converter does not download images, so nothing about the picture itself has moved. Collect the image files from the old CMS's media library, upload them to the new one, and if the upload changes any path, update the reference to match. Until this step is done, a post that looks complete can still be full of broken pictures.
Internal links need the same discipline. They survive conversion with their text and paths intact, which feels like a finished job and is not. A path that resolved on the old site may point nowhere on the new one, or at a different post after a restructure. Click through each internal link, or check it against the new site's URL list, before the post goes live.
Limitations and honest tradeoffs
The converter takes pasted HTML only. There is no URL input and it never fetches a page, so getting the HTML is your job, every time. The pasted HTML is parsed as text locally in your browser: nothing is uploaded, and no script inside the HTML runs. That safety has a cost: content that only appears when scripts execute, such as some embedded widgets, will not be in the HTML you copied and will not convert.
Structure that Markdown cannot express is lost, not hidden. Complex tables, forms and styled layouts come out simplified or as flat text, and any structure that mattered has to be rebuilt by hand in the new CMS. For most posts this touches nothing, because most posts are headings, paragraphs, lists and links. For a post built around a form or a layout table, expect manual work.
Common mistakes
- Pasting the whole page. The navigation and footer convert along with the article and have to be picked out by hand. Copy the article body only.
- Assuming the images moved. Only the image syntax converts. The files stay behind until you move them yourself.
- Trusting internal links blindly. Paths survive conversion exactly as they were, including the ones the new site does not have.
- Losing script-injected content. If part of the post only renders when a script runs, it is not in the HTML you copied, and it will be missing from the output.
- Skipping the read-through. One minute scanning the Markdown catches flattened tables, dropped forms and mangled headings while they are still cheap to fix.
FAQs
Can I convert a post by pasting its URL? No. The converter works on HTML you paste, and it never fetches a page. Open the post, copy the article body HTML from the page source or your browser's developer tools, and paste that in.
What happens to the images in my post?
Each image becomes Markdown image syntax carrying its source and alt text, for example
. The image file itself is not downloaded or moved, so collect the files from the old CMS, upload them to the new one, and update any paths that change.
Will my tables survive the conversion? Simple data tables become Markdown pipe tables with their rows and cells intact. Tables used for layout are a different matter: Markdown has no way to express them, so they are flattened to text and any structure that mattered is rebuilt by hand.
What happens to scripts, styles and forms? Scripts and styles are not carried into the output at all. Forms and styled divs cannot be expressed in Markdown either, so they are simplified or dropped, keeping their text where possible. Check the output for anything of theirs you still need.
Is my post uploaded to a server during conversion? No. The pasted HTML is parsed as text locally in your browser, nothing is uploaded, and no script inside the HTML runs. Unpublished drafts and staging posts convert just as safely as live ones.
Conclusion
A clean migration is a chain of small verified steps: article body in, Markdown out, images moved, links checked. The HTML to Markdown Converter handles the middle step in your browser, for one post or for the fiftieth, and leaves you the two steps that need human judgement. Site moves usually come with checks on the new host as well; our guide to checking when an SSL certificate expires shows how to read a certificate's dates and fingerprint before launch day. For more guides in this series, see our Website and Webmaster Tools guides.
References
- Turndown, the open-source library that powers the conversion: https://github.com/mixmark-io/turndown
- The Markdown Guide, on basic Markdown syntax: https://www.markdownguide.org/basic-syntax/